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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #8B9A46 0%, #6B7A36 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

/* Header */
.header {
    background: white;
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.title {
    font-size: 28px;
    color: #6B7A36;
    display: flex;
    align-items: center;
    gap: 10px;
}

.heart {
    font-size: 24px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.prize-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #6B7A36;
}

.admin-link-header {
    color: #6B7A36;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid #6B7A36;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.admin-link-header:hover {
    background: #6B7A36;
    color: white;
    opacity: 1;
}

.house-icon {
    font-size: 20px;
}

/* Raffle Card */
.raffle-section {
    margin-bottom: 30px;
}

.raffle-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.photo-section {
    flex: 1;
    min-width: 300px;
}

.photo-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.photo-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.photo-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(107, 122, 54, 0.8);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.info-section {
    flex: 1;
    min-width: 300px;
}

.info-section h2 {
    color: #6B7A36;
    font-size: 32px;
    margin-bottom: 15px;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.raffle-details {
    background: #6B7A36;
    color: white;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    font-size: 18px;
}

.detail-item.prize {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prize-amount {
    font-size: 32px;
    font-weight: bold;
}

.prize-method {
    font-size: 16px;
    opacity: 0.9;
}

/* Numbers Section */
.numbers-section {
    margin-bottom: 30px;
}

.numbers-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.numbers-card h2 {
    color: #6B7A36;
    font-size: 28px;
    margin-bottom: 10px;
}

.instruction {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.selected-info {
    background: #f0f7e8;
    border: 2px solid #6B7A36;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #6B7A36;
}

.selected-info p {
    margin: 5px 0;
}

/* Numbers Grid */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.number-btn {
    background: white;
    border: 2px solid #8B9A46;
    border-radius: 8px;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: bold;
    color: #6B7A36;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.number-btn:hover:not(.selected):not(.reserved) {
    background: #f0f7e8;
    border-color: #6B7A36;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 122, 54, 0.3);
}

.number-btn.selected {
    background: #6B7A36;
    color: white;
    border-color: #6B7A36;
    box-shadow: 0 4px 8px rgba(107, 122, 54, 0.5);
}

.number-btn.reserved {
    background: #e0e0e0;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Form Section */
.form-section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    border: 2px solid #6B7A36;
}

.form-section h3 {
    color: #6B7A36;
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #6B7A36;
    font-weight: bold;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #8B9A46;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #6B7A36;
    box-shadow: 0 0 0 3px rgba(107, 122, 54, 0.1);
}

/* Payment Section */
.payment-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.payment-section h3 {
    margin-bottom: 15px;
}

.payment-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-option {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #8B9A46;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    background: #f0f7e8;
    border-color: #6B7A36;
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + .payment-icon {
    color: #6B7A36;
}

.payment-icon {
    font-size: 24px;
}

.payment-option span:last-child {
    font-weight: bold;
    color: #6B7A36;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #6B7A36;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #5a6830;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 122, 54, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #6B7A36;
}

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

#modal-info {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    background: #6B7A36;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-btn:hover {
    background: #5a6830;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .raffle-card {
        flex-direction: column;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .number-btn {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .payment-options {
        flex-direction: column;
    }
    
    .payment-option {
        min-width: 100%;
    }
}

