.pq-iw-group-static {
    background: #ffffff !important;
    border: 1px solid #e2e2e2 !important;
    padding: 15px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
}

.pq-iw-ticket-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
}

.pq-iw-ticket-number {
    font-weight: 600 !important;
    color: #333 !important;
}

.pq-iw-ticket-available {
    background: #28a745 !important;
    color: #fff !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.pq-iw-ticket-claimed {
    background: #dc3545 !important;
    color: #fff !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

/* Restore Instant Win Group Headings */
.pq-iw-group-title {
    display: inline-block !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
}

/* Restore Remaining Count */
.pq-iw-group-remaining {
    display: inline-block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #777 !important;
}

.pq-iw-group-header-static {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/* --- INSTANT WINS PREMIUM STYLING --- */

.pq-iw-group-static {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.pq-iw-group-header-static {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.pq-iw-group-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.pq-iw-group-remaining {
    font-size: 14px;
    font-weight: 600;
    color: #888;
}

/* Ticket list */
.pq-iw-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Ticket row */
.pq-iw-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 12px 16px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.pq-iw-ticket-item:hover {
    background: #fff4e6;
    border-color: #ff7a00;
}

/* Ticket number */
.pq-iw-ticket-number {
    font-weight: 600;
    color: #333;
}

/* Won badge */
.pq-iw-ticket-claimed {
    background: #d40000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
}

/* --- MODAL BUTTON --- */
.pq-iw-open {
    background: #d40000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
    border: none;
}

/* --- MODAL OVERLAY --- */
.pq-iw-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
}

/* --- MODAL CONTENT BOX --- */
.pq-iw-modal-content {
    background: #fff;
    padding: 25px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 60px auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* --- CLOSE BUTTON --- */
.pq-iw-close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

/* --- PREMIUM INSTANT WINS STYLING --- */
.pq-iw-group-static {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.pq-iw-group-header-static {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.pq-iw-group-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.pq-iw-group-remaining {
    font-size: 14px;
    font-weight: 600;
    color: #888;
}

.pq-iw-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pq-iw-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 12px 16px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.pq-iw-ticket-item:hover {
    background: #fff4e6;
    border-color: #ff7a00;
}

.pq-iw-ticket-number {
    font-weight: 600;
    color: #333;
}

.pq-iw-ticket-claimed {
    background: #d40000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
}

.pq-iw-open {
    background: #ff7a00;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
    border: none;
}

/* Instant Wins grid */
.pq-iw-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .pq-iw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pq-iw-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.pq-iw-card {
    cursor: pointer;
}

.pq-iw-card-inner {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    padding: 16px 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pq-iw-card:hover .pq-iw-card-inner {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Card header */
.pq-iw-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.pq-iw-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.pq-iw-card-remaining {
    font-size: 13px;
    font-weight: 600;
    color: #777;
}

/* Progress bar */
.pq-iw-progress {
    background: #eee;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.pq-iw-progress-fill {
    background: #ff7a00;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

/* Card footer */
.pq-iw-card-footer {
    margin-top: 4px;
}

.pq-iw-card-hint {
    font-size: 12px;
    color: #999;
}

/* Modal */
.pq-iw-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
}

.pq-iw-modal-content {
    background: #fff;
    max-width: 640px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 20px 22px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.pq-iw-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}

.pq-iw-close:hover {
    color: #000;
}

.pq-iw-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* Ticket list */
.pq-iw-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pq-iw-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f7f7f7;
}

.pq-iw-ticket-number {
    font-size: 14px;
    font-weight: 600;
}

.pq-iw-ticket-claimed {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: #28a745;
    padding: 4px 8px;
    border-radius: 999px;
}

.pq-iw-ticket-available {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: #007bff;
    padding: 4px 8px;
    border-radius: 999px;
}

/* Tabs wrapper */
.pq-tabs {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Individual tab */
.pq-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.2s ease;
}

/* Hover effect */
.pq-tab:hover {
    background: #ff6600;
    color: #fff;
}

/* Active tab */
.pq-tab-active {
    background: #ff6600;
    color: #fff;
}

/* PQ Tabs - Ry's Style Upgrade */
.pq-tabs {
    display: flex;
    gap: 12px;
    margin: 25px 0 30px;
    flex-wrap: wrap;
}

.pq-tab {
    padding: 12px 26px;
    background: #f3f3f3;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: 0.25s ease;
    border: 2px solid transparent;
}

.pq-tab:hover {
    background: #fff;
    border-color: #ff6600;
    color: #ff6600;
}

.pq-tab-active {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.3);
}
