/* ------------------------------------------------------------
 * UNIVERSAL REFERRAL PLUGIN (URP)
 * CLEAN MODERN UI (v6.2.0 FINAL)
 * ------------------------------------------------------------ */


/* ============================================================
   GLOBAL WRAPPER
   ============================================================ */
.urp-shortcode-wrapper {
    max-width: 1100px;
    margin: 20px auto;
    padding: 10px;
}
.urp-shortcode-wrapper * {
    box-sizing: border-box;
}


/* ============================================================
   CARD SYSTEM (FIXED SPACING)
   ============================================================ */
.urp-card-modern {
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden; /* IMPORTANT */
}


/* ============================================================
   CARD HEADER
   ============================================================ */
.urp-card-header {
    background: #111827;
    color: #ffffff;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
}


/* ============================================================
   TABLE WRAPPER
   ============================================================ */
.urp-table-responsive {
    width: 100%;
    overflow-x: auto;
    padding: 10px 16px 16px;
}


/* ============================================================
   TABLE (UPGRADED)
   ============================================================ */
.urp-table {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: #ffffff;
}

/* HEADER */
.urp-table thead {
    background: #f9fafb;
}

.urp-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

/* BODY */
.urp-table td {
    padding: 16px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

/* ROW EFFECT */
.urp-table tbody tr {
    transition: all 0.2s ease;
}

.urp-table tbody tr:hover {
    background: #f9fafb;
}

/* REMOVE HARD LINES */
.urp-table td,
.urp-table th {
    border-left: none !important;
    border-right: none !important;
}


/* ============================================================
   BONUS VALUE
   ============================================================ */
.urp-bonus {
    color: #16a34a;
    font-weight: 700;
}


/* ============================================================
   EMPTY STATE (FIXED)
   ============================================================ */
.urp-empty-state {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}


/* ============================================================
   PAGINATION (🔥 FULL FIX — THIS WAS YOUR ISSUE)
   ============================================================ */
.urp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 20px 0 10px;
    flex-wrap: wrap;
}

.urp-pagination a,
.urp-pagination span,
.urp-pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    color: #374151;
    transition: all 0.2s ease;
}

/* HOVER */
.urp-pagination a:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* ACTIVE PAGE */
.urp-pagination strong {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* TEXT (Page 1 of 2) */
.urp-pagination span {
    border: none;
    background: transparent;
    color: #6b7280;
}


/* ============================================================
   SOCIAL BUTTONS
   ============================================================ */
.urp-social a,
.urp-social button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.urp-social a:hover,
.urp-social button:hover {
    background: #f3f4f6;
}


/* ============================================================
   DASHBOARD
   ============================================================ */
.urp-dash-wrapper {
    max-width: 900px;
    margin: 20px auto;
}

.urp-dash-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.urp-dash-header {
    background: #111827;
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 600;
}

.urp-dash-refbox {
    display: flex;
    gap: 8px;
    align-items: center;
    border: 1px solid #e5e7eb;
    padding: 10px;
    border-radius: 8px;
    background: #f9fafb;
}

.urp-dash-copy {
    background: #111827;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.urp-dash-copy:hover {
    background: #000;
}

.urp-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}


/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 600px) {

    .urp-table {
        min-width: 650px;
    }

    .urp-table th,
    .urp-table td {
        padding: 10px;
        font-size: 12px;
    }

    .urp-dash-grid {
        grid-template-columns: 1fr;
    }
}




.urp-card-modern {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
}



.urp-sc-fields {
    font-size: 13px;
    line-height: 1.5;
    padding: 8px;
}