/**
 * Site Settings page — load after admin.css (see admin/settings/edit.blade.php).
 */
.admin-body--settings .admin-content .container {
    max-width: var(--content-max-width, 1200px);
}

.settings-page {
    --settings-purple: #7c4dff;
    --settings-purple-dark: #5b2fd4;
    --settings-panel-bg: #16122a;
    --settings-input-bg: #1e1a35;
}

.settings-page-header {
    margin-bottom: 1.5rem;
}

.settings-page-header h1 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
    color: #e6edf3;
}

.settings-gear-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--settings-purple);
    flex-shrink: 0;
}

.settings-page-header p {
    color: #8b949e;
    font-size: 0.95rem;
}

.settings-panel {
    background: var(--settings-panel-bg);
    border: 1px solid rgba(124, 77, 255, 0.22);
    border-radius: 16px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.5rem;
}

.settings-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 1rem;
}

.settings-section-title:not(:first-child) {
    margin-top: 1.5rem;
}

.settings-wallet-hint {
    font-size: 0.8rem;
    color: #8b949e;
    margin: -0.35rem 0 1rem;
    line-height: 1.45;
}

.settings-page .settings-form-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem 1.25rem;
}

.settings-page .form-field {
    margin-bottom: 0;
}

.settings-page .form-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #b8b4d4;
    margin-bottom: 0.4rem;
}

.settings-page .settings-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--settings-input-bg) !important;
    border: 1px solid rgba(124, 77, 255, 0.18) !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    color: #e6edf3 !important;
}

.settings-page .settings-input:focus {
    outline: none;
    border-color: var(--settings-purple) !important;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.22) !important;
}

.settings-page .settings-input[readonly] {
    opacity: 0.85;
    cursor: default;
}

.settings-page .settings-update-btn {
    display: block;
    width: 100%;
    margin-top: 1.75rem;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none !important;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--settings-purple), var(--settings-purple-dark)) !important;
    color: #fff !important;
    box-shadow: 0 6px 24px rgba(124, 77, 255, 0.4);
    cursor: pointer;
    font-family: inherit;
}

.settings-page .settings-update-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(124, 77, 255, 0.5);
    color: #fff !important;
}

.settings-extras {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-trading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.settings-trading-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #e6edf3;
}

.settings-mode-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.settings-mode-form {
    margin: 0;
}

.settings-mode-badge {
    min-width: 4.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(124, 77, 255, 0.25);
    background: #1e1a35;
    color: #9ca3c7;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-mode-badge:hover {
    border-color: var(--settings-purple);
    color: #e6edf3;
}

.settings-mode-badge.is-active.settings-mode-badge--win {
    background: #22c55e;
    border-color: #22c55e;
    color: #0f172a;
}

.settings-mode-badge.is-active.settings-mode-badge--auto {
    background: #2d2a45;
    border-color: rgba(124, 77, 255, 0.45);
    color: #e6edf3;
}

.settings-mode-badge.is-active.settings-mode-badge--loss {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.settings-daily-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.settings-daily-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #e6edf3;
    white-space: nowrap;
}

.settings-page .settings-daily-input {
    width: min(220px, 100%);
    padding: 0.7rem 1rem;
    background: var(--settings-input-bg) !important;
    border: 1px solid rgba(124, 77, 255, 0.18) !important;
    border-radius: 10px !important;
    color: #e6edf3 !important;
}

.settings-page .settings-daily-btn {
    padding: 0.65rem 1.25rem;
    border: none !important;
    background: linear-gradient(135deg, var(--settings-purple), var(--settings-purple-dark)) !important;
    color: #fff !important;
    border-radius: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.settings-page .settings-daily-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .settings-page .settings-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .settings-page .settings-form-grid {
        grid-template-columns: 1fr !important;
    }
}
