/* سامانه قرعه کشی و تعامل کاربران - استایل‌های فرانت‌اند */

/* Import Google Fonts as fallback */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600&display=swap');

/* Local Font Loading - Multiple approaches */
@font-face {
    font-family: 'Yekan-Bakh-Light';
    src: url('../fonts/Yekan-Bakh-EN-03-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB1D-FB4F;
    font-stretch: normal;
    font-variant: normal;
    font-feature-settings: normal;
}

/* Alternative font loading for mobile */
@font-face {
    font-family: 'Yekan-Bakh-Light-Mobile';
    src: url('../fonts/Yekan-Bakh-EN-03-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB1D-FB4F;
    font-stretch: normal;
    font-variant: normal;
    font-feature-settings: normal;
}

/* Preload font for better performance */
@font-face {
    font-family: 'Yekan-Bakh-Light-Preload';
    src: url('../fonts/Yekan-Bakh-EN-03-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* CSS Variables for font inheritance */
:root {
    --lottery-font-family: 'Yekan-Bakh-Light', 'Yekan-Bakh-Light-Mobile', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    --lottery-mobile-font-family: 'Yekan-Bakh-Light', 'Yekan-Bakh-Light-Mobile', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
}

/* Apply font variables */
.lottery-container,
.lottery-container *,
.dashboard-card,
.dashboard-card *,
.task-item,
.task-item *,
.lottery-instruction,
.lottery-instruction *,
.active-lottery-instruction,
.active-lottery-instruction * {
    font-family: var(--lottery-font-family) !important;
}

/* Force font inheritance for all lottery elements */
.lottery-container,
.lottery-container *,
.dashboard-card,
.dashboard-card *,
.task-item,
.task-item *,
.lottery-instruction,
.lottery-instruction *,
.active-lottery-instruction,
.active-lottery-instruction * {
    font-family: 'Yekan-Bakh-Light', 'yekanbakh', inherit !important;
}

/* Additional font loading fallback */
@supports (font-display: swap) {
    .lottery-container,
    .lottery-container *,
    .dashboard-card,
    .dashboard-card *,
    .task-item,
    .task-item *,
    .lottery-instruction,
    .lottery-instruction *,
    .active-lottery-instruction,
    .active-lottery-instruction * {
        font-family: 'Yekan-Bakh-Light', 'yekanbakh', inherit !important;
    }
}

/* Additional font fixes for mobile */
body .lottery-container,
body .lottery-container *,
body .dashboard-card,
body .dashboard-card *,
body .task-item,
body .task-item *,
body .lottery-instruction,
body .lottery-instruction *,
body .active-lottery-instruction,
body .active-lottery-instruction * {
    font-family: 'Yekan-Bakh-Light', 'yekanbakh', inherit !important;
    font-weight: inherit !important;
}

/* Mobile font rendering fixes */
@media (max-width: 768px) {
    .lottery-container,
    .lottery-container *,
    .dashboard-card,
    .dashboard-card *,
    .task-item,
    .task-item *,
    .lottery-instruction,
    .lottery-instruction *,
    .active-lottery-instruction,
    .active-lottery-instruction * {
        font-family: 'Yekan-Bakh-Light', 'Yekan-Bakh-Light-Mobile', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        text-rendering: optimizeLegibility !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        line-height: 1.5 !important;
        letter-spacing: 0.02em !important;
        font-size: 14px !important;
    }
    
    /* Fix for text truncation */
    h1, h2, h3, h4, h5, h6,
    p, span, div {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.5 !important;
        letter-spacing: 0.02em !important;
        font-family: 'Yekan-Bakh-Light', 'Yekan-Bakh-Light-Mobile', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
    }
    
    /* Specific fixes for Yekan-Bakh-Light text */
    *[style*="Yekan-Bakh-Light"] {
        font-family: 'Yekan-Bakh-Light', 'Yekan-Bakh-Light-Mobile', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.5 !important;
        letter-spacing: 0.02em !important;
        text-rendering: optimizeLegibility !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
}

/* Specific fixes for task descriptions */
.task-item p,
.task-item div,
.task-item span {
    font-family: 'Yekan-Bakh-Light', 'Yekan-Bakh-Light-Mobile', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
    font-weight: 500 !important;
}

/* Specific fixes for instruction texts */
.lottery-instruction p,
.lottery-instruction div,
.lottery-instruction span,
.active-lottery-instruction p,
.active-lottery-instruction div,
.active-lottery-instruction span {
    font-family: 'Yekan-Bakh-Light', 'yekanbakh', inherit !important;
    font-weight: 600 !important;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Font loading fallback */
.fonts-loaded body {
    font-family: inherit;
}

.fonts-loading body {
    font-family: inherit;
}

body {
    font-family: 'Yekan-Bakh-Light', 'yekanbakh', inherit;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
.lottery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Forms */
.lottery-form {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.lottery-form h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Dashboard */
.dashboard-top-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.dashboard-card {
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dashboard-card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.dashboard-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.welcome-card h2 {
    color: white !important;
    margin-bottom: 15px;
}

.welcome-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 15px 0;
    line-height: 1.6;
}

/* Welcome Instructions */
.welcome-instructions {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.welcome-instructions p {
    color: white;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.welcome-instructions ul {
    margin: 0;
    padding-right: 20px;
    list-style: none;
}

.welcome-instructions li {
    color: rgba(255, 255, 255, 0.95);
    margin: 8px 0;
    padding-right: 20px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}

.welcome-instructions li::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 16px;
}

/* Points Card */
.points-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    text-align: center;
    border: none;
}

.points-card h3 {
    color: white !important;
    margin-bottom: 20px;
}

.points-card .points-display {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* My Lotteries Card */
.dashboard-grid .dashboard-card:first-child {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.10) 0%, rgba(37, 99, 235, 0.08) 100%),
                radial-gradient(1200px 400px at 0% 0%, rgba(20, 184, 166, 0.18) 0%, rgba(20, 184, 166, 0) 60%),
                var(--color-surface);
    border-left: 6px solid var(--color-accent);
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.12), 0 4px 10px rgba(0,0,0,0.03);
}

.dashboard-grid .dashboard-card:first-child h3 {
    color: var(--color-accent);
}

/* Lottery Instruction */
.lottery-instruction {
    background: rgba(20, 184, 166, 0.10);
    border: 2px solid var(--color-accent);
    border-radius: 14px;
    padding: 16px;
    margin: 16px 0 20px 0;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 16px rgba(20, 184, 166, 0.12);
}

.lottery-instruction p {
    color: var(--color-accent);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Yekan-Bakh-Light', 'yekanbakh', inherit !important;
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Active Lotteries Card */
.dashboard-grid .dashboard-card:last-child {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.10) 0%, rgba(20, 184, 166, 0.08) 100%),
                radial-gradient(1200px 400px at 100% 0%, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 60%),
                var(--color-surface);
    border-left: 6px solid var(--color-primary);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12), 0 4px 10px rgba(0,0,0,0.03);
}

.dashboard-grid .dashboard-card:last-child h3 {
    color: var(--color-primary);
}

/* Active Lottery Instruction */
.active-lottery-instruction {
    background: rgba(37, 99, 235, 0.10);
    border: 2px solid var(--color-primary);
    border-radius: 14px;
    padding: 16px;
    margin: 16px 0 20px 0;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 16px rgba(37, 99, 235, 0.12);
}

.active-lottery-instruction p {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Yekan-Bakh-Light', 'yekanbakh', inherit !important;
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Winners Section */
.winners-section {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border: none;
    margin-top: 30px;
    border-left: 5px solid #e17055;
}

.winners-section h3 {
    color: #e17055;
    margin-bottom: 25px;
}

/* Winner Explanation */
.winner-explanation {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #e17055;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.winner-explanation p {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

/* Lottery Cards */
.lottery-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-right: 5px solid #3498db;
}

/* Lottery Prizes */
.lottery-prizes {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.lottery-prizes h5 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.prizes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prizes-list li {
    background: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.4;
}

.prizes-list li:last-child {
    margin-bottom: 0;
}

.prizes-list li strong {
    color: #2c3e50;
    font-weight: 600;
}

.lottery-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.lottery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.lottery-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-ended {
    background: #f8d7da;
    color: #721c24;
}

.status-registered {
    background: #cce7ff;
    color: #004085;
    font-weight: 600;
}

.countdown {
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
}

/* Task System */
.task-container {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Task Instruction Message */
.task-instruction {
    background: #e8f5e8;
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.task-instruction p {
    margin: 0;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.task-instruction strong {
    color: #1b5e20;
    font-weight: 600;
}

.task-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-right: 4px solid #3498db;
}

.task-item h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
}

.task-item p {
    font-family: 'Yekan-Bakh-Light', 'yekanbakh', inherit !important;
    line-height: 1.5;
    font-weight: 500;
}

.task-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.task-link {
    display: inline-block;
    padding: 8px 16px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.task-link:hover {
    background: #2980b9;
    color: white;
}

/* Notifications */
.notification-bar {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 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);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

/* Forgot Password Styles */
.forgot-password-link {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #005a87;
    text-decoration: underline;
}

#forgot-password-modal .modal-content {
    max-width: 400px;
}

#forgot-password-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#forgot-password-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

#forgot-password-modal .close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#forgot-password-modal .close:hover {
    color: #333;
    background: #f5f5f5;
}

#forgot-password-modal .modal-body {
    padding: 0;
}

#forgot-password-modal .form-group {
    margin-bottom: 20px;
}

#forgot-password-modal .form-group:last-child {
    margin-bottom: 0;
}

#forgot-password-modal label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

#forgot-password-modal input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#forgot-password-modal input[type="tel"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

#forgot-password-modal .btn {
    width: 100%;
    padding: 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#forgot-password-modal .btn:hover {
    background: #005a87;
}

#forgot-password-modal .btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Winners Section */
.winners-section {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.winner-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logout button styling */
.logout-section {
    margin-top: 20px;
    text-align: center;
}

.logout-btn {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

/* Login link styling */
.login-link {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.login-link:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Form footer styling */
.form-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.form-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Register link styling */
.register-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #1e7e34;
    text-decoration: underline;
}

/* Terms and Conditions styling */
.terms-section {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.terms-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 500;
}

.terms-toggle input[type="checkbox"] {
    margin-left: 10px;
    transform: scale(1.2);
}

.terms-toggle-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.terms-toggle-btn:hover {
    background: #005a87;
}

.terms-content {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.terms-text {
    line-height: 1.6;
    color: #495057;
    font-size: 14px;
}

/* Task overlay cancel button */
.cancel-task-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.cancel-task-btn:hover {
    background: #c82333;
    color: white;
}

/* Mobile optimized prizes display */
.lottery-prizes-summary {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.prizes-count {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.prizes-preview {
    margin-top: 8px;
}

.prize-item {
    padding: 4px 0;
    font-size: 14px;
    color: #495057;
}

.show-all-prizes-btn, .hide-all-prizes-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.3s ease;
}

.show-all-prizes-btn:hover, .hide-all-prizes-btn:hover {
    background: #218838;
    color: white;
}

.all-prizes-list {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.all-prizes-list .prizes-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.all-prizes-list .prizes-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
}

.all-prizes-list .prizes-list li:last-child {
    border-bottom: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lottery-prizes-summary {
        margin: 8px 0;
        padding: 8px;
    }
    
    .prizes-count {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .prize-item {
        font-size: 13px;
        padding: 3px 0;
    }
    
    .show-all-prizes-btn, .hide-all-prizes-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Prominent chance display */
.prominent-chance {
    margin: 15px 0;
    padding: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: 2px solid #28a745;
}

.chance-display {
    color: white;
}

.chance-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.chance-value {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chance-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

/* Mobile responsive for chance display */
@media (max-width: 768px) {
    .prominent-chance {
        margin: 12px 0;
        padding: 16px;
        border-radius: 10px;
    }
    
    .chance-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .chance-value {
        font-size: 28px;
        margin: 8px 0;
    }
    
    .chance-subtitle {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .prominent-chance {
        margin: 10px 0;
        padding: 14px;
        border-radius: 8px;
    }
    
    .chance-label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .chance-value {
        font-size: 24px;
        margin: 6px 0;
    }
    
    .chance-subtitle {
        font-size: 10px;
    }
}

/* Task points display */
.task-points-info {
    margin: 8px 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ffc107;
}

.points-earned {
    color: #212529;
    font-weight: 600;
    /* Font will inherit from parent task-item */
}

.points-earned strong {
    color: #d63384;
    /* Font size will inherit from parent task-item */
}

/* Mobile responsive for task points */
@media (max-width: 768px) {
    .task-points-info {
        margin: 6px 0;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .task-points-info {
        margin: 5px 0;
        padding: 5px 8px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lottery-container {
        padding: 10px;
    }
    
    .lottery-form {
        padding: 15px;
    }
    
    .dashboard-top-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .dashboard-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .dashboard-card h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .dashboard-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .welcome-card h2 {
        font-size: 20px;
    }
    
    .welcome-instructions {
        padding: 10px;
        margin-top: 10px;
    }
    
    .welcome-instructions p {
        font-size: 15px;
    }
    
    .welcome-instructions li {
        font-size: 14px;
        margin: 4px 0;
    }
    
    .points-card .points-display {
        font-size: 22px;
    }
    
    .lottery-instruction {
        padding: 10px;
        margin: 10px 0 12px 0;
    }
    
    .lottery-instruction p {
        font-size: 14px;
        font-family: 'Yekan-Bakh-Light', 'yekanbakh', inherit !important;
        font-weight: 600;
    }
    
    .active-lottery-instruction {
        padding: 10px;
        margin: 10px 0 12px 0;
    }
    
    .active-lottery-instruction p {
        font-size: 14px;
        font-family: 'Yekan-Bakh-Light', 'yekanbakh', inherit !important;
        font-weight: 600;
    }
    
    .lottery-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Active Lotteries Mobile Optimizations */
    .lottery-card {
        padding: 18px;
        margin-bottom: 15px;
    }
    
    .lottery-card h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .lottery-status {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .countdown {
        font-size: 16px;
    }
    
    /* Task System Mobile Optimizations */
    .task-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .task-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .task-item h5 {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .task-item p {
        font-size: 14px;
        font-family: 'Yekan-Bakh-Light', 'yekanbakh', inherit !important;
        font-weight: 500;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .task-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }
    
    .task-link {
        padding: 8px 12px;
        font-size: 14px;
        text-align: center;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 16px;
        min-height: 40px; /* Ensure touch-friendly button size */
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
    
    /* Mobile touch optimizations */
    .task-link {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .skip-task-btn {
        min-height: 40px;
    }
}

/* Additional Mobile Font Improvements */
@media (max-width: 768px) {
    /* Enhanced mobile font loading */
    .lottery-container *,
    .dashboard-card *,
    .task-item *,
    .lottery-instruction *,
    .active-lottery-instruction *,
    .welcome-card *,
    .points-card * {
        font-family: 'Yekan-Bakh-Light', 'Yekan-Bakh-Light-Mobile', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
        text-rendering: optimizeLegibility !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
    
    /* Mobile-specific button and form improvements */
    .btn, .button, input, textarea, select {
        font-family: 'Yekan-Bakh-Light', 'Yekan-Bakh-Light-Mobile', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
        line-height: 1.5 !important;
        letter-spacing: 0.02em !important;
    }
    
    /* Mobile-specific text improvements */
    .lottery-instruction,
    .active-lottery-instruction,
    .welcome-instructions {
        font-family: 'Yekan-Bakh-Light', 'Yekan-Bakh-Light-Mobile', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
        line-height: 1.5 !important;
        letter-spacing: 0.02em !important;
    }
}

/* Sponsor Lottery Styles */
.sponsor-lottery {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.sponsor-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.sponsor-logo img {
    border: 2px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.sponsor-details {
    flex: 1;
}

.sponsor-name {
    color: #e74c3c;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.sponsor-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sponsor-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    color: #333;
    transition: all 0.3s ease;
}

.sponsor-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.telegram-link:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.instagram-link:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #bc1888;
}

.sponsor-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.sponsor-icon {
    font-size: 16px;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}

.website-link:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* Mandatory Message for Sponsor Lotteries */
.mandatory-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.mandatory-message p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.mandatory-message strong {
    color: #6c5a00;
    font-weight: 600;
}

/* User Points Info */
.user-points-info {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    text-align: center;
}

.user-points-info p {
    margin: 0;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 500;
}

/* Site Lottery Styles */
.site-lottery {
    border-left: 4px solid #3498db;
}

/* Task Time Information Styles */
.task-time-info {
    margin: 8px 0;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
}

.time-range {
    color: #e74c3c;
    font-weight: 600;
    font-size: 13px;
}

.time-fixed {
    color: #28a745;
    font-weight: 600;
    font-size: 13px;
}

.task-time-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Mobile Responsive for Sponsor Info */
@media (max-width: 768px) {
    .sponsor-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .sponsor-links {
        justify-content: center;
    }
    
    .sponsor-name {
        font-size: 15px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .lottery-container {
        padding: 8px;
    }
    
    .dashboard-card {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .dashboard-card h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .dashboard-card h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .welcome-card h2 {
        font-size: 18px;
    }
    
    .welcome-instructions p {
        font-size: 14px;
    }
    
    .welcome-instructions li {
        font-size: 13px;
        margin: 3px 0;
    }
    
    .points-card .points-display {
        font-size: 20px;
    }
    
    .lottery-instruction p,
    .active-lottery-instruction p {
        font-size: 13px;
        font-family: 'Yekan-Bakh-Light', 'Yekan-Bakh-Light-Mobile', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
        font-weight: 600;
        line-height: 1.5 !important;
        letter-spacing: 0.02em !important;
    }
    
    /* Active Lotteries Extra Small Mobile */
    .lottery-card {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .lottery-card h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .lottery-status {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .countdown {
        font-size: 14px;
    }
    
    /* Task System Extra Small Mobile */
    .task-container {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .task-item {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .task-item h5 {
        font-size: 15px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .task-item p {
        font-size: 13px;
        font-family: 'Yekan-Bakh-Light', 'Yekan-Bakh-Light-Mobile', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
        font-weight: 500;
        line-height: 1.5;
        margin-bottom: 6px;
        letter-spacing: 0.02em !important;
    }
    
    .task-actions {
        gap: 6px;
        margin-top: 8px;
    }
    
    .task-link {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 15px;
        min-height: 36px; /* Ensure touch-friendly button size */
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
        padding: 12px;
    }
    
    /* Additional mobile touch optimizations */
    .task-link {
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .skip-task-btn {
        min-height: 36px;
    }
}

/* Error and Success Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Points Display */
.points-display {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Mobile Detection Warning */
.mobile-warning {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

.mobile-warning.show {
    display: block;
}

/* ===== Theme Overrides: Trustworthy vibrant palette ===== */
:root {
    --color-primary: #2563eb; /* blue-600 */
    --color-primary-dark: #1e40af; /* blue-800 */
    --color-accent: #14b8a6; /* teal-500 */
    --color-success: #16a34a; /* green-600 */
    --color-warning: #f59e0b; /* amber-500 */
    --color-danger: #ef4444; /* red-500 */
    --color-surface: #ffffff;
    --color-muted: #f3f4f6; /* gray-100 */
}

/* Buttons - unified palette */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}
.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, var(--color-success), #15803d);
}
.btn-warning {
    background: linear-gradient(135deg, var(--color-warning), #d97706);
}
.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), #b91c1c);
}

/* Cards */
.dashboard-card {
    border: 1px solid #eef2ff;
}
.welcome-card {
    background: radial-gradient(1200px circle at 0% 0%, #60a5fa 0%, var(--color-primary) 45%, var(--color-primary-dark) 100%);
}
.points-card {
    background: radial-gradient(1200px circle at 100% 0%, #34d399 0%, var(--color-success) 60%, #065f46 100%);
}

/* Sections */
.lottery-instruction {
    background: rgba(20, 184, 166, 0.08);
    border-color: var(--color-accent);
}
.active-lottery-instruction {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--color-primary);
}

/* Lottery cards and badges */
.lottery-card {
    border-right-color: var(--color-primary);
}
.status-active {
    background: rgba(22, 163, 74, 0.12);
    color: #065f46;
}
.status-ended {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}
.status-registered {
    background: rgba(37, 99, 235, 0.12);
    color: var(--color-primary-dark);
}
.countdown {
    color: var(--color-danger);
}

/* Task list */
.task-item {
    border-right-color: var(--color-primary);
}
.task-link {
    background: var(--color-primary);
}
.task-link:hover {
    background: var(--color-primary-dark);
}

/* Alerts */
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }

/* Task Overlay */
.task-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.task-overlay-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: overlayFadeIn 0.3s ease-out;
}

.task-overlay-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.task-overlay h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
}

.task-overlay p {
    color: #7f8c8d;
    margin: 0 0 25px 0;
    font-size: 16px;
    line-height: 1.5;
}

.task-overlay-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logout button styling */
.logout-section {
    margin-top: 20px;
    text-align: center;
}

.logout-btn {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

/* Login link styling */
.login-link {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.login-link:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Form footer styling */
.form-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.form-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Register link styling */
.register-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #1e7e34;
    text-decoration: underline;
}

/* Terms and Conditions styling */
.terms-section {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.terms-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 500;
}

.terms-toggle input[type="checkbox"] {
    margin-left: 10px;
    transform: scale(1.2);
}

.terms-toggle-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.terms-toggle-btn:hover {
    background: #005a87;
}

.terms-content {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.terms-text {
    line-height: 1.6;
    color: #495057;
    font-size: 14px;
}

/* Task overlay cancel button */
.cancel-task-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.cancel-task-btn:hover {
    background: #c82333;
    color: white;
}

/* Mobile optimized prizes display */
.lottery-prizes-summary {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.prizes-count {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.prizes-preview {
    margin-top: 8px;
}

.prize-item {
    padding: 4px 0;
    font-size: 14px;
    color: #495057;
}

.show-all-prizes-btn, .hide-all-prizes-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.3s ease;
}

.show-all-prizes-btn:hover, .hide-all-prizes-btn:hover {
    background: #218838;
    color: white;
}

.all-prizes-list {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.all-prizes-list .prizes-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.all-prizes-list .prizes-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
}

.all-prizes-list .prizes-list li:last-child {
    border-bottom: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lottery-prizes-summary {
        margin: 8px 0;
        padding: 8px;
    }
    
    .prizes-count {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .prize-item {
        font-size: 13px;
        padding: 3px 0;
    }
    
    .show-all-prizes-btn, .hide-all-prizes-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Prominent chance display */
.prominent-chance {
    margin: 15px 0;
    padding: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: 2px solid #28a745;
}

.chance-display {
    color: white;
}

.chance-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.chance-value {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chance-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

/* Mobile responsive for chance display */
@media (max-width: 768px) {
    .prominent-chance {
        margin: 12px 0;
        padding: 16px;
        border-radius: 10px;
    }
    
    .chance-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .chance-value {
        font-size: 28px;
        margin: 8px 0;
    }
    
    .chance-subtitle {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .prominent-chance {
        margin: 10px 0;
        padding: 14px;
        border-radius: 8px;
    }
    
    .chance-label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .chance-value {
        font-size: 24px;
        margin: 6px 0;
    }
    
    .chance-subtitle {
        font-size: 10px;
    }
}

/* Task points display */
.task-points-info {
    margin: 8px 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ffc107;
}

.points-earned {
    color: #212529;
    font-weight: 600;
    /* Font will inherit from parent task-item */
}

.points-earned strong {
    color: #d63384;
    /* Font size will inherit from parent task-item */
}

/* Mobile responsive for task points */
@media (max-width: 768px) {
    .task-points-info {
        margin: 6px 0;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .task-points-info {
        margin: 5px 0;
        padding: 5px 8px;
    }
}