/* ===================== Reset & Base ===================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #1e1e35;
    --bg-input: #16162b;
    --bg-hover: #252545;
    --border: #2a2a4a;
    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #6868880;
    --accent-green: #00d68f;
    --accent-green-dark: #00b377;
    --accent-blue: #3b82f6;
    --accent-cyan: #22d3ee;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --gradient-credits: linear-gradient(135deg, #00d68f, #00b377);
    --gradient-recharges: linear-gradient(135deg, #f97316, #ea580c);
    --gradient-accounts: linear-gradient(135deg, #22d3ee, #06b6d4);
    --gradient-failures: linear-gradient(135deg, #f97316, #dc2626);
    --gradient-total: linear-gradient(135deg, #a855f7, #ec4899);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
}

html {
    background: var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 30px 20px;
    line-height: 1.6;
    max-width: 1280px;
    margin: 0 auto;
}

/* ===================== Scrollbar ===================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3a5a;
}

/* ===================== Header ===================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-left h1 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.username {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================== Badges ===================== */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-online {
    background: rgba(0, 214, 143, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0, 214, 143, 0.3);
}

.badge-offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===================== Buttons ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
}
.btn-primary:hover { opacity: 0.9; }

.btn-success {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    color: white;
    font-size: 1rem;
}
.btn-success:hover { opacity: 0.9; }

.btn-danger {
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
    color: white;
}
.btn-danger:hover { opacity: 0.9; }

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 6px;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-full { width: 100%; }

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1rem;
    border-radius: 4px;
    transition: var(--transition);
}
.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===================== Estatísticas ===================== */
.stats-section {
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.title-bar {
    width: 4px;
    height: 24px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

.section-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.stat-card {
    position: relative;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    overflow: hidden;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    border-radius: var(--radius);
}

.stat-credits { background: var(--gradient-credits); }
.stat-recharges { background: var(--gradient-recharges); }
.stat-accounts { background: var(--gradient-accounts); }
.stat-failures { background: var(--gradient-failures); }
.stat-total { background: var(--gradient-total); }

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.stat-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

/* ===================== Main Content ===================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.panel {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* ===================== Tabs ===================== */
.tab-header {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

.tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.05);
}

.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

.tab-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* ===================== Inputs ===================== */
.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.api-key-input-wrapper {
    display: flex;
    gap: 8px;
}

.api-key-input-wrapper input {
    flex: 1;
}

.input-hints {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hint-icon {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.hint-icon.hint-green {
    color: var(--accent-green);
}

.hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.hint code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

/* ===================== Status Box ===================== */
.status-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 18px;
}

.status-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-value {
    font-size: 1rem;
    font-weight: 700;
}

.status-success {
    color: var(--accent-green);
}

.status-error {
    color: var(--accent-red);
}

/* ===================== Progress Bar ===================== */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.queue-info {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ===================== Info Box ===================== */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===================== Account Result ===================== */
.account-result {
    background: rgba(0, 214, 143, 0.08);
    border: 1px solid rgba(0, 214, 143, 0.25);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 18px;
}

.account-result h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--accent-green);
}

.credential-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credential-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.credential-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
}

.credential-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-all;
}

.btn-copy {
    font-size: 0.85rem;
}

/* ===================== Computer / Terminal ===================== */
.computer-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    text-align: center;
    color: var(--text-secondary);
}

.computer-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.computer-idle h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.computer-idle p {
    font-size: 0.85rem;
    max-width: 320px;
}

.terminal-window {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 0;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #1a1a2a;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.terminal-body {
    background: #0d0d1a;
    padding: 16px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
}

.terminal-line {
    color: var(--text-secondary);
}

.terminal-line.success {
    color: var(--accent-green);
}

.terminal-line.error {
    color: var(--accent-red);
}

.terminal-line.info {
    color: var(--accent-cyan);
}

.terminal-line.warning {
    color: var(--accent-orange);
}

/* ===================== Logs ===================== */
.logs-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.logs-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.filter-btn.active {
    background: rgba(34, 211, 238, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.logs-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.logs-empty span {
    font-size: 2rem;
    margin-bottom: 8px;
}

.log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.log-item:hover {
    border-color: var(--accent-cyan);
}

.log-status {
    font-size: 1.1rem;
}

.log-info {
    flex: 1;
    min-width: 0;
}

.log-url {
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Courier New', monospace;
}

.log-error {
    font-size: 0.75rem;
    color: var(--accent-red);
    margin-top: 2px;
}

.log-date {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.logs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

#logsPageInfo {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===================== Modal ===================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 460px;
    box-shadow: var(--shadow);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.1rem;
}

.modal-body {
    padding: 24px;
}

.modal-body > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

/* ===================== Toast ===================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 3.7s;
    max-width: 360px;
}

.toast-success { background: linear-gradient(135deg, #00b377, #00d68f); }
.toast-error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.toast-info { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.toast-warning { background: linear-gradient(135deg, #d97706, #f59e0b); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ===================== Animations ===================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===================== Responsive ===================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat-value {
        font-size: 1.8rem;
    }
    .status-row {
        flex-direction: column;
        gap: 10px;
    }
    .packages-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===================== Packages Grid ===================== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px;
    text-align: center;
    transition: var(--transition);
}

.package-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.1);
}

.package-credits {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 4px;
}

.package-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.package-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 12px;
}

.package-loading {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================== Redeem Section ===================== */
.redeem-section {
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* ===================== Referral Code Box ===================== */
.referral-code-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-top: 16px;
}

.referral-section .log-item {
    background: var(--bg-card);
}

/* ===================== History Section ===================== */
.history-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.history-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    overflow: hidden;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.history-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.history-table-wrap {
    max-height: 400px;
    overflow-y: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.history-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.history-table th {
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    color: var(--text-primary);
}

.history-table tbody tr:hover {
    background: var(--bg-hover);
}

.history-table .history-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px 14px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-status.status-success {
    background: rgba(0, 214, 143, 0.15);
    color: var(--accent-green);
}

.badge-status.status-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.badge-status.status-pending {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
}

.credential-cell {
    font-family: monospace;
    font-size: 0.82rem;
    color: var(--accent-cyan);
}

/* ===================== Footer ===================== */
.footer {
    text-align: center;
    padding: 30px 0 10px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* ===================== Batch Warning Modal ===================== */
.modal-warning {
    max-width: 580px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header-warning {
    background: linear-gradient(135deg, #f97316, #dc2626);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header-warning h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.modal-header-warning .modal-close {
    color: #fff;
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-header-warning .modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-body-scroll {
    overflow-y: auto;
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.warning-card {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border-left: 4px solid;
    font-size: 0.88rem;
    line-height: 1.6;
}

.warning-card p + p {
    margin-top: 8px;
}

.warning-red {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.08);
}

.warning-yellow {
    border-color: var(--accent-orange);
}

.warning-red-border {
    border-color: var(--accent-red);
}

.warning-blue {
    border-color: var(--accent-blue);
}

.warning-green {
    border-color: var(--accent-green);
}

.modal-footer-warning {
    padding: 18px 24px;
    border-top: 1px solid var(--border);
}

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 16px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent-purple);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ===================== Responsive: History ===================== */
@media (max-width: 900px) {
    .history-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .history-table {
        font-size: 0.78rem;
    }
    .history-table th,
    .history-table td {
        padding: 8px 10px;
    }
    .modal-warning {
        max-width: 100%;
        margin: 10px;
    }
    .modal-body-scroll {
        padding: 16px;
    }
    .warning-card {
        font-size: 0.82rem;
        padding: 12px 14px;
    }
}
