/* ===============================
   GLOBAL
   =============================== */
.mmlm-dashboard {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    margin-top: 20px;
}

.mmlm-dashboard * {
    box-sizing: border-box;
}

/* ===============================
   TOP TABS
   =============================== */
.mmlm-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.mmlm-tabs a {
    padding: 10px 18px;
    background: #f1f5f9;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
}

.mmlm-tabs a.active {
    background: #2563eb;
    color: #ffffff;
}

/* ===============================
   PAGE HEADER
   =============================== */
.mmlm-page-header {
    background: linear-gradient(#d4d650, #82a434);
    color: #ffffff;
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.mmlm-page-header h2 {
    margin: 0;
    font-size: 22px;
}

/* ===============================
   LAYOUT ROWS
   =============================== */
.mmlm-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ===============================
   PROFILE CARD
   =============================== */
.mmlm-profile-card {
    background: #f8fbff;
    padding: 20px;
    border-radius: 16px;
    width: 60%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.mmlm-profile-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.mmlm-profile-card h3 {
    margin: 5px 0 10px;
    font-size: 20px;
}

.mmlm-profile-card p {
    margin: 5px 0;
    font-size: 14px;
}

.mmlm-level {
    margin-top: 12px;
    padding: 10px;
    background: #fff7ed;
    border: 1px dashed #f59e0b;
    border-radius: 10px;
    font-weight: 600;
}

/* ===============================
   RIGHT STATS
   =============================== */
.mmlm-right-stats {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat {
    padding: 16px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stat.pink {
    background: #f43f5e;
}

.stat.dark {
    background: #020617;
}

.stat.blue {
    background: #0284c7;
}

/* ===============================
   BUSINESS SUMMARY
   =============================== */
.mmlm-business-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.business-card {
    flex: 1;
    padding: 20px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.business-card span {
    display: block;
    margin-top: 10px;
    font-size: 22px;
}

.business-card.dark {
    background: #020617;
    color: #ffffff;
}

.business-card.yellow {
    background: #facc15;
    color: #000000;
}

.business-card.green {
    background: #4ade80;
    color: #000000;
}

/* ===============================
   GENERIC CARD
   =============================== */
.mmlm-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.mmlm-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

/* ===============================
   COMMISSION
   =============================== */
.mmlm-card h2 {
    font-size: 26px;
    color: #16a34a;
}

/* ===============================
   TABLE
   =============================== */
.mmlm-table-box {
    background: #fff7ed;
    padding: 20px;
    border-radius: 16px;
    width: 60%;
}

.mmlm-table-box table {
    width: 100%;
    border-collapse: collapse;
}

.mmlm-table-box th,
.mmlm-table-box td {
    padding: 10px;
    border-bottom: 1px dashed #cbd5e1;
    text-align: left;
    font-size: 14px;
}

.mmlm-table-box th {
    background: #ffedd5;
    font-weight: 700;
}

/* ===============================
   NOTICE BOX
   =============================== */
.mmlm-notice-box {
    background: #fdf2f8;
    padding: 20px;
    border-radius: 16px;
    width: 35%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.mmlm-notice-box h4 {
    margin-top: 0;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 900px) {
    .mmlm-profile-card,
    .mmlm-right-stats,
    .mmlm-table-box,
    .mmlm-notice-box {
        width: 100%;
    }

    .mmlm-business-row {
        flex-direction: column;
    }

    .mmlm-row {
        flex-direction: column;
    }
}
.mmlm-tabs {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:15px;
}

.mmlm-tabs a {
    padding:10px 16px;
    border-radius:10px;
    background:#e5e7eb;
    text-decoration:none;
    color:#111;
    font-weight:600;
}

.mmlm-tabs a.active,
.mmlm-tabs a:hover {
    background:#2563eb;
    color:#fff;
}

.mmlm-card form {
    display:flex;
    flex-direction:column;
    gap:12px;
}

.mmlm-card input {
    padding:10px;
    border-radius:8px;
    border:1px solid #d1d5db;
}

.mmlm-card button {
    background:#2563eb;
    color:#fff;
    padding:12px;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

.mmlm-card .error {
    color:#dc2626;
    font-weight:600;
}

.mmlm-card .success {
    color:#16a34a;
    font-weight:600;
}

/* ===============================
   PAGE HEADER + BREADCRUMB
   =============================== */

.mmlm-page-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mmlm-back-btn {
    background: #e5e7eb;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.mmlm-back-btn:hover {
    background: #d1d5db;
}

.mmlm-breadcrumb {
    font-size: 14px;
    color: #374151;
}

.mmlm-breadcrumb a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

.mmlm-breadcrumb span {
    margin: 0 6px;
}

/* Modern Page Header */
.mmlm-page-header-modern {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    padding: 20px 24px;
    border-radius: 14px;
    margin-bottom: 25px;
}

.mmlm-page-header-modern h2 {
    margin: 0;
    font-size: 24px;
}

.mmlm-page-header-modern p {
    margin-top: 6px;
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
    .mmlm-page-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
.mmlm-table thead th {
    background: #f8fafc;
    font-weight: 700;
    font-size: 14px;
    padding: 12px;
    color: #0f172a;
    border-bottom: 2px solid #e5e7eb;
}
.mmlm-notice-box {
    background: #fff7ed;
    border-left: 5px solid #f97316;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.mmlm-notice-box h4 {
    margin-top: 0;
    font-size: 16px;
    color: #9a3412;
}
/* SCROLL AREA */
.notice-scroll {
    height: 120px;
    overflow: hidden;
    position: relative;
}
/* LIST */
.notice-scroll ul {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: noticeScroll 12s linear infinite;
}

/* ITEMS */
.notice-scroll li {
    padding: 8px 0;
    font-size: 14px;
    color: #92400e;
}
/* ===============================
   GENEALOGY TREE
=============================== */

.genealogy-tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
}

.genealogy-tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
}

/* lines */
.genealogy-tree li::before,
.genealogy-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #ccc;
    width: 50%;
    height: 20px;
}

.genealogy-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #ccc;
}

.genealogy-tree li:only-child::after,
.genealogy-tree li:only-child::before {
    display: none;
}

.genealogy-tree li:only-child {
    padding-top: 0;
}

.genealogy-tree li:first-child::before,
.genealogy-tree li:last-child::after {
    border: 0 none;
}

.genealogy-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #ccc;
    width: 0;
    height: 20px;
}

/* node */
.tree-node {
    border: 2px solid #2563eb;
    padding: 10px 15px;
    border-radius: 10px;
    background: #fff;
    display: inline-block;
    min-width: 120px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tree-node.root {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* ===============================
   MLM GENEALOGY TREE
   =============================== */

.mmlm-tree-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 20px;
}

.tree-root ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
}

.tree-root li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
}

/* Lines */
.tree-root li::before,
.tree-root li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #ccc;
    width: 50%;
    height: 20px;
}

.tree-root li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #ccc;
}

.tree-root li:only-child::after,
.tree-root li:only-child::before {
    display: none;
}

.tree-root li:first-child::before,
.tree-root li:last-child::after {
    border: 0 none;
}

.tree-root li:last-child::before {
    border-right: 2px solid #ccc;
    border-radius: 0 5px 0 0;
}

.tree-root li:first-child::after {
    border-radius: 5px 0 0 0;
}

/* Vertical line */
.tree-root ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #ccc;
    width: 0;
    height: 20px;
}

/* Node box */
.tree-node {
    border: 2px solid #2563eb;
    padding: 10px 12px;
    display: inline-block;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 14px;
    min-width: 120px;
}

.tree-node.root {
    background: #2563eb;
    color: #fff;
}
/* ===== GENEALOGY TREE ===== */

.tree-wrapper {
    overflow-x: auto;
    padding: 40px 20px;
}

.genealogy-tree,
.genealogy-tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
}

.genealogy-tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
}

/* CONNECTORS */
.genealogy-tree li::before,
.genealogy-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #555;
    width: 50%;
    height: 20px;
}

.genealogy-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #555;
}

.genealogy-tree li:only-child::after,
.genealogy-tree li:only-child::before {
    display: none;
}

.genealogy-tree li:first-child::before,
.genealogy-tree li:last-child::after {
    border: none;
}

.genealogy-tree li:last-child::before {
    border-right: 2px solid #555;
    border-radius: 0 5px 0 0;
}

.genealogy-tree li:first-child::after {
    border-radius: 5px 0 0 0;
}

/* VERTICAL LINE */
.genealogy-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #555;
    width: 0;
    height: 20px;
}

/* MEMBER CARD */
.tree-card {
    background: #f8fbff;
    border: 2px solid #222;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    min-width: 150px;
}

.tree-card img {
    width: 60px;
    height: 60px;
}

.tree-id {
    font-size: 13px;
    color: #444;
}

.tree-name {
    font-weight: 600;
    font-size: 14px;
    margin-top: 4px;
}

/* HOVER EFFECT */
.tree-card:hover {
    background: #2563eb;
    color: #fff;
    transform: scale(1.05);
}
/* ===============================
   GENEALOGY TREE
=============================== */

.mmlm-network-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.mmlm-back-btn {
    background:#2563eb;
    color:#fff;
    padding:8px 14px;
    border-radius:8px;
    text-decoration:none;
}

.mmlm-tree-wrapper {
    text-align:center;
    overflow-x:auto;
}

.mmlm-tree,
.mmlm-tree ul {
    padding-top:20px;
    position:relative;
    display:flex;
    justify-content:center;
}

.mmlm-tree li {
    list-style:none;
    text-align:center;
    margin:0 10px;
    position:relative;
}

.mmlm-tree li::before,
.mmlm-tree li::after {
    content:'';
    position:absolute;
    top:0;
    width:50%;
    height:20px;
    border-top:2px solid #999;
}

.mmlm-tree li::before {
    right:50%;
}

.mmlm-tree li::after {
    left:50%;
}

.mmlm-tree li:only-child::before,
.mmlm-tree li:only-child::after {
    display:none;
}

.mmlm-tree ul::before {
    content:'';
    position:absolute;
    top:0;
    left:50%;
    border-left:2px solid #999;
    height:20px;
}

.mmlm-node,
.mmlm-root {
    background:#f8fafc;
    border:2px solid #0f172a;
    border-radius:12px;
    padding:10px;
    min-width:140px;
    display:inline-block;
}

.mmlm-node img,
.mmlm-root img {
    width:48px;
    margin-bottom:5px;
}

.mmlm-node strong,
.mmlm-root strong {
    display:block;
    font-size:14px;
}

.mmlm-node span,
.mmlm-root span {
    font-size:12px;
    color:#555;
}

/* Root highlight */
.mmlm-root {
    background:#2563eb;
    color:#fff;
    border-color:#2563eb;
}
/* ===============================
   REGISTRATION PAGE BASE
=============================== */
.mmlm-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin: 20px 0;
}

.mmlm-register-form {
    max-width: 1200px;
    margin: auto;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===============================
   SECTION STYLES
=============================== */
.mmlm-section {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1.5px dashed #bbb;
}

.mmlm-section.pink {
    background: #fff4f6;
}

.mmlm-section.yellow {
    background: #fff9df;
}

/* ===============================
   GRID SYSTEM
=============================== */
.grid-3,
.grid-4,
.grid-6,
.grid-sponsor {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

.grid-sponsor {
    grid-template-columns: 2fr 1fr 2fr 1fr;
    align-items: end;
}

.span-2 {
    grid-column: span 2;
}

/* ===============================
   FORM ELEMENTS
=============================== */
.mmlm-register-form label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.mmlm-register-form input,
.mmlm-register-form select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
}

.mmlm-register-form input:focus,
.mmlm-register-form select:focus {
    border-color: #00a8ff;
    box-shadow: 0 0 0 2px rgba(0,168,255,0.15);
    outline: none;
}

/* ===============================
   SPONSOR SECTION
=============================== */
.sponsor-title {
    color: #e11d48;
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.btn-wrap {
    text-align: center;
}

#checkSponsor {
    padding: 12px 18px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

#checkSponsor:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===============================
   SUBMIT BUTTON
=============================== */
.mmlm-submit {
    width: 100%;
    padding: 16px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #00b4ff, #0099ff);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.mmlm-submit:hover {
    background: linear-gradient(90deg, #0099ff, #007bff);
    transform: translateY(-1px);
}

.genealogy-tree,
.genealogy-tree ul{
    list-style:none;
    padding-top:20px;
    position:relative;
    display:flex;
    justify-content:center;
}

.genealogy-tree li{
    text-align:center;
    padding:20px 10px 0;
    position:relative;
}

.tree-card{
    min-width:160px;
    background:#fff;
    border-radius:14px;
    padding:14px;
    border:2px solid #2563eb;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.tree-card.approved{border-color:#10b981}
.tree-card.pending{border-color:#f59e0b}
.tree-card.rejected{border-color:#ef4444}

