.ad-container {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-placeholder { color: #bbb; font-size: 15px; }

.order-card {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.oc-top, .oc-row {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

.oc-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.oc-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.oc-val {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.oc-mid {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.oc-section-title {
    text-align: center;
    font-size: 14px;
    color: #000;
    margin: 0;
}

.oc-bottom {
    background: linear-gradient(180deg, #f0f6ff 0%, #e2eeff 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.oc-b-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6a7c92;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.oc-grade-bg {
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    position: absolute;
    right: 15px;
    top: 10px;
}

.oc-b-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.oc-btn {
    flex: 1;
    padding: 12px 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    position: relative;
}

.oc-btn.primary { background: #0b3b85; }
.oc-btn.secondary { background: #e87b35; }

.oc-btn-outline {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 2;
    position: relative;
}

.order-explanation { margin-bottom: 30px; }
.order-explanation h3 { font-size: 16px; margin-bottom: 12px; color: #222; }
.oe-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.oe-box p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 10px;
}
.oe-box p:last-child { margin-bottom: 0; }

.task-complete-msg {
    display: none; background: #e8f5e9; border-radius: 12px;
    padding: 16px; text-align: center; color: #2e7d32;
    font-weight: 600; margin-bottom: 20px; font-size: 15px;
}
.task-complete-msg.show { display: block; }

/* ===== Payment Details Card ===== */
.task-presentation {
    display: none;
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 0 0 2000px rgba(0,0,0,0.55), 0 12px 40px rgba(0,0,0,0.25);
    width: 92%;
    max-width: 380px;
    position: fixed;
    top: 0; bottom: 0; left: 0; right: 0;
    margin: auto;
    height: fit-content;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10000;
    animation: cardSlideIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes cardSlideIn {
    0% { transform: translateY(30px) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.tp-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    text-align: center;
    padding: 20px 20px 0;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Meta: match time, order number */
.tp-meta {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.tp-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}
.tp-meta-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}
.tp-meta-value {
    font-size: 13px;
    color: #222;
    font-weight: 700;
}
.tp-order-num {
    font-size: 11px;
    letter-spacing: 0.3px;
    word-break: break-all;
}

/* Product items list */
.tp-products {
    padding: 12px 20px;
}
.tp-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.tp-product-item:last-child {
    border-bottom: none;
}
.tp-product-img {
    width: 52px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tp-product-info {
    flex: 1;
    min-width: 0;
}
.tp-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.tp-product-price {
    font-size: 12px;
    color: #888;
}
.tp-product-qty {
    font-size: 12px;
    color: #888;
    margin-left: 6px;
}

/* Financial summary */
.tp-summary {
    padding: 14px 20px 6px;
    border-top: 1px solid #f0f0f0;
}
.tp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
}
.tp-summary-row:last-child {
    border-bottom: none;
}
.tp-summary-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
.tp-summary-value {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}
.tp-summary-value.tp-highlight {
    color: #e91e63;
}

.diamond-icon {
    display: inline-block;
    margin-right: 2px;
}

/* Submit button inside card */
.task-presentation .btn-confirm-task {
    margin: 12px 20px 20px;
    width: calc(100% - 40px);
}

.btn-confirm-task {
    padding: 14px;
    background: linear-gradient(135deg, #e91e63, #ff5722);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    display: block;
}
.btn-confirm-task:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-confirm-task:active { transform: translateY(0); }

/* Widget modals for timer and success */
#timerBox, #successBox {
    position: fixed !important;
    top: 0; bottom: 0; left: 0; right: 0;
    margin: auto; height: fit-content; z-index: 10000;
    box-shadow: 0 0 0 2000px rgba(0,0,0,0.6), 0 8px 32px rgba(0,0,0,0.2) !important;
    width: 90%; max-width: 340px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    z-index: 100;
    transition: color 0.2s;
}
.close-btn:hover {
    color: #000;
}

/* Grade Modal Styling */
.grade-modal {
    display: none;
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 0 0 2000px rgba(0,0,0,0.6), 0 8px 32px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 340px;
    position: fixed;
    top: 0; bottom: 0; left: 0; right: 0;
    margin: auto;
    height: fit-content;
    z-index: 10001;
    animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.gm-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.gm-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.gm-item {
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #ccc;
    background: #f9f9f9;
}

.gm-item.gold { border-left-color: #ffd700; }
.gm-item.silver { border-left-color: #c0c0c0; }
.gm-item.premium { border-left-color: #ff4d4d; }

.gm-level {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.gm-range {
    font-weight: 600;
    font-size: 14px;
    color: #e91e63;
}

.gm-note {
    font-size: 12px;
    color: #999;
    margin: 0;
}
