/*
 * ═══════════════════════════════════════════════════════
 *  SewaGame Design System
 *  Extracted from reseller_landing.php — minimalist,
 *  Apple-esque aesthetic with monochrome neutral tones.
 *  All classes prefixed with `ds-` to avoid conflicts.
 * ═══════════════════════════════════════════════════════
 */

/* ─── Page Base ─── */
.ds-page {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.7;
}

/* ─── Section Container ─── */
.ds-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.ds-section-sm {
    max-width: 680px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.ds-section-tight {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ─── Typography ─── */
.ds-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.5rem;
}

.ds-heading {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0a0a0a;
    margin-bottom: 0.75rem;
}

.ds-heading-sm {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    color: #0a0a0a;
    margin-bottom: 0.5rem;
}

.ds-subheading {
    font-size: 1rem;
    color: #666;
    max-width: 560px;
    line-height: 1.7;
}

.ds-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
}

.ds-text-muted {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.6;
}

/* ─── Cards ─── */
.ds-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.ds-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.ds-card-header {
    margin-bottom: 1.5rem;
}

.ds-card-flat {
    background: #fafafa;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.ds-card-flat:hover {
    background: #f5f5f5;
}

/* ─── Stat Block ─── */
.ds-stat-grid {
    display: grid;
    gap: 1.5rem;
}

.ds-stat-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ds-stat-grid-3 { grid-template-columns: repeat(3, 1fr); }

.ds-stat-block {
    background: #fafafa;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.ds-stat-block:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.ds-stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0a0a0a;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.ds-stat-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

/* ─── Info Rows (label – value pairs) ─── */
.ds-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ds-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.ds-info-row:last-child {
    border-bottom: none;
}

.ds-info-label {
    color: #888;
    font-weight: 500;
}

.ds-info-value {
    font-weight: 600;
    color: #1a1a1a;
}

/* ─── Form Elements ─── */
.ds-input,
.ds-select {
    font-family: 'Poppins', sans-serif;
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.2s ease;
    outline: none;
}

.ds-input:focus,
.ds-select:focus {
    background: #fff;
    border-color: #ccc;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.ds-input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.ds-form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.4rem;
    display: block;
}

.ds-form-group {
    margin-bottom: 1.25rem;
}

/* ─── Buttons ─── */
.ds-btn {
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    line-height: 1.4;
}

.ds-btn-block {
    width: 100%;
}

.ds-btn-primary {
    background: #0a0a0a;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.ds-btn-primary:hover {
    background: #222;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.ds-btn-primary:disabled {
    background: #ccc;
    color: #999;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.ds-btn-secondary {
    background: #f5f5f5;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
}

.ds-btn-secondary:hover {
    background: #eee;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.ds-btn-success {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 4px 20px rgba(34,197,94,0.2);
}

.ds-btn-success:hover {
    background: #16a34a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34,197,94,0.25);
}

.ds-btn-outline {
    background: transparent;
    color: #888;
    border: 1px solid #e0e0e0;
}

.ds-btn-outline:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.ds-btn-sm {
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
}

/* ─── Badges ─── */
.ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
}

.ds-badge-success {
    background: #ecfdf5;
    color: #16a34a;
}

.ds-badge-warning {
    background: #fffbeb;
    color: #d97706;
}

.ds-badge-danger {
    background: #fef2f2;
    color: #dc2626;
}

.ds-badge-neutral {
    background: #f5f5f5;
    color: #666;
}

.ds-badge-info {
    background: #eff6ff;
    color: #2563eb;
}

/* ─── Alerts ─── */
.ds-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ds-alert-success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ds-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ds-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.ds-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ─── Divider ─── */
.ds-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 1.5rem 0;
}

/* ─── Table ─── */
.ds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ds-table th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #f0f0f0;
    text-align: left;
}

.ds-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
}

.ds-table tbody tr:last-child td {
    border-bottom: none;
}

.ds-table tbody tr:hover {
    background: #fafafa;
}

/* ─── Grid Layouts ─── */
.ds-grid {
    display: grid;
    gap: 1.5rem;
}

.ds-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ds-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ─── Fade-up Animation ─── */
.ds-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ds-fade-up.ds-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Accent Highlight Block ─── */
.ds-highlight {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 1.5rem;
}

/* ─── Page Hero (for non-landing dashboard pages) ─── */
.ds-page-header {
    padding: 2.5rem 0 1rem;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .ds-section {
        padding: 2.5rem 1.25rem;
    }

    .ds-grid-2,
    .ds-grid-3 {
        grid-template-columns: 1fr;
    }

    .ds-stat-grid-2,
    .ds-stat-grid-3 {
        grid-template-columns: 1fr;
    }

    .ds-card {
        padding: 1.5rem;
    }

    .ds-heading {
        font-size: 1.75rem;
    }
}
