* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #cccccc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.header {
    margin-bottom: 40px;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid #333;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.party-section {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #cccccc;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 1rem;
    color: #cccccc;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #5865F2;
    background: #222;
}

.form-input::placeholder {
    color: #666666;
}

.form-input[type="number"] {
    max-width: 200px;
}

.btn {
    background: #333;
    color: #cccccc;
    border: 1px solid #444;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 500;
}

.btn:hover {
    background: #3a3a3a;
    border-color: #555;
    transform: translateY(-1px);
}

.btn.primary {
    background: #5865F2;
    border-color: #5865F2;
    color: white;
}

.btn.primary:hover {
    background: #4752C4;
}

.btn.success {
    background: #00d4aa;
    border-color: #00d4aa;
    color: white;
}

.btn.success:hover {
    background: #00b894;
    border-color: #00b894;
}

.btn.danger {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.btn.danger:hover {
    background: #c0392b;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.success-message {
    background: #1f2f1f;
    color: #4ade80;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #2a4a2a;
    margin-bottom: 20px;
    display: none;
}

.error-message {
    background: #2f1f1f;
    color: #f87171;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #4a2a2a;
    margin-bottom: 20px;
    display: none;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #666666;
}

.spinner {
    border: 2px solid #333;
    border-top: 2px solid #5865F2;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.invite-status {
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #aaaaaa;
    max-height: 300px;
    overflow-y: auto;
}

.status-item {
    padding: 5px 0;
    border-bottom: 1px solid #2a2a2a;
}

.status-item:last-child {
    border-bottom: none;
}

.status-success {
    color: #4ade80;
}

.status-error {
    color: #f87171;
}

.user-info-display {
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.user-info-display h3 {
    color: #ffffff;
    margin-bottom: 5px;
}

.user-info-display p {
    color: #aaaaaa;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .party-section {
        padding: 20px;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}