/* eSee Sales Network — Frontend Styles */
.esee-myaccount { max-width: 900px; }
.esee-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 16px 0 24px;
}
.esee-stat-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
}
.esee-wallet-card { background: #e8f5e9; border-color: #a5d6a7; }
.esee-stat-num   { font-size: 20px; font-weight: 700; color: #0073aa; margin-bottom: 4px; }
.esee-stat-label { font-size: 12px; color: #666; }

.esee-notice { padding: 12px 16px; border-radius: 6px; margin: 12px 0; }
.esee-notice-info    { background: #e3f2fd; border-left: 4px solid #1976d2; }
.esee-notice-warning { background: #fff8e1; border-left: 4px solid #f9a825; }
.esee-notice-success { background: #e8f5e9; border-left: 4px solid #388e3c; }
.esee-notice-error   { background: #fce4ec; border-left: 4px solid #c62828; }

.esee-btn {
    display: inline-block;
    padding: 9px 18px;
    background: #0073aa;
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s;
}
.esee-btn:hover { background: #005a87; color: #fff !important; }
.esee-btn-outline { background: transparent; color: #0073aa !important; border: 2px solid #0073aa; }
.esee-btn-outline:hover { background: #0073aa; color: #fff !important; }
.esee-btn-lg { padding: 12px 24px; font-size: 15px; }
.esee-btn-sm { padding: 5px 10px; font-size: 12px; }

.esee-form { max-width: 500px; }
.esee-form-row { margin-bottom: 14px; }
.esee-form-row label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; }
.esee-form-row input,
.esee-form-row select,
.esee-form-row textarea { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; box-sizing: border-box; }

.esee-section { margin: 24px 0; padding: 20px; background: #f9f9f9; border-radius: 8px; border: 1px solid #e5e5e5; }
.esee-section h4 { margin-top: 0; }

.esee-groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.esee-group-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 16px; }
.esee-group-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.esee-group-code { font-size: 18px; font-weight: 700; color: #0073aa; font-family: monospace; }
.esee-group-type { background: #e3f2fd; color: #1565c0; padding: 2px 8px; border-radius: 12px; font-size: 11px; }
.esee-group-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.esee-group-address { font-size: 12px; color: #666; margin-bottom: 8px; }
.esee-group-stats { display: flex; gap: 12px; font-size: 12px; color: #555; margin-bottom: 10px; }
.esee-ref-box { background: #f0f7ff; border-radius: 5px; padding: 10px; margin-top: 8px; font-size: 12px; }
.esee-ref-box code { background: #fff; padding: 2px 5px; border-radius: 3px; font-size: 13px; }
.esee-link-input { width: 100%; font-size: 11px; font-family: monospace; margin: 5px 0; padding: 4px 6px; border: 1px solid #ccc; border-radius: 3px; }

.esee-table-wrap { overflow-x: auto; }
.esee-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.esee-table th { background: #f1f1f1; padding: 8px 10px; text-align: left; border-bottom: 2px solid #ddd; }
.esee-table td { padding: 8px 10px; border-bottom: 1px solid #eee; }
.esee-table tr:hover td { background: #fafafa; }

.esee-wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 16px 0; }
.esee-wallet-card  { background: #f8f8f8; border: 1px solid #ddd; border-radius: 8px; padding: 18px; text-align: center; }
.esee-wallet-available { background: #e8f5e9; border-color: #a5d6a7; }
.esee-wallet-label  { font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: .5px; }
.esee-wallet-amount { font-size: 18px; font-weight: 700; color: #1b5e20; margin-top: 6px; }

.esee-badge-agent  { background: #e8eaf6; color: #3949ab; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.esee-badge-leader { background: #e0f7fa; color: #00695c; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }

.esee-status-completed { color: #2e7d32; font-weight: 600; }
.esee-status-pending   { color: #f57f17; font-weight: 600; }
.esee-status-reversed  { color: #b71c1c; font-weight: 600; }
.esee-txn-credit  { color: #2e7d32; font-weight: 600; }
.esee-txn-debit   { color: #b71c1c; font-weight: 600; }
.esee-txn-payout  { color: #1565c0; font-weight: 600; }

.esee-empty { color: #999; font-style: italic; text-align: center; padding: 20px; }
.esee-info  { color: #555; background: #f0f7ff; padding: 10px 14px; border-radius: 5px; font-size: 13px; }

/* Checkout referral field */
#esee-referral-wrap { margin-bottom: 15px; }
#esee-ref-status { display: block; margin-top: 5px; font-size: 13px; }
#esee-ref-status.valid   { color: #2e7d32; }
#esee-ref-status.invalid { color: #c62828; }
