:root {
    --primary-color: #4a148c;
    --primary-light: #7c43bd;
    --primary-dark: #12005e;
    --accent-color: #f0b90b;
}

.lottery-card {
    background: var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.lottery-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.pool-info {
    text-align: center;
    padding: 20px;
    background: var(--primary-light);
    border-radius: 15px;
    margin: 20px 0;
}

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

.ticket-option {
    background: var(--primary-light);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ticket-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.buy-button {
    background: var(--accent-color);
    color: var(--primary-dark);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background: #ffcd3c;
    transform: translateY(-2px);
}

.buy-button:disabled {
    background: #4B5563;
    cursor: not-allowed;
    transform: none;
}

.timer {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
    color: var(--accent-color);
}

.social-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.social-icons a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s;
    opacity: 0.7;
}

.social-icons a:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lottery-info {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .ticket-options {
        grid-template-columns: 1fr;
    }

    .social-icons {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }

    .social-icons a {
        font-size: 20px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    background: #1E1E1E;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #FFFFFF;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #3A3A3A;
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Messages */
.error-toast,
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.error-content,
.success-content {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-content {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #FF3B30;
}

.success-content {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.2);
    color: #34C759;
}

.error-content i,
.success-content i {
    margin-right: 12px;
    font-size: 20px;
}

.error-content p,
.success-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.modal-content {
    background: #1E1E1E;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.modal-header .close-button {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.modal-body {
    margin-bottom: 24px;
}

.modal-body p {
    color: #FFFFFF;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-footer .cancel-button {
    background: #3A3A3A;
    border: 1px solid #4A4A4A;
    color: #FFFFFF;
}

.modal-footer .cancel-button:hover {
    background: #4A4A4A;
}

.modal-footer .approve-button {
    background: #34C759;
    border: 1px solid #34C759;
    color: #FFFFFF;
}

.modal-footer .approve-button:hover {
    background: #2FB350;
}

/* Lottery Card Styles */
.lottery-card {
    background: #1E1E1E;
    border-radius: 16px;
    padding: 32px;
    margin: 32px auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lottery-card h1 {
    color: #FFFFFF;
    font-size: 32px;
    margin: 0 0 32px;
    text-align: center;
}

.lottery-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.lottery-info > div {
    background: #2A2A2A;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.lottery-info h3 {
    color: #FFFFFF;
    font-size: 18px;
    margin: 0 0 12px;
}

.lottery-info .timer,
.lottery-info #prizePool {
    color: #34C759;
    font-size: 24px;
    font-weight: 600;
}

.pool-info {
    background: #2A2A2A;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: center;
}

.pool-info h2 {
    color: #FFFFFF;
    font-size: 24px;
    margin: 0 0 16px;
}

.pool-info p {
    color: #FFFFFF;
    margin: 8px 0;
    font-size: 16px;
}

.ticket-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.ticket-option {
    background: #2A2A2A;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.ticket-option h3 {
    color: #FFFFFF;
    font-size: 18px;
    margin: 0 0 12px;
}

.ticket-option p {
    color: #FFFFFF;
    margin: 0 0 16px;
    font-size: 16px;
}

.buy-button {
    background: #34C759;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.buy-button:hover:not(:disabled) {
    background: #2FB350;
}

.buy-button:disabled {
    background: #3A3A3A;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .lottery-card {
        margin: 16px;
        padding: 24px;
    }

    .lottery-card h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .lottery-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ticket-options {
        grid-template-columns: 1fr;
    }
} 