/* ── Dropship Frontend Styles ─────────────────────────────────── */

/* Notices */
.ds-notice {
    padding: .85rem 1.1rem;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
}
.ds-notice-info    { background: #EEF4FF; border-color: #3B82F6; color: #1D4ED8; }
.ds-notice-success { background: #EEF9F0; border-color: #22C55E; color: #15803D; }
.ds-notice-error   { background: #FEF2F2; border-color: #EF4444; color: #B91C1C; }
.ds-notice a { font-weight: 600; }

/* Registration form */
.ds-register-form { max-width: 560px; }
.ds-register-form h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.ds-intro { color: #666; font-size: 14px; margin-bottom: 1.5rem; }
.ds-form-row { margin-bottom: 1rem; }
.ds-form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: .4rem; color: #333; }
.ds-form-row input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 0 .9rem;
    border: 1.5px solid #E8E2DA;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a1a;
    transition: border-color .2s;
}
.ds-form-row input:focus { border-color: #BFA082; outline: none; }
.ds-terms { display: flex; align-items: center; gap: .5rem; font-size: 13px; }
.ds-required { color: #C0392B; }

/* Buttons */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 1.5rem;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    border: 2px solid transparent;
}
.ds-btn-primary { background: #1A1A1A; color: #fff; border-color: #1A1A1A; }
.ds-btn-primary:hover { background: #BFA082; border-color: #BFA082; }
.ds-btn-outline { background: transparent; color: #1A1A1A; border-color: #1A1A1A; }
.ds-btn-outline:hover { background: #1A1A1A; color: #fff; }

/* Dashboard */
.ds-dashboard { font-family: inherit; }
.ds-dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.ds-dash-header h2 { margin: 0 0 .25rem; font-size: 1.4rem; }
.ds-agent-code { font-size: 13px; color: #666; margin: 0; }

/* Stats grid */
.ds-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) { .ds-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .ds-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.ds-stat-card {
    background: #fff;
    border: 1px solid #E8E2DA;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}
.ds-stat-num   { font-size: 1.3rem; font-weight: 700; color: #1a1a1a; }
.ds-stat-label { font-size: 11px; color: #888; margin-top: 4px; }
.ds-stat-accent .ds-stat-num { color: #BFA082; }
.ds-stat-success .ds-stat-num { color: #15803D; }
.ds-stat-warning .ds-stat-num { color: #92400E; }

/* Referral box */
.ds-referral-box {
    background: #F2EBE2;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.ds-referral-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #888; margin-bottom: .5rem; }
.ds-referral-link-row { display: flex; gap: .5rem; }
.ds-referral-link-row input {
    flex: 1;
    height: 40px;
    padding: 0 .75rem;
    border: 1.5px solid #E8E2DA;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #1a1a1a;
}
.ds-referral-hint { font-size: 12.5px; color: #666; margin: .5rem 0 0; }

/* Card */
.ds-card {
    background: #fff;
    border: 1px solid #E8E2DA;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}
.ds-card h3 { font-size: 1rem; margin-top: 0; margin-bottom: 1rem; }

/* Info table */
.ds-info-table { width: 100%; border-collapse: collapse; }
.ds-info-table th, .ds-info-table td { padding: 6px 4px; font-size: 13.5px; border-bottom: 1px solid #f0f0f0; }
.ds-info-table th { width: 120px; color: #666; font-weight: 600; }

/* Commission table */
.ds-commission-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ds-commission-table th { padding: 8px 6px; border-bottom: 2px solid #E8E2DA; font-weight: 600; color: #555; text-align: left; }
.ds-commission-table td { padding: 8px 6px; border-bottom: 1px solid #f0f0f0; }

/* Status badges */
.ds-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}
.ds-badge-pending   { background: #FEF3C7; color: #92400E; }
.ds-badge-approved  { background: #DBEAFE; color: #1E40AF; }
.ds-badge-paid      { background: #D1FAE5; color: #065F46; }
.ds-badge-cancelled { background: #FEE2E2; color: #991B1B; }
.ds-badge-active    { background: #D1FAE5; color: #065F46; }
