/* MLM Binary Pro — Public Styles */

.mlm-dashboard, .mlm-wallet-section, .mlm-affiliate-section, .mlm-tree-section, .mlm-register-section {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.mlm-dashboard-header {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    margin-bottom: 20px;
}
.mlm-member-info { display: flex; align-items: center; gap: 16px; }
.mlm-member-info img { border-radius: 50%; border: 3px solid rgba(255,255,255,.3); }
.mlm-member-info h2 { margin: 0 0 6px; color: #fff; }

/* Stats row */
.mlm-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.mlm-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}
.mlm-stat-label { font-size: 11px; color: #6b7280; display: block; }
.mlm-stat-value { font-size: 18px; font-weight: 700; color: #1e293b; display: block; margin-top: 4px; }

/* Rank badge */
.mlm-rank-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
    margin-right: 6px;
}

/* Sections */
.mlm-section { margin: 20px 0; }
.mlm-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: #1e293b; }

/* Affiliate links */
.mlm-aff-links { display: flex; flex-direction: column; gap: 10px; }
.mlm-aff-link-item {
    display: flex; align-items: center; gap: 8px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 8px; padding: 10px 14px;
    flex-wrap: wrap;
}
.mlm-aff-rule { font-weight: 600; font-size: 12px; color: #4f46e5; min-width: 120px; }
.mlm-aff-stats { font-size: 11px; color: #9ca3af; }

/* Inputs */
.mlm-copy-input {
    flex: 1; min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    background: #f9fafb;
}

/* Buttons */
.mlm-btn {
    background: #4f46e5; color: #fff;
    border: none; border-radius: 6px;
    padding: 8px 16px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.mlm-btn:hover { background: #4338ca; }
.mlm-btn-primary { background: #16a34a; }
.mlm-btn-primary:hover { background: #15803d; }
.mlm-btn-copy {
    background: #e0e7ff; color: #3730a3;
    border: none; border-radius: 6px;
    padding: 6px 12px; font-size: 12px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}
.mlm-btn-copy:hover { background: #c7d2fe; }

/* Tabs */
.mlm-tabs { display: flex; gap: 0; border-bottom: 2px solid #e5e7eb; margin: 20px 0 0; }
.mlm-tab {
    background: none; border: none; border-bottom: 3px solid transparent;
    padding: 10px 18px; font-size: 14px; font-weight: 600;
    color: #6b7280; cursor: pointer; margin-bottom: -2px;
}
.mlm-tab.active { color: #4f46e5; border-bottom-color: #4f46e5; }
.mlm-tab-panel { padding: 16px 0; }

/* Tables */
.mlm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mlm-table th { background: #f8fafc; padding: 8px 12px; text-align: left; font-weight: 600; color: #374151; border-bottom: 2px solid #e5e7eb; }
.mlm-table td { padding: 8px 12px; border-bottom: 1px solid #f1f5f9; color: #4b5563; }
.mlm-table tr:last-child td { border-bottom: none; }
.mlm-table tr:hover td { background: #f8fafc; }

/* Forms */
.mlm-form { max-width: 480px; }
.mlm-form-row { margin-bottom: 14px; }
.mlm-form-row label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 13px; color: #374151; }
.mlm-form-row input, .mlm-form-row select, .mlm-form-row textarea {
    width: 100%; padding: 8px 12px;
    border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; box-sizing: border-box;
}

/* Colors */
.mlm-text-green  { color: #16a34a; font-weight: 600; }
.mlm-text-red    { color: #ef4444; font-weight: 600; }
.mlm-text-muted  { color: #9ca3af; }
.mlm-success { color: #16a34a; background: #dcfce7; border-radius: 6px; padding: 8px 12px; }
.mlm-error   { color: #ef4444; background: #fee2e2; border-radius: 6px; padding: 8px 12px; }

/* Sponsor banner */
.mlm-sponsor-banner {
    display: flex; align-items: center; gap: 10px;
    background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: 8px; padding: 12px 16px; margin-bottom: 20px;
}

/* Tree nodes */
.mlm-tree-node { padding: 6px 0; font-size: 13px; }
.mlm-node-active   { }
.mlm-node-inactive { opacity: .6; }

/* Wallet */
.mlm-wallet-balances { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.mlm-wallet-currency {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff; border-radius: 12px; padding: 20px 28px;
    min-width: 160px; text-align: center;
}
.mlm-wallet-balance { font-size: 22px; font-weight: 700; margin: 8px 0 4px; }

/* Placement generator */
.mlm-placement-generator { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 640px) {
    .mlm-stats-row { grid-template-columns: repeat(2, 1fr); }
    .mlm-aff-link-item { flex-direction: column; align-items: flex-start; }
    .mlm-placement-generator { flex-direction: column; align-items: flex-start; }
}
