/* ---- Rewards Page ---- */

.rw-sign-in-prompt-link {
    color: rgb(126 186 255);
}

.rw-sign-in-prompt {
    display: block;
    padding: 12px;
    background: rgb(35 36 48);
    color: rgb(201 207 225);
    border: 1px solid rgb(60 65 85);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
}

.rw-subheading {
    margin: 0;
    font-size: 14px;
    color: rgb(163 173 196);
}

.rw-beta-badge {
    display: inline-block;
    padding: 1px 7px;
    background: rgba(109 74 255 / 0.15);
    color: rgb(149 120 255);
    border: 1px solid rgba(109 74 255 / 0.3);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.rw-page {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Nav */
.rw-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rw-nav-btn {
    position: relative;
    padding: 8px 10px;
    background: transparent;
    color: rgb(236 242 255 / 0.7);
    border: none;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.rw-nav-btn:hover {
    color: rgba(236 242 255);
}

.rw-nav-btn.active {
    color: rgb(236 242 255);
}

.rw-nav-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #64adff;
    border-radius: 99px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.rw-nav-btn.active::after {
    transform: scaleX(1);
}

/* Panels */
.rw-panel {
    display: none;
}

.rw-panel.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Grid */
.rw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: start;
    gap: 20px;
}

/* Card */
.rw-card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: rgb(35 36 48);
    border: 1px solid rgb(60 65 85);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.rw-card--removing {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.rw-card--active {
    border-color: rgb(255 255 255);
    background: rgb(46 48 63);
}

.rw-card-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    background: rgb(20 21 30);
    border-radius: 8px;
    overflow: hidden;
}

.rw-card-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rw-card-poster-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.rw-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rw-card-reward {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: rgba(34 197 94 / 0.12);
    color: #22c55e;
    border: 1px solid rgba(34 197 94 / 0.22);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

.rw-card-promo-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgb(200 207 220);
    word-break: break-word;
}

.rw-btn-post {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgb(37 99 235), rgb(80 160 255));
    color: rgb(255 255 255);
    border: none;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.15s;
}

.rw-btn-post:hover {
    filter: brightness(1.12);
}

.rw-card-link-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 7px 10px;
    background: rgb(25 25 35);
    color: rgb(200 207 220);
    border: 1px solid rgb(81 91 109);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

.rw-card-link-input:focus {
    border-color: rgb(138 151 176);
}

.rw-card-link-input::placeholder {
    color: rgb(112 123 143);
}

.rw-card-submit-btn {
    display: none;
    width: 100%;
    padding: 7px;
    background: linear-gradient(135deg, rgb(37 99 235), rgb(80 160 255));
    color: rgb(255 255 255);
    border: none;
    border-radius: 99px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.rw-card-submit-btn.visible {
    display: block;
}

.rw-card-submit-btn:hover {
    filter: brightness(1.12);
}

.rw-card-feedback {
    display: none;
    margin: 0;
    font-size: 12px;
}

.rw-card-feedback--success {
    display: block;
    color: #22c55e;
}

.rw-card-feedback--error {
    display: block;
    color: rgb(255 100 100);
}

/* Pagination */
.rw-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rw-pagination {
    gap: 8px;
}

.rw-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: rgb(40 42 56);
    color: rgb(160 170 192);
    border: 1px solid rgb(72 80 105);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.rw-page-btn:hover:not(.active) {
    color: rgb(200 207 220);
    border-color: rgb(100 110 140);
}

.rw-page-btn.active {
    background: rgba(100 173 255 / 0.3);
    color: rgb(255 255 255);
    border-color: #64adff;
}

/* Loading */
@keyframes rw-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.rw-loading {
    display: none;
    margin: 0;
    font-size: 16px;
    color: rgb(184 194 216);
    animation: rw-pulse 1.4s ease-in-out infinite;
}

.rw-loading.visible {
    display: block;
}

/* Status messages */
.rw-status {
    margin: 0;
    font-size: 15px;
    color: rgb(163 173 196);
}

.rw-status--error {
    color: rgb(255 100 100);
}

/* ---- Daily Check-in Banner ---- */
.rw-checkin-banner {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    max-width: 480px;
    background: rgba(109 74 255 / 0.1);
    border: 1px solid rgba(109 74 255 / 0.3);
    border-radius: 10px;
    font-size: 14px;
    color: rgb(201 207 225);
}

.rw-checkin-btn {
    flex-shrink: 0;
    padding: 7px 16px;
    background: linear-gradient(135deg, rgb(109 74 255), rgb(80 130 255));
    color: rgb(255 255 255);
    border: none;
    border-radius: 99px;
    font-size: 13px;
    cursor: pointer;
    transition: filter 0.15s;
}

.rw-checkin-btn:hover:not(:disabled) {
    filter: brightness(1.12);
}

.rw-checkin-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---- Dashboard ---- */
.rw-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rw-dash-card {
    flex: 1;
    min-width: 100px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    background: rgb(35 36 48);
    border: 1px solid rgb(60 65 85);
    border-radius: 10px;
}


.rw-dash-card--combined {
    max-width: 480px;
    gap: 10px;
}

.rw-dash-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rw-dash-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.rw-dash-dot--time { background: rgb(99 149 255); }

.rw-dash-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: rgb(148 158 180);
    text-transform: uppercase;
}

.rw-dash-count {
    font-size: 18px;
    font-weight: 600;
    color: rgb(210 217 230);
}

.rw-dash-time {
    font-size: 34px;
    font-weight: 600;
    color: rgb(210 217 230);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.rw-dash-sub {
    font-size: 12px;
    color: rgb(148 158 180);
}

.rw-redeem-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rw-redeem-track {
    width: 100%;
    height: 6px;
    background: rgb(50 55 75);
    border-radius: 99px;
    overflow: hidden;
}

.rw-redeem-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(109 74 255), rgb(80 130 255));
    border-radius: 99px;
    transition: width 0.4s ease;
}

.rw-dash-time-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.rw-redeem-bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgb(148 158 180);
}

.rw-redeem-bar-meta span:last-child {
    color: rgb(149 120 255);
}

.rw-redeem-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px;
    margin: 4px 0;
    background: linear-gradient(135deg, rgb(109 74 255), rgb(80 130 255));
    color: rgb(255 255 255);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: filter 0.15s;
}

.rw-redeem-btn:hover:not(:disabled) {
    filter: brightness(1.12);
}

.rw-redeem-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---- Submission Status Counts ---- */
.rw-sub-counts {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rw-sub-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.rw-sub-count-pill--pending {
    background: rgba(245 158 11 / 0.12);
    color: #f59e0b;
    border-color: rgba(245 158 11 / 0.25);
}

.rw-sub-count-pill--completed {
    background: rgba(34 197 94 / 0.12);
    color: #22c55e;
    border-color: rgba(34 197 94 / 0.25);
}

.rw-sub-count-pill--denied {
    background: rgba(239 68 68 / 0.12);
    color: #ef4444;
    border-color: rgba(239 68 68 / 0.25);
}

/* ---- Submission Card ---- */
.rw-sub-card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: rgb(35 36 48);
    border: 1px solid rgb(60 65 85);
    border-radius: 10px;
}

.rw-sub-status {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid transparent;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rw-sub-status[data-status="pending"] {
    background: rgba(245 158 11 / 0.12);
    color: #f59e0b;
    border-color: rgba(245 158 11 / 0.25);
}

.rw-sub-status[data-status="completed"] {
    background: rgba(34 197 94 / 0.12);
    color: #22c55e;
    border-color: rgba(34 197 94 / 0.25);
}

.rw-sub-status[data-status="denied"] {
    background: rgba(239 68 68 / 0.12);
    color: #ef4444;
    border-color: rgba(239 68 68 / 0.25);
}

.rw-sub-url-col {
    display: flex;
    flex-direction: column;
}

.rw-sub-url-label {
    flex-shrink: 0;
    font-size: 14px;
    color: #dde1e8;
}

.rw-sub-url {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgb(174 183 198);
    font-size: 13px;
    word-break: break-all;
    text-decoration: none;
}

.rw-sub-url:hover {
    text-decoration: underline;
}

.rw-sub-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rw-sub-message {
    font-size: 12px;
    color: rgb(168 175 189);
    font-weight: 600;
}

.rw-sub-eligible {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rw-sub-eligible-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.rw-sub-eligible-text {
    font-size: 12px;
    font-weight: 600;
}

.rw-sub-eligible--ready .rw-sub-eligible-text {
    color: #22c55e;
}

.rw-sub-eligible--ready .rw-sub-eligible-icon {
    filter: brightness(0) saturate(100%) invert(55%) sepia(73%) saturate(387%) hue-rotate(96deg) brightness(91%);
}

.rw-sub-eligible--waiting .rw-sub-eligible-text {
    color: #f59e0b;
}

.rw-sub-eligible--waiting .rw-sub-eligible-icon {
    filter: brightness(0) saturate(100%) invert(66%) sepia(98%) saturate(452%) hue-rotate(1deg) brightness(103%);
}

.rw-sub-admin-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.rw-btn-approve,
.rw-btn-deny {
    flex: 1;
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s;
}

.rw-btn-approve {
    background: rgba(37 99 235 / 0.15);
    color: rgb(80 160 255);
    border: 1px solid rgba(37 99 235 / 0.4);
}

.rw-btn-approve:hover:not(:disabled) {
    filter: brightness(1.15);
}

.rw-btn-deny {
    background: rgba(225 29 72 / 0.15);
    color: #f43f5e;
    border: 1px solid rgba(225 29 72 / 0.4);
}

.rw-btn-deny:hover:not(:disabled) {
    filter: brightness(1.15);
}

.rw-btn-approve:disabled,
.rw-btn-deny:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---- Redeem Premium Modal ---- */
.rw-redeem-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rw-redeem-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rw-redeem-modal {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 16px;
    background: rgb(28 29 40);
    border: 1px solid rgb(60 65 85);
    border-radius: 14px;
    transform: translateY(10px);
    transition: transform 0.25s ease;
}

.rw-redeem-overlay.active .rw-redeem-modal {
    transform: translateY(0);
}

.rw-redeem-notice {
    margin: 0;
    font-size: 16px;
    color: rgb(181 190 209);
    line-height: 1.5;
}

.rw-redeem-confirm-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    margin: 8px 0;
    background: linear-gradient(135deg, rgb(109 74 255), rgb(80 130 255));
    color: rgb(255 255 255);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s;
}

.rw-redeem-confirm-btn:hover {
    filter: brightness(1.12);
}

.rw-redeem-confirm-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
