/* TVIP Manager — Public / My Account Styles */

.tvip-device-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 16px 0 24px;
}

.tvip-device-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.07);
    transition: box-shadow .2s;
}
.tvip-device-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }

.tvip-device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 1rem;
}

.tvip-status-active    .tvip-device-header { background: #d1fae5; border-bottom: 2px solid #10b981; }
.tvip-status-expired   .tvip-device-header { background: #fee2e2; border-bottom: 2px solid #ef4444; }
.tvip-status-suspended .tvip-device-header { background: #fef3c7; border-bottom: 2px solid #f59e0b; }
.tvip-status-inactive  .tvip-device-header { background: #f3f4f6; border-bottom: 2px solid #9ca3af; }

.tvip-device-status {
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.6);
}

.tvip-device-info { width: 100%; border-collapse: collapse; margin: 0; }
.tvip-device-info th,
.tvip-device-info td { padding: 8px 16px; border-bottom: 1px solid #f0f0f0; font-size: .9rem; text-align: left; }
.tvip-device-info th { color: #6b7280; font-weight: 500; width: 45%; }
.tvip-device-info tr:last-child th,
.tvip-device-info tr:last-child td { border-bottom: none; }
.tvip-device-info code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: .85rem; word-break: break-all; }

.tvip-ok      { color: #059669; font-weight: 600; }
.tvip-expiring { color: #dc2626; font-weight: 600; }

.tvip-renew { margin-top: 16px; }
.tvip-renew .button,
.tvip-renew a.button {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background .15s;
}
.tvip-renew .button:hover { background: #135e96; }

/* Checkout fields */
#tvip_fields {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}
#tvip_fields h3 { margin-top: 0; font-size: 1.1rem; }

@media (max-width: 600px) {
    .tvip-device-list { grid-template-columns: 1fr; }
    .tvip-device-info th { width: 40%; }
}
