/* ════════════════════════════════════════════════════════════════
   WF Network Subscriptions — Public / Dashboard Styles
   display:block !important en todos los inputs/selects del frontend
   ════════════════════════════════════════════════════════════════ */

/* ── FORZAR VISIBILIDAD ────────────────────────────────────────── */
.wfns-dash input[type=text],
.wfns-dash input[type=email],
.wfns-dash input[type=number],
.wfns-dash input[type=date],
.wfns-dash textarea,
.wfns-dash select,
.wfns-card input[type=text],
.wfns-card input[type=email],
.wfns-card input[type=number],
.wfns-card textarea,
.wfns-card select { display: block !important; }

/* ── DASHBOARD LAYOUT ──────────────────────────────────────────── */
.wfns-dash {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px 48px;
    color: #111827;
}
.wfns-dash-header {
    padding: 24px 0 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}
.wfns-dash-welcome {
    display: flex;
    align-items: center;
    gap: 14px;
}
.wfns-dash-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.wfns-dash-title  { font-size: 20px; font-weight: 700; margin: 0 0 2px; }
.wfns-dash-subtitle { font-size: 13px; color: #6b7280; margin: 0; }
.wfns-dash-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}
.wfns-dash-main  { display: flex; flex-direction: column; gap: 20px; }
.wfns-dash-side  { display: flex; flex-direction: column; gap: 16px; }

/* ── CARDS ─────────────────────────────────────────────────────── */
.wfns-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.wfns-card-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.wfns-card-badge {
    margin-left: auto;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}
.wfns-card-empty { color: #9ca3af; font-size: 13px; text-align: center; padding: 16px 0; margin: 0; }

/* ── SITES GRID ────────────────────────────────────────────────── */
.wfns-sites-grid         { display: grid; gap: 14px; }
.wfns-sites-cols-1       { grid-template-columns: 1fr; }
.wfns-sites-cols-2       { grid-template-columns: repeat(2, 1fr); }
.wfns-sites-cols-3       { grid-template-columns: repeat(3, 1fr); }
.wfns-site-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s;
}
.wfns-site-card:hover    { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37,99,235,.08); }
.wfns-site-card-hd       { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.wfns-site-icon          { color: #2563eb; flex-shrink: 0; margin-top: 2px; }
.wfns-site-info          { flex: 1; min-width: 0; }
.wfns-site-name          { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfns-site-url {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.wfns-site-url:hover     { color: #2563eb; }
.wfns-site-progress      { height: 3px; background: #e5e7eb; border-radius: 2px; margin-bottom: 10px; overflow: hidden; }
.wfns-site-progress-bar  { height: 100%; background: linear-gradient(90deg, #2563eb, #7c3aed); border-radius: 2px; transition: width .3s; }
.wfns-site-meta          { font-size: 11px; color: #9ca3af; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.wfns-site-actions       { display: flex; gap: 8px; }

/* ── BOTONES ───────────────────────────────────────────────────── */
.wfns-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    background: #fff;
    transition: .12s;
    cursor: pointer;
}
.wfns-btn-sm:hover       { border-color: #93c5fd; color: #2563eb; background: #eff6ff; }
.wfns-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s;
}
.wfns-btn-primary:hover  { background: #1d4ed8; color: #fff; }
.wfns-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 13px;
    color: #111827;
    background: #fff;
    transition: border-color .12s;
}
.wfns-input:focus        { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* ── STATUS BADGES ─────────────────────────────────────────────── */
.wfns-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── PLAN SUMMARY ──────────────────────────────────────────────── */
.wfns-plan-name    { font-size: 18px; font-weight: 800; color: #111827; margin-bottom: 10px; }
.wfns-plan-slots   { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.wfns-plan-renewal { font-size: 13px; color: #374151; display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.wfns-plan-amount  { font-size: 15px; font-weight: 700; color: #2563eb; display: flex; align-items: center; gap: 5px; }

/* ── BILLING TABLE ─────────────────────────────────────────────── */
.wfns-billing-table-wrap { overflow-x: auto; }
.wfns-billing-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wfns-billing-table th { text-align: left; padding: 6px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; border-bottom: 1px solid #e5e7eb; }
.wfns-billing-table td { padding: 10px 10px; border-bottom: 1px solid #f3f4f6; }

/* ── DOMAIN SECTION ────────────────────────────────────────────── */
.wfns-domain-upsell {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: linear-gradient(135deg, #eff6ff, #faf5ff);
    border: 1px solid #c4b5fd;
    border-radius: 10px;
    padding: 16px;
}
.wfns-domain-upsell strong { display: block; font-size: 14px; margin-bottom: 4px; }
.wfns-domain-upsell p { font-size: 12px; color: #6b7280; margin: 0 0 10px; }
.wfns-domain-info { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #374151; background: #eff6ff; border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
.wfns-domain-input-group { display: flex; gap: 8px; }
.wfns-domain-row { padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.wfns-domain-info-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── PROFILE GRID ──────────────────────────────────────────────── */
.wfns-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.wfns-full         { grid-column: 1 / -1; }
.wfns-mb           { display: flex; flex-direction: column; }
.wfns-label        { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin-bottom: 4px; }
.wfns-form-footer  { display: flex; align-items: center; gap: 10px; }

/* ── NOTICES ───────────────────────────────────────────────────── */
.wfns-dash-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin: 16px 0;
}
.wfns-dash-notice--warn { background: #fef9c3; border: 1px solid #fde047; color: #854d0e; }
.wfns-dash-notice--info { background: #eff6ff; border: 1px solid #93c5fd; color: #1d4ed8; }

/* ── PLAN FIELD (selector de planes en el formulario) ─────────── */
/* (ya definido en PlanFieldRenderer::get_styles(), repetido aquí como fallback de hoja de estilos) */

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .wfns-dash-grid         { grid-template-columns: 1fr; }
    .wfns-sites-cols-2,
    .wfns-sites-cols-3      { grid-template-columns: 1fr; }
    .wfns-profile-grid      { grid-template-columns: 1fr; }
    .wfns-domain-input-group{ flex-direction: column; }
    .wfns-plan-grid         { grid-template-columns: 1fr !important; }
}
