/* FedConTools Purchases — Frontend Styles */

/* ============ PRICING GRID ============ */
.fedcontools-pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem 0;
}
@media (min-width: 768px) {
    .fedcontools-pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.fedcontools-pricing-card {
    position: relative;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: rgba(11, 17, 32, 0.8);
    transition: all 0.3s;
    text-align: center;
}
.fedcontools-pricing-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}
.fedcontools-pricing-card.featured {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}
.fedcontools-pricing-card .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: linear-gradient(135deg, #6366f1, #9333ea);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
}
.fedcontools-pricing-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}
.fedcontools-pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 1rem;
}
.fedcontools-pricing-card .price-period {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}
.fedcontools-pricing-card ul {
    text-align: left;
    margin: 1rem 0 2rem;
    list-style: none;
}
.fedcontools-pricing-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.btn-purchase {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #9333ea);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.25);
}
.btn-purchase:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
    color: #fff;
}
.btn-purchase-link {
    text-align: center;
}

/* ============ CHECKOUT ============ */
.fedcontools-checkout {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: rgba(11, 17, 32, 0.8);
}
.checkout-summary h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #1e293b;
}
.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: #94a3b8;
    font-size: 0.9375rem;
}
.checkout-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    border-top: 1px solid #1e293b;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
}
.btn-paypal-checkout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    border: none;
    border-radius: 12px;
    background: #0070ba;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-paypal-checkout:hover {
    background: #005ea6;
}
.paypal-subtext {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}
.checkout-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}
.checkout-footer p {
    margin: 0.25rem 0;
}

/* ============ CONFIRMATION ============ */
.fedcontools-confirmation {
    max-width: 640px;
    margin: 2rem auto;
}
.confirmation-success,
.confirmation-pending {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: rgba(11, 17, 32, 0.8);
    margin-bottom: 2rem;
}
.confirmation-success { border-color: rgba(34, 197, 94, 0.3); }
.confirmation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.confirmation-success .confirmation-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    font-size: 1.5rem;
    font-weight: 700;
}
.confirmation-success h2 { color: #22c55e; font-size: 1.5rem; margin-bottom: 0.5rem; }
.confirmation-pending h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
.confirmation-details {
    margin: 1.5rem 0;
    text-align: left;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.confirmation-details div {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #1e293b;
    font-size: 0.875rem;
    color: #94a3b8;
}
.confirmation-details div span:first-child { color: #64748b; }
.btn-go-dashboard {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #6366f1, #9333ea);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-go-dashboard:hover { color: #fff; }

/* ============ ORDER HISTORY ============ */
.fedcontools-order-history {
    max-width: 800px;
    margin: 2rem auto;
}
.fedcontools-order-history h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}
.no-orders {
    color: #64748b;
    text-align: center;
    padding: 3rem;
    border: 1px dashed #1e293b;
    border-radius: 12px;
}
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.orders-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #1e293b;
    color: #64748b;
    font-weight: 600;
}
.orders-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #1e293b;
    color: #94a3b8;
}
.orders-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.03);
}
.tier-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.tier-basic { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.tier-pro { background: rgba(147, 51, 234, 0.15); color: #a78bfa; }
.tier-premium { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.status-completed { color: #22c55e; font-weight: 600; }
.status-pending { color: #f59e0b; font-weight: 600; }
.status-refunded { color: #ef4444; font-weight: 600; }
.status-cancelled { color: #64748b; }
