/* GPT Search Engine CSS - Cleaned and Organized */

/* ==========================================================================
   VARIABLES AND BASE STYLES
   ========================================================================== */

:root {
    --primary-blue: #007cba;
    --primary-blue-dark: #005a87;
    --success-green: #27ae60;
    --success-green-dark: #229954;
    --text-dark: #2c3e50;
    --text-muted: #666;
    --text-light: #999;
    --border-color: #ddd;
    --background-light: #f8f9fa;
    --background-gray: #f9f9f9;
    --table-header: #34495e;
}

/* ==========================================================================
   CLS PREVENTION
   ========================================================================== */

.gptv2-table {
    min-height: 600px;
}

.gptv2-table tr {
    height: 80px;
}

.gptv2-table .offer-details tr {
    height: auto;
}

.offer-image, .offer-image-placeholder {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
}

.gpt_badge, .offerwall-badge, .site-badge {
    min-width: 60px;
    display: inline-block;
}

.signup-btn, .mobile-signup-btn, .desktop-site-badge-link {
    min-width: 70px;
    height: 32px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.skeleton-row {
    height: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: 1px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gptv2-pagination {
    min-height: 50px;
}

/* ==========================================================================
   CONTAINER AND LOADING
   ========================================================================== */

.gptv2-container {
    max-width: 100%;
    margin: 0 auto;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    display: none;
}

.loading-indicator.show {
    display: block;
}

/* ==========================================================================
   FILTER GRID
   ========================================================================== */

.filter-grid-container {
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    display: grid;
    gap: 14px;
    box-sizing: border-box;
}

.search-cell { grid-area: search; }
.offerwall-cell { grid-area: offerwall; }
.platform-cell { grid-area: platform; }
.category-cell { grid-area: category; }
.status-cell { grid-area: status; }
.update-cell { grid-area: update; }
.reset-cell { grid-area: reset; }
.country-cell { grid-area: country; }

.grid-cell {
    width: 100%;
}

.grid-cell h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

/* Mobile dropdown */
.mobile-dropdown {
    grid-area: mobile-dropdown;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
    margin-top: 10px;
}

.mobile-dropdown summary {
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    background: var(--background-light);
    border-radius: 4px 4px 0 0;
}

.mobile-dropdown-content {
    padding: 10px;
}

.mobile-dropdown-item {
    margin-bottom: 15px;
}

.mobile-dropdown-item:last-child {
    margin-bottom: 0;
}

.mobile-dropdown-item h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================================================
   FORM INPUTS
   ========================================================================== */

#global-search, select, #reset-filters {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    height: 38px;
    box-sizing: border-box;
    background-color: white;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

#reset-filters {
    background: var(--primary-blue);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#reset-filters:hover {
    background: var(--primary-blue-dark);
}

.last-update {
    font-size: 14px;
    color: var(--text-muted);
    background-color: #f0f0f0;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    height: 38px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.flag-container {
    display: flex;
    align-items: center;
    height: 38px;
}

.flag-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    font-size: 32px;
    text-decoration: none;
    width: 48px;
    height: 36px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.flag-link:hover {
    background-color: #e0e0e0;
}

.flag-link.active {
    background-color: #f0f0f0;
    border: 1px solid var(--border-color);
}

input:focus, select:focus, button:focus {
    outline: 2px solid #4d90fe;
    outline-offset: 1px;
}

/* ==========================================================================
   CONTROLS AND RESULTS
   ========================================================================== */

.gptv2-controls {
    margin-bottom: 20px;
}

.gptv2-results-info {
    background: white;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.gptv2-pagination {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.gptv2-pagination-bottom {
    background: white;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: var(--primary-blue);
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}

.pagination-btn:hover:not(.disabled):not(.current) {
    background: #e9ecef;
    color: var(--primary-blue);
}

.pagination-btn.current {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.pagination-btn.current:hover {
    background: var(--primary-blue);
    color: white;
}

.pagination-btn.disabled {
    color: #6c757d;
    background: var(--background-light);
    cursor: not-allowed;
}

/* ==========================================================================
   MAIN TABLE
   ========================================================================== */

.gptv2-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.gptv2-table table {
    width: 100%;
    border-collapse: collapse;
}

.gptv2-table th {
    background: var(--text-dark);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.gptv2-table th:hover {
    background: var(--table-header);
}

.gptv2-table th .sort-indicator {
    float: right;
    font-size: 12px;
}

.gptv2-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* ==========================================================================
   TABLE CELLS AND LAYOUT
   ========================================================================== */

.centered-cell {
    text-align: center;
    vertical-align: middle;
}

.offer-cell {
    vertical-align: middle;
}

.offer-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.offer-text {
    flex: 1;
    min-width: 0;
}

.offer-details-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.offer-details-icon:hover {
    background: #e0e0e0;
    border-color: #bbb;
    color: #333;
}

.expanded .offer-details-icon {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-50%) rotate(180deg);
}

.offer-name {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.offer-id {
    color: var(--text-light);
    font-size: 14px;
}

/* ==========================================================================
   OFFER ROWS
   ========================================================================== */

.offer-summary {
    cursor: pointer !important;
    transition: background-color 0.2s;
}

.offer-summary:hover {
    background-color: var(--background-light) !important;
}

.offer-details {
    background-color: var(--background-gray);
}

.best-payout {
    font-size: 16px;
    font-weight: bold;
    color: var(--success-green);
}

.offerwall-with-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-indicator {
    display: none;
}

/* ==========================================================================
   EXPANDED DETAILS
   ========================================================================== */

.expanded-details {
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin: 10px;
}

.compact-details-content {
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin: 2px;
}

.task-description, .offer-description, .tasks-goals {
    background: var(--background-light);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.task-description h4, .offer-description h4, .tasks-goals h4 {
    color: var(--text-dark);
    margin: 0 0 6px 0;
    font-size: 18px;
}

.task-description p, .offer-description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: #555;
}

.goals-list {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
}

.goals-list li {
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 1.4;
}

/* ==========================================================================
   TASK PAYOUTS GRID
   ========================================================================== */

.task-payouts-table {
    margin-top: 0;
}

.task-payouts-table h4 {
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 18px;
}

.payouts-grid {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    font-size: 16px;
}

.payouts-header {
    display: contents;
}

.task-payouts-table .payouts-grid .task-header, 
.task-payouts-table .payouts-grid .site-header {
    background: var(--table-header) !important;
    color: white !important;
    padding: 12px 6px !important;
    font-weight: bold !important;
    text-align: center !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
}

.task-payouts-table .payouts-grid .task-header {
    text-align: left !important;
    justify-content: flex-start !important;
}

.payout-row {
    display: contents;
}

.task-name, .task-payout {
    background: white;
    padding: 6px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.task-name {
    text-align: left;
    font-size: 14px;
    line-height: 1.3;
}

.task-payout {
    text-align: center;
    font-weight: bold;
    color: var(--success-green);
    font-size: 15px;
}

.payout-row:nth-child(even) .task-name,
.payout-row:nth-child(even) .task-payout {
    background-color: var(--background-light);
}

.task-payouts-table .payouts-grid .site-header .gpt_badge,
.task-payouts-table .payouts-grid .gpt_badge,
.task-payouts-table .payouts-grid .site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
}

.task-payouts-table .payouts-grid [class*="_image"],
.task-payouts-table .payouts-grid .site-header [class*="_image"],
.task-payouts-table .payouts-grid .site-header .gpt_badge span[class*="_image"],
.task-payouts-table .payouts-grid .gpt_badge span[class*="_image"] {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    display: block !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Site button row styling - ALL SCREEN SIZES */
.site-buttons-row {
    display: contents;
}

.task-button-spacer {
    background: #f8f9fa !important;
    padding: 6px !important;
    border-bottom: 1px solid #eee !important;
}

.site-button-cell {
    background: #f8f9fa !important;
    padding: 6px 4px !important;
    text-align: center !important;
    border-bottom: 1px solid #eee !important;
}

.mini-signup-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border: 1px solid #27ae60 !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.mini-signup-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
}

.mini-signup-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* ==========================================================================
   SITES TABLE
   ========================================================================== */

.compact-sites-table {
    margin-top: 0;
}

.compact-sites-table h4 {
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 18px;
}

.sites-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
    font-size: 16px;
}

.sites-table th {
    background: var(--table-header);
    color: white;
    padding: 6px 8px;
    font-size: 15px;
    text-align: left;
}

.sites-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 16px;
}

.sites-table tr:nth-child(even) {
    background-color: var(--background-light);
}

.site-payout {
    font-weight: bold;
    color: var(--success-green);
}

/* ==========================================================================
   BUTTONS AND BADGES
   ========================================================================== */

.site-link {
    color: var(--primary-blue) !important;
    text-decoration: underline !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

.site-link:hover {
    color: var(--primary-blue-dark) !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

.site-link:visited {
    color: var(--primary-blue) !important;
}

.site-link:focus {
    color: var(--primary-blue-dark) !important;
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.gpt_badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.gpt_badge a {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue) !important;
    text-decoration: underline !important;
}

.gpt_badge a:hover {
    color: var(--primary-blue-dark) !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

.gpt_badge span[class*="_image"] {
    text-decoration: none !important;
}

.visit-site-btn {
    background: var(--primary-blue);
    color: white !important;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none !important;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.visit-site-btn:hover {
    background: var(--primary-blue-dark);
    color: white !important;
    text-decoration: none !important;
}

.visit-site-btn:visited {
    color: white !important;
}

/* ==========================================================================
   UPDATED SIGNUP BUTTONS - DESKTOP WITH LOGOS
   ========================================================================== */

/* CONSISTENT DESKTOP BUTTON STYLES - All 14px font size */

/* Main desktop signup button - enhanced to match mobile with logo */
.signup-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #27ae60 !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    min-width: 100px !important;
    height: 36px !important;
    gap: 6px !important;
    line-height: 1 !important;
}

.signup-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60) !important;
    color: white !important;
    border-color: #229954 !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
}

.signup-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.signup-btn:visited,
.signup-btn:focus {
    color: white !important;
    text-decoration: none !important;
}

/* Desktop badge-style signup button (to match mobile design) */
.desktop-site-badge-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    border: 1px solid #27ae60 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    color: white !important;
    font-size: 14px !important;
    line-height: 1 !important;
    gap: 6px !important;
    min-width: 120px !important;
    height: 36px !important;
    justify-content: center !important;
}

.desktop-site-badge-link:hover {
    background: linear-gradient(135deg, #229954, #27ae60) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
    color: white !important;
    text-decoration: none !important;
}

.desktop-site-badge-link:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.desktop-site-badge-link [class*="_image"] {
    width: 20px !important;
    height: 20px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
}

.desktop-site-name {
    color: white !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    font-family: inherit !important;
    font-size: 14px !important;
}

.desktop-arrow {
    color: white !important;
    font-weight: bold !important;
    opacity: 0.9 !important;
    margin: 0 0 0 2px !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    font-family: inherit !important;
    font-size: 14px !important;
}

/* Individual offer page signup buttons */
.sites-table-full .signup-btn,
.join-cell .signup-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid #27ae60 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    height: 36px !important;
    line-height: 1 !important;
}

.sites-table-full .signup-btn:hover,
.join-cell .signup-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
}

.sites-table-full .signup-btn:active,
.join-cell .signup-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.load-more-sites {
    text-align: center;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #eee;
}

.load-more-btn {
    color: var(--primary-blue) !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.load-more-btn:hover {
    background: var(--primary-blue);
    color: white !important;
    text-decoration: none !important;
}

/* ==========================================================================
   PLATFORM ICONS
   ========================================================================== */

.platform-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.platform-ios {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="512" width="512"><rect width="512" height="512" fill="%23555" rx="15%25"/><path fill="%23f2f2f2" d="M410 334s-10 29-30 59c-5 9-29 43-58 43-21 0-35-15-62-15-33 0-46 15-67 15-11 1-22-5-34-16-77-73-81-181-52-225 18-29 48-47 81-48 26 0 54 17 65 17 8 0 50-20 74-18 33 3 56 15 73 38-49 24-66 117 10 150zM329 56c8 32-27 93-79 90-3-43 34-87 79-90z"/></svg>');
}

.platform-android {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="512" width="512"><rect width="512" height="512" rx="15%25" fill="%23a4c639"/><g stroke="%23fff" stroke-linecap="round"><path stroke-width="58" d="M107 212v106m299-106v106m-107 66v56m-85-56v56"/><path stroke-width="8" d="M203 88l-17-32m123 32l18-32"/></g><path fill="%23fff" d="M257 76c-76 0-115 60-115 105h229c0-47-42-104-114-105zM142 191v164c0 16 13 29 28 29h172c16 0 29-13 29-29V191z"/><g fill="%23a4c639"><circle cx="204" cy="130" r="9"/><circle cx="309" cy="130" r="9"/></g></svg>');
}

.platform-desktop {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="512" width="512"><rect width="512" height="512" rx="15%25" fill="%23666"/><rect x="64" y="96" width="384" height="256" rx="16" fill="%23fff"/><rect x="80" y="112" width="352" height="200" fill="%23333"/><rect x="208" y="368" width="96" height="16" rx="8" fill="%23fff"/><rect x="160" y="384" width="192" height="48" rx="24" fill="%23fff"/></svg>');
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (min-width: 992px) {
    .filter-grid-container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-areas:
          "search offerwall platform category"
          "status update reset country";
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .filter-grid-container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-areas:
          "search search search search"
          "offerwall platform category ."
          "status update reset country";
    }
    
    .mobile-dropdown {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-dropdown {
        display: none;
    }
    
    .offer-meta {
        display: none;
    }
}

@media (max-width: 768px) {
    /* CLS Prevention - Mobile */
    .gptv2-table tr {
        height: 70px;
    }
    
    .offer-image, .offer-image-placeholder {
        width: 45px !important;
        height: 45px !important;
    }
    
    .mobile-signup-btn, .desktop-site-badge-link {
        min-width: 50px;
        height: 24px;
    }
    
    .offer-meta {
        min-height: 18px;
    }
    
    /* Filter Grid */
    .filter-grid-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
          "search search"
          "offerwall platform"
          "category ."
          "mobile-dropdown mobile-dropdown";
        gap: 10px;
        padding: 12px;
    }
    
    .grid-cell:not(.search-cell) h4 {
        display: none;
    }
    
    .status-cell, .update-cell, .reset-cell, .country-cell {
        display: none;
    }
    
    /* Table Layout */
    .gptv2-table {
        max-width: 100vw;
        overflow: visible;
    }
    
    .gptv2-table table {
        width: 100%;
        table-layout: fixed;
    }
    
    .gptv2-table th:nth-child(3),
    .gptv2-table td:nth-child(3),
    .gptv2-table th:nth-child(4),
    .gptv2-table td:nth-child(4),
    .gptv2-table th:nth-child(5),
    .gptv2-table td:nth-child(5),
    .gptv2-table th:nth-child(6),
    .gptv2-table td:nth-child(6) {
        display: none;
    }
    
    .gptv2-table td {
        padding: 8px !important;
    }
    
    /* Mobile Combined Column */
    .mobile-combined-column {
        text-align: center !important;
        vertical-align: middle !important;
        white-space: normal !important;
        padding: 8px 4px !important;
        min-width: 120px;
    }
    
    .mobile-payout-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .mobile-payout-row .best-payout {
        font-size: 14px !important;
        font-weight: bold !important;
        color: var(--success-green) !important;
        line-height: 1.2 !important;
    }

    .mobile-site-badge-link {
        display: inline-flex !important;
        align-items: center !important;
        text-decoration: none !important;
        border-radius: 6px !important;
        padding: 4px 8px !important;
        background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
        border: 1px solid #27ae60 !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        color: white !important;
        font-size: 14px !important;
        line-height: 1 !important;
        gap: 2px !important;
        height: 28px !important;
    }

    .mobile-site-badge-link:hover {
        background: linear-gradient(135deg, #229954, #27ae60) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
        color: white !important;
        text-decoration: none !important;
    }

    .mobile-site-badge-link:active {
        transform: translateY(0) !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    }

    .mobile-site-badge-link [class*="_image"] {
        width: 20px !important;
        height: 20px !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        flex-shrink: 0 !important;
    }

    .mobile-site-name {
        color: white !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
        font-family: inherit !important;
    }

    .mobile-arrow {
        color: white !important;
        font-weight: bold !important;
        opacity: 0.9 !important;
        margin: 0 0 0 1px !important;
        padding: 0 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        font-family: inherit !important;
    }
    
    /* Mobile Offer Content */
    .offer-content {
        gap: 8px;
    }
    
    .offer-name {
        font-size: 14px !important;
        line-height: 1.2;
        margin-bottom: 1px !important;
    }
    
    .offer-meta {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 2px;
    }

    .mobile-offerwall,
    .mobile-devices {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .mobile-offerwall .gpt_badge {
        font-size: 9px !important;
        line-height: 1.1 !important;
    }

    .mobile-offerwall [class*="_image"] {
        width: 14px !important;
        height: 14px !important;
        margin-right: 2px !important;
    }

    .mobile-offerwall .offerwall-badge {
        font-size: 8px !important;
        padding: 1px 3px !important;
        border-radius: 2px !important;
    }

    .mobile-devices .platform-icon {
        width: 14px !important;
        height: 14px !important;
        margin-right: 1px !important;
    }
    
    /* Mobile button adjustments */
    .signup-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
        min-width: 80px !important;
        height: 28px !important;
    }
    
    .desktop-site-badge-link {
        padding: 6px 10px !important;
        font-size: 12px !important;
        min-width: 100px !important;
        height: 28px !important;
        gap: 4px !important;
    }
    
    .desktop-site-badge-link [class*="_image"] {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Mobile Expanded Details */
    .expanded-details {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }
    
    .compact-details-content {
        padding: 8px !important;
        margin: 0 !important;
        max-width: 100%;
        overflow-x: hidden;
        background: white !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
    }
    
    .task-description, .offer-description, .tasks-goals {
        margin-bottom: 6px !important;
        padding: 4px 8px !important;
    }
    
    .task-description h4, .offer-description h4, .tasks-goals h4 {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
    
    .task-description p, .offer-description p {
        font-size: 13px !important;
    }
    
    /* Mobile Task Payouts */
    .task-payouts-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border: 1px solid #eee;
        border-radius: 4px;
    }
    
    .task-payouts-table h4 {
        font-size: 14px !important;
        margin-bottom: 4px !important;
        padding-left: 0;
    }
    
    .payouts-grid {
        min-width: 600px;
        width: 600px;
        font-size: 12px !important;
    }
    
    .task-payouts-table .payouts-grid .task-header, 
    .task-payouts-table .payouts-grid .site-header {
        padding: 6px 3px !important;
        font-size: 11px !important;
        min-height: 30px !important;
    }
    
    .task-name, .task-payout {
        padding: 4px !important;
        font-size: 11px !important;
    }
    
    .task-name {
        font-size: 10px !important;
    }
    
    .mini-signup-btn {
        padding: 2px 6px !important;
        font-size: 9px !important;
    }
    
    .task-payouts-table .payouts-grid [class*="_image"] {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Mobile Sites Table */
    .compact-sites-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border: 1px solid #eee;
        border-radius: 4px;
    }
    
    .compact-sites-table h4 {
        font-size: 14px !important;
        margin-bottom: 4px !important;
        padding-left: 0;
    }
    
    .sites-table {
        min-width: 400px;
        width: 400px;
        font-size: 12px !important;
        margin: 0;
    }
    
    .sites-table th {
        font-size: 11px !important;
        padding: 4px 6px !important;
        white-space: nowrap !important;
    }
    
    .sites-table td {
        font-size: 12px !important;
        padding: 4px 6px !important;
        white-space: nowrap !important;
    }
    
    .platform-icon {
        width: 20px;
        height: 20px;
        margin-right: 4px;
    }
    
    .load-more-btn {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
    
    /* Scroll indicators */
    .task-payouts-table::-webkit-scrollbar,
    .compact-sites-table::-webkit-scrollbar {
        height: 6px;
    }
    
    .task-payouts-table::-webkit-scrollbar-track,
    .compact-sites-table::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .task-payouts-table::-webkit-scrollbar-thumb,
    .compact-sites-table::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
    .task-payouts-table::-webkit-scrollbar-thumb:hover,
    .compact-sites-table::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* Individual Offer Page Enhancements */

/* Task Payouts Section for Full Page */
.task-payouts-section {
    margin: 30px 0;
}

.task-payouts-section h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 24px;
    border-bottom: 2px solid var(--success-green);
    padding-bottom: 8px;
}

.full-payouts-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
}

.payouts-grid-full {
    display: grid;
    grid-template-columns: 2fr repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background-color: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    font-size: 16px;
    min-width: 800px; /* Ensure horizontal scroll on smaller screens */
}

.payouts-grid-full .payouts-header {
    display: contents;
}

.payouts-grid-full .task-header, 
.payouts-grid-full .site-header {
    background: var(--table-header) !important;
    color: white !important;
    padding: 15px 8px !important;
    font-weight: bold !important;
    text-align: center !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 60px !important;
}

.payouts-grid-full .task-header {
    text-align: left !important;
    justify-content: flex-start !important;
    padding-left: 15px !important;
}

.payouts-grid-full .payout-row {
    display: contents;
}

.payouts-grid-full .task-name, 
.payouts-grid-full .task-payout {
    background: white;
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.payouts-grid-full .task-name {
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
    padding-left: 15px;
}

.payouts-grid-full .task-payout {
    text-align: center;
    font-weight: bold;
    color: var(--success-green);
    justify-content: center;
}

.payouts-grid-full .payout-row:nth-child(even) .task-name,
.payouts-grid-full .payout-row:nth-child(even) .task-payout {
    background-color: var(--background-light);
}

/* Site buttons in full grid */
.payouts-grid-full .site-buttons-row {
    display: contents;
}

.payouts-grid-full .task-button-spacer {
    background: #e9ecef !important;
    padding: 10px !important;
    border-top: 2px solid var(--border-color) !important;
}

.payouts-grid-full .site-button-cell {
    background: #e9ecef !important;
    padding: 10px 8px !important;
    text-align: center !important;
    border-top: 2px solid var(--border-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.payouts-grid-full .mini-signup-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid #27ae60 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.payouts-grid-full .mini-signup-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
}

.payouts-grid-full .mini-signup-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* Sites Overview Section */
.sites-overview {
    margin: 30px 0;
}

.sites-overview h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 24px;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 8px;
}

.sites-table-full {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sites-table-full th {
    background: var(--table-header);
    color: white;
    padding: 15px 12px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
}

.sites-table-full td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 14px;
}

.sites-table-full tr:nth-child(even) {
    background-color: var(--background-light);
}

.sites-table-full tr:hover {
    background-color: #e3f2fd;
}

/* Ranking styles */
.rank-cell {
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    min-width: 60px;
}

.rank-gold {
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.rank-silver {
    color: #c0c0c0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.rank-bronze {
    color: #cd7f32;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.site-cell {
    min-width: 150px;
}

.percentage-cell {
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 100px;
}

.payout-cell {
    text-align: center;
    font-weight: bold;
    color: var(--success-green);
    font-size: 16px;
    min-width: 100px;
}

.join-cell {
    text-align: center;
    min-width: 120px;
}

.join-cell .signup-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Device and Offerwall Info Styling */
.offer-meta-info {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.meta-value {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Enhanced badge styling for individual pages */
.payouts-grid-full .site-header .gpt_badge,
.sites-table-full .gpt_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.payouts-grid-full .site-header [class*="_image"],
.sites-table-full [class*="_image"] {
    width: 24px !important;
    height: 24px !important;
    margin-right: 6px !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Mobile responsive for individual offer pages */
@media (max-width: 768px) {
    .task-payouts-section h3,
    .sites-overview h3 {
        font-size: 20px;
    }
    
    .payouts-grid-full {
        font-size: 12px;
        min-width: 600px;
    }
    
    .payouts-grid-full .task-header, 
    .payouts-grid-full .site-header {
        padding: 8px 4px !important;
        font-size: 11px !important;
        min-height: 40px !important;
    }
    
    .payouts-grid-full .task-name, 
    .payouts-grid-full .task-payout {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .payouts-grid-full .task-name {
        font-size: 11px;
    }
    
    .payouts-grid-full .mini-signup-btn {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }
    
    .sites-table-full {
        font-size: 12px;
    }
    
    .sites-table-full th,
    .sites-table-full td {
        padding: 8px 6px;
    }
    
    .rank-cell {
        font-size: 14px;
        min-width: 40px;
    }
    
    .join-cell .signup-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .offer-meta-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .meta-item {
        gap: 6px;
    }
    
    .payouts-grid-full [class*="_image"],
    .sites-table-full [class*="_image"] {
        width: 20px !important;
        height: 20px !important;
        margin-right: 4px !important;
    }
}