/* ================================================================
   EVORIA — Components v3
   Minimal · Consistent · Elegant
   ================================================================ */


/* ──────────────────────────────────────────────────────────────────
   TAB PILLS
   ────────────────────────────────────────────────────────────────── */
.tab {
    padding: var(--space-xs) var(--space-lg);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-base);
    user-select: none;
    line-height: var(--lh-normal);
}

.tab:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.tab.active {
    color: var(--bg);
    background: var(--primary);
    border-color: transparent;
}

@media (max-width: 960px) {
    .tab {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--font-xs);
    }
}

@media (max-width: 640px) {
    .tab {
        min-width: 72px;
        font-size: var(--font-xs);
        padding: 6px var(--space-sm);
        text-align: center;
    }
}


/* ──────────────────────────────────────────────────────────────────
   PANELS & CARDS
   ────────────────────────────────────────────────────────────────── */
.panel,
.info-card {
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: var(--font-sm);
    line-height: var(--lh-relaxed);
    color: var(--text-muted);
}

.panel__header {
    margin-bottom: var(--space-sm);
}

.panel__title {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text);
    line-height: var(--lh-tight);
}

.panel__body {
    font-size: var(--font-sm);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}

.info-card strong,
.panel strong {
    color: var(--text);
}


/* ──────────────────────────────────────────────────────────────────
   STATUS PANELS / ALERTS
   ────────────────────────────────────────────────────────────────── */
.status-panel,
.alert {
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: var(--font-sm);
    line-height: var(--lh-relaxed);
    border-left: 3px solid var(--border);
    background: var(--bg-alt);
}

.status-panel-info,
.alert--info {
    border-left-color: var(--info);
    background: var(--info-soft);
}

.status-panel-success,
.alert--success {
    border-left-color: var(--success);
    background: var(--success-soft);
}

.status-panel-warning,
.alert--warn {
    border-left-color: var(--warning);
    background: var(--warning-soft);
}

.status-panel-danger,
.alert--danger {
    border-left-color: var(--danger);
    background: var(--danger-soft);
}


/* ──────────────────────────────────────────────────────────────────
   FORM FIELDS
   ────────────────────────────────────────────────────────────────── */
.form-group,
.field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.form-group label,
.field__label {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text);
    line-height: var(--lh-tight);
}

.form-group small,
.field__help {
    font-size: var(--font-xs);
    color: var(--text-subtle);
    line-height: var(--lh-normal);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}


/* ──────────────────────────────────────────────────────────────────
   INPUTS — Clean, consistent
   ────────────────────────────────────────────────────────────────── */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="time"],
input[type="file"],
textarea,
select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--text);
    font-size: var(--font-md);
    font-family: inherit;
    line-height: var(--lh-normal);
    height: var(--input-height);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    color-scheme: dark;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    transition: background-color 5000s ease-in-out 0s;
}

select option {
    background: #18181b;
    color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-subtle);
}

textarea {
    resize: vertical;
    min-height: 60px;
    height: auto;
}


/* ──────────────────────────────────────────────────────────────────
   BUTTONS — Flat, bold, minimal
   ────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    height: var(--btn-height);
    background: var(--primary);
    color: var(--bg);
    border: none;
    font-weight: 700;
    font-size: var(--font-sm);
    font-family: inherit;
    line-height: var(--lh-tight);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(59, 155, 255, .2);
    transform: translateY(-1px);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-compact {
    padding: 6px var(--space-md);
    height: var(--btn-height-compact);
    font-size: var(--font-xs);
    border-radius: var(--radius-sm);
}

.btn-secondary {
    background: var(--panel-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    box-shadow: none;
    transform: none;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-row {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}


/* ──────────────────────────────────────────────────────────────────
   BADGES
   ────────────────────────────────────────────────────────────────── */
.badge,
.fee-badge {
    display: inline-block;
    padding: 3px var(--space-xs);
    border-radius: var(--radius-sm);
    font-size: var(--font-2xs);
    font-weight: 600;
    line-height: var(--lh-tight);
    background: var(--primary-soft);
    color: var(--primary);
}

.badge--muted,
.fee-badge.loading,
.fee-badge.zero-balance {
    background: rgba(255, 255, 255, .05) !important;
    color: var(--text-muted) !important;
}

.badge--danger {
    background: var(--danger-soft);
    color: var(--danger);
}

/* Axiom Button */
.axiom-btn {
    background: var(--bg) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-hover) !important;
    transition: all var(--transition-fast);
}

.axiom-btn:hover {
    background: var(--panel-alt) !important;
    border-color: rgba(255, 255, 255, .2) !important;
}

/* Config Card */
.config-card {
    transition: all var(--transition-fast);
}

.config-card:hover {
    border-color: var(--primary);
}

.config-card.selected {
    border-color: var(--primary) !important;
    background: var(--primary-soft) !important;
    box-shadow: 0 0 0 2px var(--primary-ring);
}


/* ──────────────────────────────────────────────────────────────────
   TOGGLE CONTAINERS
   ────────────────────────────────────────────────────────────────── */
.toggle-container {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.toggle-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    user-select: none;
}

.toggle-switch {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, .12);
    border-radius: var(--radius-full);
    position: relative;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch.active::after {
    transform: translateX(18px);
}

.custom-settings {
    display: none;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.custom-settings.active {
    display: block;
}


/* ──────────────────────────────────────────────────────────────────
   FEE DISPLAY
   ────────────────────────────────────────────────────────────────── */
.fee-display {
    margin-top: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.fee-value {
    font-weight: 700;
    color: var(--primary);
}

.fee-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.fee-detail-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-2xs);
}

.fee-detail-value {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text);
    line-height: var(--lh-tight);
}


/* ──────────────────────────────────────────────────────────────────
   DEPLOYMENT CARDS
   ────────────────────────────────────────────────────────────────── */
.deployment-card {
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-xs);
    cursor: pointer;
    transition: all var(--transition-base);
}

.deployment-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.deployment-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-ring);
}

.deployment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.deployment-title {
    font-weight: 700;
    font-size: var(--font-sm);
    color: var(--text);
}

.deployment-date {
    font-size: var(--font-2xs);
    color: var(--text-subtle);
}

.deployment-info {
    font-size: var(--font-xs);
    color: var(--text-muted);
    font-family: var(--font-mono);
}


/* ──────────────────────────────────────────────────────────────────
   IMAGE PREVIEW
   ────────────────────────────────────────────────────────────────── */
.image-preview {
    margin-top: var(--space-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 180px;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}


/* ──────────────────────────────────────────────────────────────────
   LOADING / SPINNER
   ────────────────────────────────────────────────────────────────── */
.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    gap: var(--space-sm);
    text-align: center;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loading-text {
    font-size: var(--font-xs);
    color: var(--text-muted);
}


/* ──────────────────────────────────────────────────────────────────
   RESULT AREA
   ────────────────────────────────────────────────────────────────── */
.result {
    display: none;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--success);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.result.active {
    display: block;
}

.result.error {
    border-left-color: var(--danger);
}

.result h3 {
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.result-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    margin-bottom: var(--space-xs);
    font-size: var(--font-sm);
    line-height: var(--lh-relaxed);
    word-break: break-word;
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs) var(--space-sm);
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: var(--font-xs);
    font-weight: 600;
    border: 1px solid var(--primary-ring);
    transition: all var(--transition-fast);
}

.links a:hover {
    background: rgba(59, 155, 255, .12);
    border-color: var(--primary);
}


/* ──────────────────────────────────────────────────────────────────
   PLATFORM CONFIG BAR
   ────────────────────────────────────────────────────────────────── */
.platform-config-bar {
    background: var(--primary-soft);
    border: 1px solid var(--primary-ring);
    border-radius: var(--radius-sm);
    padding: 6px var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--font-xs);
}

.platform-config-content {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: nowrap;
    white-space: nowrap;
}

.platform-config-status {
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

.platform-config-separator {
    color: var(--text-subtle);
    opacity: .3;
    flex-shrink: 0;
    font-size: 10px;
}

.platform-config-item {
    color: var(--text-muted);
    flex-shrink: 0;
}

.platform-config-item strong {
    color: var(--text);
}

/* Config toggle inline */
.config-toggle-group-inline {
    display: inline-flex;
    gap: 0;
    background: rgba(0, 0, 0, .2);
    border-radius: var(--radius-sm);
    padding: var(--space-2xs);
    flex-shrink: 0;
}

.config-toggle-btn-inline {
    padding: 3px 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--font-2xs);
    font-weight: 600;
    border-radius: 4px;
    transition: all var(--transition-fast);
    font-family: inherit;
    width: 38px;
    text-align: center;
    flex-shrink: 0;
}

.config-toggle-btn-inline:hover:not(.active) {
    color: var(--text);
    background: var(--surface-hover);
}

.config-toggle-btn-inline.active {
    background: var(--primary);
    color: var(--bg);
}

.config-toggle-btn-inline:active {
    transform: scale(0.96);
}


/* ──────────────────────────────────────────────────────────────────
   SCROLLABLE CONTAINER
   ────────────────────────────────────────────────────────────────── */
.scrollable-container {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    padding: var(--space-xs);
    margin-bottom: var(--space-md);
}

.scrollable-container>div {
    padding: var(--space-xs);
}

.scrollable-container>div::-webkit-scrollbar {
    width: 4px;
}

.scrollable-container>div::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-container>div::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .05);
    border-radius: 2px;
}

.scrollable-container>div::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .1);
}


/* ──────────────────────────────────────────────────────────────────
   PREVANITY RAIL
   ────────────────────────────────────────────────────────────────── */
.prevanity-header {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border);
}

.prevanity-header-title {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text);
}

.prevanity-header-subtitle {
    font-size: var(--font-2xs);
    color: var(--text-subtle);
    margin-top: var(--space-2xs);
}

.prevanity-footer {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-2xs);
    color: var(--text-subtle);
    border-top: 1px solid var(--border);
    text-align: center;
}

.prevanity-section-header {
    padding: var(--space-xs) 0;
    margin-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border);
}

.prevanity-section-title {
    font-size: var(--font-2xs);
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.prevanity-section-body {
    flex: 1;
    min-height: 0;
    max-height: 280px;
    overflow-y: auto;
}

.prevanity-section-body::-webkit-scrollbar {
    width: 3px;
}

.prevanity-section-body::-webkit-scrollbar-track {
    background: transparent;
}

.prevanity-section-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .05);
    border-radius: 2px;
}

.prevanity-stock-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.prevanity-addr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    gap: var(--space-sm);
}

.prevanity-addr-row:hover {
    background: var(--surface-hover);
}

.prevanity-addr-main {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    min-width: 0;
}

.prevanity-addr {
    font-family: var(--font-mono);
    font-size: var(--font-xs);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.prevanity-addr-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.prevanity-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2xs);
    opacity: .35;
    transition: opacity var(--transition-fast);
    color: var(--text);
    display: flex;
    align-items: center;
}

.prevanity-copy-btn:hover {
    opacity: 1;
}

.prevanity-status {
    font-size: var(--font-2xs);
    padding: 3px var(--space-xs);
    border-radius: var(--radius-sm);
    font-weight: 600;
    background: var(--success-soft);
    color: var(--success);
    white-space: nowrap;
}

.prevanity-date {
    display: none;
}

/* Generator log */
.generator-log-box,
.log-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xs);
    font-family: var(--font-mono);
}

/* Wallet mini-tabs */
.wallet-mini-tab {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: var(--font-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.wallet-mini-tab:hover {
    color: var(--primary);
}

.wallet-mini-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.wallet-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.wallet-tab-content.active {
    display: flex;
    animation: ev-fadeIn 0.25s ease-out;
}


/* ──────────────────────────────────────────────────────────────────
   DEPLOY LOGS PANEL
   ────────────────────────────────────────────────────────────────── */
.deploy-logs-panel {
    margin-top: var(--space-md);
    background: var(--panel);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.deploy-logs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.deploy-logs-title {
    font-size: var(--font-xs);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.deploy-logs-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--info);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, .2);
}

.deploy-logs-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.deploy-logs-action {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    border-radius: var(--radius-full);
    padding: var(--space-2xs) var(--space-sm);
    font-size: var(--font-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-family: inherit;
}

.deploy-logs-action:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--border-hover);
}

.deploy-logs-body {
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: var(--space-sm);
    max-height: 240px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: var(--font-xs);
    line-height: var(--lh-relaxed);
}

.deploy-logs {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deploy-log-line {
    display: grid;
    grid-template-columns: 48px 54px minmax(0, 1fr);
    align-items: start;
    column-gap: var(--space-sm);
    color: var(--text-muted);
    white-space: pre-wrap;
    word-break: break-word;
}

.deploy-log-time {
    font-size: var(--font-2xs);
    color: var(--text-subtle);
}

.deploy-log-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px var(--space-xs);
    border-radius: var(--radius-full);
    font-size: var(--font-2xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: var(--bg-alt);
}

.deploy-log-level-info {
    color: var(--info);
    border-color: rgba(139, 92, 246, .3);
}

.deploy-log-level-ok {
    color: var(--success);
    border-color: rgba(34, 197, 94, .3);
}

.deploy-log-level-warn {
    color: var(--warning);
    border-color: rgba(59, 155, 255, .3);
}

.deploy-log-level-err {
    color: var(--danger);
    border-color: rgba(239, 68, 68, .3);
    background: rgba(239, 68, 68, .06);
}

.deploy-log-message {
    color: var(--text);
}

.deploy-log-message-subtle {
    color: var(--text-muted);
}

.deploy-logs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-2xs);
    font-size: var(--font-xs);
    color: var(--text-subtle);
}

.deploy-logs-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.deploy-logs-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-subtle);
}

.deploy-logs-status.is-streaming::before {
    background: var(--primary);
}

.deploy-logs-status.is-error::before {
    background: var(--danger);
}

.deploy-logs-autoscroll {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    user-select: none;
}

.deploy-logs-autoscroll input[type="checkbox"] {
    width: 13px;
    height: 13px;
    accent-color: var(--primary);
    margin: 0;
}

.deploy-logs-autoscroll span {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.deploy-logs-panel.collapsed .deploy-logs-body {
    display: none;
}

.deploy-logs-panel.collapsed .deploy-logs-footer {
    opacity: .5;
}


/* ──────────────────────────────────────────────────────────────────
   BUY / SELL — Trading Forms
   ────────────────────────────────────────────────────────────────── */
.buy-sell-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: start;
}

.buy-sell-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.buy-sell-form:hover {
    border-color: var(--border-hover);
}

.trade-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border);
}

.trade-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    line-height: 1;
}

.trade-badge--buy {
    background: var(--primary-soft);
    color: var(--primary);
}

.trade-badge--sell {
    background: rgba(30, 110, 220, .1);
    color: #cca000;
}

.trade-balance {
    font-size: var(--font-2xs);
    color: var(--text-subtle);
}

.trade-field {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    border-bottom: 1px solid var(--border);
}

.trade-label {
    font-size: var(--font-xs);
    color: var(--text-subtle);
    min-width: 58px;
    flex-shrink: 0;
    font-weight: 500;
}

.trade-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.trade-input {
    width: 100%;
    height: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 var(--space-sm);
    padding-right: 38px;
    color: var(--text);
    font-size: var(--font-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
    transition: border-color var(--transition-fast);
}

.trade-input:focus {
    outline: none;
    border-color: var(--primary);
}

.trade-unit {
    position: absolute;
    right: var(--space-sm);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.trade-max-btn {
    position: absolute;
    right: 28px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(59, 155, 255, .2);
    background: var(--primary-soft);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1;
}

.trade-max-btn:hover {
    background: rgba(59, 155, 255, .15);
    border-color: rgba(59, 155, 255, .3);
}

/* Trade CTA buttons */
.trade-btn {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--bg);
}

.trade-btn--buy {
    background: var(--primary);
}

.trade-btn--buy:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(59, 155, 255, .2);
}

.trade-btn--sell {
    background: #cca000;
}

.trade-btn--sell:hover {
    background: #b89000;
    box-shadow: 0 4px 16px rgba(30, 110, 220, .2);
}

.trade-auto-close {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-2xs);
    color: var(--text-subtle);
    cursor: pointer;
    width: calc(50% - var(--space-md) / 2);
    margin-left: auto;
    margin-top: var(--space-xs);
}

.trade-auto-close input[type="checkbox"] {
    margin: 0;
}

.trade-auto-close-hint {
    color: var(--success);
    font-weight: 600;
}

.balance-display {
    font-weight: 700;
    color: var(--success);
    font-size: inherit;
}

.balance-display.zero-balance {
    color: var(--danger);
}


/* ──────────────────────────────────────────────────────────────────
   SCHEDULED JOBS
   ────────────────────────────────────────────────────────────────── */
.scheduled-jobs-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.scheduled-job-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    transition: all var(--transition-fast);
}

.scheduled-job-item:hover {
    border-color: var(--border-hover);
}

.scheduled-job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.scheduled-job-token {
    font-weight: 600;
    font-size: var(--font-xs);
    color: var(--text);
}

.scheduled-job-status {
    font-size: var(--font-xs);
    padding: 3px var(--space-xs);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.scheduled-job-time {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.scheduled-job-cancel {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, .2);
    padding: var(--space-2xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-2xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
}

.scheduled-job-cancel:hover {
    background: rgba(239, 68, 68, .12);
}

.status-scheduled {
    background: var(--info-soft);
    color: var(--info);
}

.status-executing {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-completed {
    background: var(--success-soft);
    color: var(--success);
}

.status-failed {
    background: var(--danger-soft);
    color: var(--danger);
}

.status-cancelled {
    background: rgba(255, 255, 255, .05);
    color: var(--text-muted);
}


/* ──────────────────────────────────────────────────────────────────
   ANIMATIONS
   ────────────────────────────────────────────────────────────────── */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ──────────────────────────────────────────────────────────────────
   CONFIG MANAGER
   ────────────────────────────────────────────────────────────────── */
.cm-label {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
}

#configManagerForm {
    gap: var(--space-sm) !important;
}

.cm-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.cm-field {
    display: flex;
    flex-direction: column;
}

.cm-field small {
    margin-top: 2px;
}

.cm-mcap-est {
    font-size: 9px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 3px;
    opacity: .8;
}

.cm-mint-selector {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: rgba(0, 0, 0, .2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: var(--space-sm);
}

.cm-mint-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: var(--font-xs);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cm-mint-btn:hover:not(.active) {
    background: var(--surface-hover);
    color: var(--text);
}

.cm-mint-btn.active {
    background: var(--primary-soft);
    border-color: rgba(59, 155, 255, .2);
    color: var(--primary);
}

.cm-mint-icon {
    font-weight: 700;
    font-size: var(--font-sm);
}

.cm-mint-dec {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-subtle);
    background: rgba(255, 255, 255, .04);
    padding: 1px 4px;
    border-radius: 3px;
}

.cm-mint-btn.active .cm-mint-dec {
    background: rgba(59, 155, 255, .1);
    color: var(--primary-muted);
}

.cm-unit {
    font-weight: 700;
    color: var(--primary);
    font-size: 9px;
    background: var(--primary-soft);
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 3px;
}

.cm-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cm-input-wrap input {
    padding-right: 36px;
}

.cm-input-suffix {
    position: absolute;
    right: 10px;
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-subtle);
    pointer-events: none;
}

.cm-bps-label {
    font-size: 9px;
    color: var(--text-subtle);
}

.cm-toggles-inline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cm-check {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.cm-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
    cursor: pointer;
}

.cm-check-locked {
    opacity: .5;
    cursor: not-allowed;
}

.cm-toggle-badge {
    font-size: 8px;
    font-weight: 700;
    color: var(--primary-muted);
    background: var(--primary-soft);
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 2px;
}

.cm-calc-btn {
    width: 100%;
    padding: 8px 16px;
    background: var(--primary-soft);
    border: 1px solid rgba(59, 155, 255, .2);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: var(--font-xs);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cm-calc-btn:hover {
    background: rgba(59, 155, 255, .12);
    border-color: rgba(59, 155, 255, .3);
}

.cm-calc-btn:active {
    transform: scale(0.99);
}

.cm-preview-panel {
    background: rgba(0, 0, 0, .2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.cm-preview-header {
    font-size: 9px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.cm-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
}

.cm-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.cm-preview-item:nth-child(odd) {
    background: rgba(255, 255, 255, .02);
}

.cm-preview-highlight {
    background: var(--primary-soft) !important;
}

.cm-preview-highlight .cm-preview-value {
    color: var(--success);
    font-weight: 700;
}

.cm-preview-label {
    font-size: 9px;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cm-preview-value {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-mono);
}

.cm-create-btn {
    width: 100%;
    padding: 8px 16px;
    margin-top: var(--space-xs);
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg);
    font-size: var(--font-xs);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cm-create-btn:hover {
    box-shadow: 0 4px 16px rgba(59, 155, 255, .2);
    transform: translateY(-1px);
}

.cm-create-btn:active {
    transform: scale(0.99);
}

.cm-create-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cm-refresh-btn {
    width: 100%;
    margin-top: var(--space-sm);
    padding: 6px 12px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-subtle);
    font-size: var(--font-xs);
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cm-refresh-btn:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text-muted);
    border-color: var(--border-hover);
}

.cm-add-row {
    display: flex;
    gap: 6px;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.cm-add-input {
    flex: 1;
    width: auto !important;
    height: auto !important;
    padding: 6px 10px !important;
    font-size: var(--font-xs) !important;
    font-family: var(--font-mono) !important;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    outline: none;
    box-shadow: none !important;
}

.cm-add-input::placeholder {
    color: var(--text-subtle) !important;
}

.cm-add-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-ring) !important;
}

.cm-add-select {
    width: auto !important;
    height: auto !important;
    padding: 6px 10px !important;
    font-size: var(--font-xs) !important;
    font-weight: 600;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    cursor: pointer;
    font-family: inherit !important;
    box-shadow: none !important;
}

.cm-add-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-ring) !important;
}

.cm-add-select option {
    background: #18181b !important;
    color: var(--text) !important;
}

.cm-add-btn {
    padding: 6px 14px;
    font-size: var(--font-xs);
    font-weight: 700;
    background: var(--primary-soft);
    border: 1px solid rgba(59, 155, 255, .2);
    border-radius: var(--radius-sm);
    color: var(--primary);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.cm-add-btn:hover {
    background: rgba(59, 155, 255, .15);
    border-color: rgba(59, 155, 255, .3);
}


/* ──────────────────────────────────────────────────────────────────
   FEE CURVE
   ────────────────────────────────────────────────────────────────── */
.cm-curve-container {
    margin: var(--space-sm) 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg);
}

.cm-curve-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xs) var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.cm-curve-title {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--text-muted);
}

.cm-curve-legend {
    display: flex;
    gap: var(--space-sm);
}

.cm-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--text-subtle);
    font-weight: 500;
}

.cm-legend-dot {
    width: 14px;
    height: 3px;
    border-radius: 2px;
}

.cm-legend-exp {
    background: var(--primary);
}

.cm-legend-lin {
    background: rgba(30, 110, 220, .6);
    background-image: repeating-linear-gradient(90deg, rgba(30, 110, 220, .6) 0px, rgba(30, 110, 220, .6) 4px, transparent 4px, transparent 7px);
}

#cmCurveCanvas {
    display: block;
    width: 100%;
    cursor: crosshair;
}

.cm-curve-tooltip {
    position: absolute;
    padding: 4px 10px;
    background: rgba(9, 9, 11, .92);
    border: 1px solid rgba(59, 155, 255, .2);
    border-radius: var(--radius-sm);
    font-size: var(--font-2xs);
    font-weight: 600;
    color: var(--text);
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-md);
}