/* =============================================
   IPTV Devices — 100% pixel-match to original
   ============================================= */

/* Grid */
.iptv-devices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 10px 0;
}
@media (max-width: 1024px) { .iptv-devices-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .iptv-devices-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .iptv-devices-grid { grid-template-columns: 1fr; } }

/* Card */
.iptv-device-card {
    background: #ffffff;
    border: 1.5px solid #e5e9ed;
    border-radius: 12px;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}

.iptv-device-card:hover {
    border-color: #29b6f6;
    box-shadow: 0 8px 15px rgba(14, 165, 233, 0.26);
}

/* Icon box — WHITE background, BLUE icon */
.iptv-device-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #60a5fa) !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    transition: background 0.2s;
}

.iptv-device-card:hover .iptv-device-icon {
    background: linear-gradient(135deg, #2563eb, #60a5fa) !important;
	box-shadow: 0 8px 15px rgba(14, 165, 233, 0.26);
	color: #fff;
}

.iptv-device-icon svg {
    width: 24px;
    height: 24px;
}

.iptv-device-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Text */
.iptv-device-info h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
}

.iptv-device-info p {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    line-height: 1.55 !important;
}

/* =============================================
   MODAL
   ============================================= */
.iptv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.iptv-modal-overlay.iptv-modal-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.iptv-modal {
    background: #ffffff;
    border-radius: 16px;
    /* Blue top accent line like original */
    border-top: 4px solid linear-gradient(90deg, var(--blue-600) 0%, var(--blue-400) 55%, #22d3ee 100%);
    padding: 1.35rem 1.35rem 1.2rem;
    max-width: 760px;
    width: 100%;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.25s ease;
    opacity: 0;
}

.iptv-modal-overlay.iptv-modal-open .iptv-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.iptv-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #f9fafb;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    padding: 0;
}

.iptv-modal-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Modal title */
#iptv-modal-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 20px !important;
    padding-right: 36px;
    line-height: 1.25 !important;
}

/* Step rows */
.iptv-modal-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 10px;
    margin-bottom: 10px;
}

.iptv-step-num {
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2563eb, #60a5fa) !important;    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
	box-shadow: 0 8px 15px rgba(14, 165, 233, 0.26);
}

.iptv-step-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    padding-top: 3px;
}
