/* ============================================================
   DroidTester — Campaign Page Styles
   ============================================================ */

/* ── Add Campaign Page ── */
.icon-upload-box {
    border: 2px dashed var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: #fafafa;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-upload-box:hover {
    border-color: var(--primary);
    background: rgba(27, 122, 67, 0.04);
}

.icon-upload-box.drag-over {
    border-color: var(--primary);
    background: rgba(27, 122, 67, 0.08);
}

.icon-upload-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(27, 122, 67, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary);
    margin: 0 auto 12px;
}

.icon-upload-preview {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
}

.icon-upload-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* ── Package Selection Cards ── */
.package-card-select {
    background: var(--gradient-green);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all var(--transition-normal);
}

.package-card-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(27, 122, 67, 0.35);
}

.package-card-select.selected {
    border-color: #FFD700;
    box-shadow: 0 0 0 2px #FFD700;
}

.package-card-select::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.package-card-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.package-card-price {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.package-card-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.package-card-feature .feat-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.25);
    border: 1px solid rgba(255, 193, 7, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-size: 9px;
    flex-shrink: 0;
}

.package-select-cb {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    transition: all var(--transition-fast);
}

.package-card-select.selected .package-select-cb {
    background: #FFD700;
    border-color: #FFD700;
    color: var(--primary);
}

/* ── Campaign Details Page ── */
.campaign-detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}

.campaign-app-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.campaign-big-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    box-shadow: 0 8px 24px rgba(27, 122, 67, 0.25);
}

.campaign-app-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.campaign-app-dev-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-boxes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.info-box {
    border: 1.5px dashed #C8D6C0;
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(27, 122, 67, 0.03);
    position: relative;
    overflow: hidden;
}

.info-box-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.info-box-icon.green {
    background: var(--primary);
}

.info-box-icon.blue {
    background: #4A90D9;
}

.info-box-icon.orange {
    background: var(--secondary);
}

.info-box-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.info-box-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Right Panel ── */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tester-joined-card {
    background: var(--gradient-green);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tester-joined-card .tj-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.tester-joined-card .tj-count {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.tester-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
}

.tester-list-item:last-child {
    border-bottom: none;
}

.tester-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.tester-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 1px;
}

.tester-email {
    font-size: 11px;
    color: var(--text-secondary);
}

.tester-action-btn {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.tester-chat-btn {
    background: rgba(27, 122, 67, 0.1);
    color: var(--primary);
    border: none;
}

.tester-chat-btn:hover {
    background: var(--primary);
    color: #fff;
}

.tester-approve-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    width: auto;
    border-radius: var(--border-radius-pill);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
}

.tester-approve-btn:hover {
    background: var(--primary-dark);
}

.start-campaign-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--border-radius-pill);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.start-campaign-btn.active-btn {
    background: var(--gradient-green);
    color: #fff;
    box-shadow: 0 4px 15px rgba(27, 122, 67, 0.3);
}

.start-campaign-btn.active-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(27, 122, 67, 0.4);
}

.start-campaign-btn.disabled-btn {
    background: #ddd;
    color: #aaa;
    cursor: not-allowed;
}

/* ── Credit History ── */
.credit-history-row {
    background: var(--bg-cream);
    border-radius: var(--border-radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    border: 1.5px solid var(--card-border);
    transition: all var(--transition-fast);
}

.credit-row-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.credit-row-header:hover {
    background: rgba(27, 122, 67, 0.04);
}

.credit-star-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(27, 122, 67, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.credit-pkg-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.credit-pkg-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.credit-toggle-btn {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.credit-expanded-content {
    padding: 16px;
    border-top: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.7);
    display: none;
}

.credit-expanded-content.open {
    display: block;
}

.credit-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.credit-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.credit-detail-item .cd-icon {
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.credit-detail-item .cd-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.credit-detail-item .cd-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Search Campaign ── */
.index-matches-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.index-matches-text strong {
    color: var(--primary);
}

/* ── Package Details / Purchase ── */
.package-banner {
    background: var(--gradient-green);
    border-radius: var(--border-radius-lg);
    padding: 28px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.package-banner::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.package-banner .pkg-name-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.package-banner .pkg-price {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
}

.package-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.package-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.package-feature-item .pf-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    flex-shrink: 0;
}

.pkg-trophy-img {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    opacity: 0.6;
}

.order-summary-card {
    background: #fff;
    border: 1.5px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 20px;
}

.order-summary-card .os-package-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.order-summary-card .os-package-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.os-divider {
    border-color: var(--card-border);
    margin: 14px 0;
}

.os-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.os-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
}

.payment-method-card {
    border: 1.5px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all var(--transition-fast);
}

.payment-method-card.selected {
    border-color: var(--primary);
    background: rgba(27, 122, 67, 0.04);
}

.payment-method-card:hover {
    border-color: var(--primary);
}

.payment-radio {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.payment-name {
    font-weight: 600;
    font-size: 13px;
    flex: 1;
}

.payment-icon {
    font-size: 22px;
}

.terms-checkbox-group {
    margin-bottom: 12px;
}

.terms-checkbox-group label {
    font-size: 12px;
    color: var(--text-secondary);
}

.terms-checkbox-group a {
    color: var(--primary);
    text-decoration: underline;
}

input[type="checkbox"] {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
}