* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* Background Blur Elements */
.bg-blur-1,
.bg-blur-2 {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.3), rgba(0, 191, 255, 0.3));
    filter: blur(80px);
    z-index: -1;
}

.bg-blur-1 {
    top: -100px;
    left: -100px;
}

.bg-blur-2 {
    bottom: -100px;
    right: -100px;
}

/* Screens */
.screen {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    display: none;
    margin: 15px 0;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    display: block;
}

/* Home Screen Styles */
.home-screen .header {
    text-align: center;
    margin-bottom: 30px;
}

.home-screen .header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.home-screen .header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.category-selector {
    margin-top: 20px;
}

.category-selector h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.category {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category img {
    padding-bottom: 10px;
    width: 50px;
    height: auto;
    color: white;
    filter: invert(1);
}

.category:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.category.active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

/* Quiz Screen Styles */
.quiz-screen {
    display: none;
    flex-direction: column;
}

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

.timer {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.time-value {
    font-weight: 600;
    color: #4CAF50;
}

.question-count {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.question-count .current {
    font-weight: 600;
    color: #4CAF50;
}

.question-container {
    margin: 20px 0;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    backdrop-filter: blur(5px);
}

.option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.option.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.option.correct {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.3);
}

.option.wrong {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.3);
}

.next-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b74f8, #0e4de1);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 1;
    display: block !important;
}

.next-btn:disabled {
    background: linear-gradient(135deg, #3b74f8, #0e4de1);
    color: rgba(173, 216, 230, 0.7);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Result Screen Styles */
.result-screen {
    text-align: center;
}

.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trophy-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
    text-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

.result-title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.score-container {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.score-value {
    font-weight: 600;
    color: #4CAF50;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.claim-btn,
.home-btn {
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.claim-btn {
    background: linear-gradient(135deg, #FFC107, #FF9800);
    color: #3a3a3a;
}

.claim-btn:hover {
    background: linear-gradient(135deg, #FFA000, #F57C00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.claim-btn:disabled {
    background: linear-gradient(135deg, #FFC107, #FF9800);
    color: rgba(0, 0, 0, 0.7);
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.home-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.custom-footer {
    padding: 20px 10px;
    text-align: center;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #ddd;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    margin-top: auto;
}

.custom-footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.custom-footer a:hover {
    text-decoration: underline;
}

.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 300px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification:not(.show) {
    transform: translateX(-50%) translateY(20px);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
}

/* Terms and Conditions Page Styles */
.terms-container {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.terms-content {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    margin: 20px 0;
}

.terms-content h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.terms-content h2 {
    font-size: 1.5rem;
    margin: 25px 0 15px 0;
    color: #fff;
}

.terms-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.terms-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.terms-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.terms-content a {
    color: white;
    text-decoration: none;
}

.terms-content a:hover {
    text-decoration: underline;
}

/* Privacy Policy Page Styles */
.privacy-container {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.privacy-content {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    margin: 20px 0;
}

.privacy-content .page-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.privacy-content .last-updated {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin: 25px 0 15px 0;
    color: #fff;
}

.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.privacy-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.privacy-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.privacy-content strong {
    color: #fff;
}

.privacy-content a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.no-offers-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 30px 20px;
    text-align: center;
}

.no-offers-img {
    width: 250px;
    margin-bottom: 20px;
}

.no-offers-text {
    font-size: 18px;
    color: #fff;
    opacity: 0.8;
    font-weight: 500;
}

@media (min-width: 768px) {
    .privacy-content {
        padding: 40px;
    }

    .privacy-content .page-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .terms-content {
        padding: 40px;
    }

    .terms-content h1 {
        font-size: 2.5rem;
    }
}

/* Responsive Design */
@media (min-width: 500px) {
    .main-content {
        padding: 40px 20px;
    }
}