.d24h-auth-wrapper, .d24h-portal-container {
    max-width: 980px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    padding: 15px;
}
.d24h-auth-header, .d24h-portal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 22px 24px;
    border-radius: 16px;
    margin-bottom: 18px;
}
.d24h-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.d24h-auth-header h2, .d24h-portal-header h2 {
    margin: 6px 0;
    color: #fff;
    font-size: 1.45rem;
}
.d24h-auth-header p { margin: 0; color: #cbd5e1; font-size: 0.92rem; }
.d24h-badge-top, .d24h-brand-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #93c5fd;
    font-weight: 700;
}
.d24h-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.d24h-auth-tab {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    color: #334155;
}
.d24h-auth-tab.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.d24h-auth-box {
    display: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(15,23,42,0.05);
}
.d24h-auth-box.active { display: block; }
.d24h-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 640px) {
    .d24h-field-row { grid-template-columns: 1fr; }
    .d24h-portal-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.d24h-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #334155;
}
.d24h-field input, .d24h-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    box-sizing: border-box;
}
.d24h-logout-btn {
    background: rgba(255,255,255,0.16);
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.d24h-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
.d24h-sum-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
}
.sum-title { display: block; font-size: 0.82rem; color: #64748b; }
.sum-number { display: block; font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-top: 4px; }
.d24h-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 18px;
}
.d24h-tab-btn {
    background: #f1f5f9;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
    text-decoration: none;
}
.d24h-tab-btn.active { background: #2563eb; color: #fff; }
.d24h-tab-link { background: #e0f2fe; color: #0369a1 !important; }
.d24h-tab-content { display: none; }
.d24h-tab-content.active { display: block; }
.d24h-cat-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.d24h-filter-chip {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    color: #334155;
}
.d24h-filter-chip.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.d24h-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}
.d24h-service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.status-border-activo { border-top: 4px solid #10b981; }
.status-border-por_vencer { border-top: 4px solid #f59e0b; }
.status-border-vencido, .status-border-pendiente { border-top: 4px solid #ef4444; }
.status-border-suspendido, .status-border-baja { border-top: 4px solid #94a3b8; }
.d24h-sc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.d24h-pill {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}
.pill-activo { background: #dcfce7; color: #166534; }
.pill-por_vencer { background: #fef3c7; color: #92400e; }
.pill-vencido, .pill-pendiente { background: #fee2e2; color: #991b1b; }
.pill-suspendido, .pill-baja { background: #f1f5f9; color: #475569; }
.d24h-cycle-tag, .d24h-cat-tag { font-size: 0.78rem; color: #2563eb; font-weight: 700; }
.d24h-service-card h3 { margin: 0 0 6px 0; font-size: 1.1rem; color: #0f172a; }
.d24h-sc-detail { font-size: 0.88rem; color: #475569; margin: 0 0 14px 0; }
.d24h-sc-meta {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.d24h-sc-meta small { display: block; font-size: 0.75rem; color: #64748b; }
.d24h-sc-price { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.d24h-sc-actions { display: flex; flex-direction: column; gap: 8px; }
.d24h-btn-mp {
    background: #009ee3;
    color: #fff !important;
    text-align: center;
    padding: 11px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}
.d24h-btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.92rem;
}
.d24h-btn-outline {
    background: #fff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
}
.d24h-btn-wa {
    display: inline-block;
    background: #25D366;
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
}
.d24h-proof-sent {
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
}
.d24h-info-card, .d24h-empty-state, .d24h-legacy-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    margin-top: 16px;
}
.d24h-bank-box { background: #f8fafc; padding: 14px; border-radius: 10px; margin: 12px 0; }
.d24h-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(15,23,42,0.6);
}
.d24h-modal-content {
    background: #fff;
    margin: 15% auto;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
}
.d24h-modal-content input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-top: 6px;
    box-sizing: border-box;
}
.d24h-close-modal { float: right; font-size: 24px; cursor: pointer; }
