/* Deploy modal content (shell = UiModal + _tokens.css) */
.deploy-modal-stack {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    margin: calc(-1 * var(--s-4));
    margin-bottom: 0;
}

.deploy-modal-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.deploy-modal-body-inner {
    padding: var(--s-3) var(--s-4);
}

.deploy-summary-sticky-shell {
    flex-shrink: 0;
    border-top: 1px solid var(--border-strong);
    background: var(--bg-surface-2);
}

.deploy-footer-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s-3);
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 767.98px) {
    .deploy-footer-inner {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

.deploy-preset-label {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--fs-tag);
    font-weight: 700;
    letter-spacing: var(--tracking-btn);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: var(--s-1);
    line-height: 1.1;
    text-align: center;
}

.deploy-target-capacity {
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.deploy-resources-bar .deploy-resource-item:first-child .deploy-resource-deduction {
    color: var(--accent-primary);
}

.deploy-resources-bar .deploy-resource-item:last-child .deploy-resource-deduction {
    color: var(--accent-secondary);
}

.deploy-advanced-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-2);
    margin-top: var(--s-2);
}

.deploy-advanced-stat-cell {
    text-align: center;
    border: 1px solid var(--border-subtle);
    padding: var(--s-1);
    background: var(--bg-surface-3);
}

.deploy-advanced-stat-lbl {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-tag);
    color: var(--text-muted);
    letter-spacing: var(--tracking-tag);
    text-transform: uppercase;
}

.deploy-advanced-stat-val {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-primary);
}

/* .deploy-modal-body removed — use .deploy-modal-scroll + .deploy-modal-body-inner */

.deploy-section {
    margin-bottom: 0.35rem;
}

.deploy-section:last-child {
    margin-bottom: 0;
}

.deploy-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Orbitron', 'Rajdhani', monospace;
}

/* Numbered section titles (like reference: 1. SELECT GENERAL, 2. CONFIGURE UNITS, 3. MISSION STRATEGY) */
.deploy-section-numbered-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-family: 'Orbitron', 'Rajdhani', monospace;
}

.deploy-section-resources .deploy-section-numbered-title {
    color: #94a3b8;
}

/* --- Resources bar: compact, with RESOURCES label --- */
.deploy-section-resources {
    margin-bottom: 0.3rem;
}

.deploy-resources-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.15rem 0 0;
}

.deploy-resource-item {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
}

.deploy-resource-icon {
    font-size: 0.9rem;
}

.deploy-resource-value {
    color: #e2e8f0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.deploy-resource-value.insufficient {
    color: #ef4444;
}

.deploy-resource-deduction {
    color: #fbbf24;
    font-size: 0.65rem;
}

.deploy-resource-deduction.insufficient {
    color: #ef4444;
}

/* --- General Selection: horizontal scroll, small square cards --- */
.deploy-section-generals {
    margin-bottom: 0.3rem;
}

.deploy-generals-scroll {
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.1rem 0 0.2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.deploy-general-card {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0.2rem 0.15rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    scroll-snap-align: start;
}

.deploy-general-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.5);
}

.deploy-general-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.15);
}

.deploy-general-card.deploy-general-deployed {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: rgba(100, 116, 139, 0.5);
    background: rgba(30, 41, 59, 0.4);
}

.deploy-general-card.deploy-general-deployed:hover {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(100, 116, 139, 0.5);
}

.deploy-general-badge-deployed {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.45rem;
    color: #94a3b8;
    white-space: nowrap;
}

.deploy-general-avatar {
    font-size: 1rem;
    line-height: 1;
}

.deploy-general-avatar-img {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.deploy-general-avatar-none {
    font-size: 0.75rem;
    color: #64748b;
}

.deploy-general-level {
    font-size: 0.55rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.deploy-general-level-name {
    font-size: 0.5rem;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    line-height: 1.2;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deploy-general-stamina-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 1px;
    width: 100%;
    flex-shrink: 0;
}

.deploy-general-stamina {
    font-size: 0.5rem;
    font-weight: 600;
    color: #fbbf24;
}

.deploy-general-stamina-bar {
    height: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    overflow: hidden;
}

.deploy-general-stamina-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.deploy-general-stamina-fill.stamina-fresh { background: #22c55e; }
.deploy-general-stamina-fill.stamina-tired { background: #fbbf24; }
.deploy-general-stamina-fill.stamina-exhausted { background: #ef4444; }
.deploy-general-stamina-fill.stamina-depleted { background: #6b7280; }

.deploy-general-full-set-badge {
    font-size: 0.45rem;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: 2px;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.deploy-general-card.deploy-general-full-set {
    border-width: 2px;
}

.deploy-general-card.deploy-general-full-set-t1 { border-color: #4a8a4a; box-shadow: 0 0 12px rgba(74,138,74,0.25); }
.deploy-general-card.deploy-general-full-set-t2 { border-color: #2a9a2a; box-shadow: 0 0 14px rgba(42,154,42,0.3); }
.deploy-general-card.deploy-general-full-set-t3 { border-color: #3a7ad4; box-shadow: 0 0 16px rgba(58,122,212,0.35); }
.deploy-general-card.deploy-general-full-set-t4 { border-color: #9b5de5; box-shadow: 0 0 18px rgba(155,93,229,0.4); }
.deploy-general-card.deploy-general-full-set-t5 { border-color: #d4af37; box-shadow: 0 0 20px rgba(212,175,55,0.45); }

/* --- Army: Capacity bar --- */
.deploy-section-army {
    margin-bottom: 0.3rem;
}

.deploy-capacity-bar {
    margin-bottom: 0.25rem;
}

.deploy-capacity-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.15rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #cbd5e1;
}

.deploy-capacity-value {
    color: #60a5fa;
    font-variant-numeric: tabular-nums;
}

.deploy-units-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

.deploy-units-label.over-limit {
    color: #f87171;
}

.deploy-capacity-track {
    height: 14px;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 7px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    overflow: hidden;
}

.deploy-capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 7px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* --- SELECT ALL UNITS: compact button --- */
.deploy-btn-select-all {
    width: 100%;
    min-height: 32px;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Orbitron', 'Rajdhani', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.deploy-btn-select-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.deploy-btn-select-all:active {
    transform: translateY(0);
}

/* --- Unit list: grouped rows (Infantry, Tanks, Air) - clean flat layout --- */
.deploy-unit-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.deploy-unit-group {
    background: rgba(20, 28, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    position: relative;
}

.deploy-unit-group-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.deploy-unit-group-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.deploy-unit-group-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e2e8f0;
    flex: 1;
}

.deploy-tier-btn {
    min-height: 28px;
    min-width: 40px;
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    transition: all 0.2s;
}

.deploy-tier-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.deploy-tier-chevron {
    font-size: 0.5rem;
}

.deploy-tier-dropdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-bottom: 0.2rem;
}

.deploy-tier-option {
    min-height: 28px;
    padding: 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.deploy-tier-option:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.deploy-tier-option.selected {
    background: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-color: #3b82f6;
}

.deploy-tier-option.locked {
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.6;
}

/* --- ADJUST MANUALLY (ADVANCED): collapsible section - clean look --- */
.deploy-adjust-manually {
    margin-top: 0.3rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: rgba(15, 23, 42, 0.35);
}

.deploy-adjust-manually-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.5rem;
    background: rgba(30, 41, 59, 0.4);
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Orbitron', 'Rajdhani', monospace;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background 0.2s, color 0.2s;
}

.deploy-adjust-manually-toggle:hover {
    background: rgba(30, 41, 59, 0.6);
    color: #e2e8f0;
}

.deploy-adjust-manually-toggle.expanded {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.deploy-adjust-chevron {
    font-size: 0.55rem;
    transition: transform 0.2s;
    color: inherit;
}

.deploy-adjust-manually-toggle.expanded .deploy-adjust-chevron {
    transform: rotate(180deg);
}

.deploy-adjust-label {
    flex: 1;
    text-align: left;
}

.deploy-adjust-manually .deploy-unit-list {
    padding: 0.4rem 0.5rem 0.5rem;
    background: transparent;
}

/* --- Mission Strategy: segmented control --- */
.deploy-section-mission {
    margin-bottom: 0.25rem;
}

.deploy-mission-segmented {
    display: flex;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(30, 41, 59, 0.5);
}

.deploy-mission-option {
    flex: 1;
    min-height: 32px;
    padding: 0.2rem 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(59, 130, 246, 0.25);
    cursor: pointer;
    transition: all 0.2s;
}

.deploy-mission-option:last-child {
    border-right: none;
}

.deploy-mission-option:hover {
    background: rgba(59, 130, 246, 0.15);
}

.deploy-mission-option.selected {
    background: rgba(59, 130, 246, 0.25);
    border-color: transparent;
}

.deploy-mission-first {
    border-radius: 5px 0 0 5px;
}

.deploy-mission-last {
    border-radius: 0 5px 5px 0;
}

.deploy-mission-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.deploy-mission-time {
    font-size: 0.6rem;
    color: #94a3b8;
}

.deploy-mission-bonus-green {
    font-size: 0.55rem;
    font-weight: 700;
    color: #22c55e;
}

.deploy-mission-bonus-blue {
    font-size: 0.55rem;
    font-weight: 700;
    color: #67e8f9;
}

/* --- Impact row --- */
.deploy-impact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0.35rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 4px;
    margin-bottom: 0.2rem;
}

.deploy-impact-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}

.deploy-impact-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #60a5fa;
    font-variant-numeric: tabular-nums;
}

/* Legacy / fallback (general-selector, resource-display, etc. kept for any other usage) */
.general-selector { display: flex; gap: 12px; flex-wrap: wrap; }
.general-option { background: rgba(30, 41, 59, 0.6); border: 2px solid rgba(59, 130, 246, 0.3); border-radius: 10px; padding: 12px 16px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.general-option.selected { border-color: #3b82f6; box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
.general-icon { font-size: 20px; }
.general-name { color: #e2e8f0; font-weight: 500; font-size: 14px; }
.general-level { color: #94a3b8; font-size: 12px; }
.resource-display { display: flex; gap: 16px; flex-wrap: wrap; }
.resource-item { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(30, 41, 59, 0.5); border-radius: 8px; }
.resource-icon { font-size: 20px; }
.resource-label { color: #94a3b8; font-size: 14px; }
.resource-value { color: #e2e8f0; font-size: 16px; font-weight: 600; }
.resource-value.insufficient { color: #ef4444; }
.resource-cost { color: #fbbf24; font-size: 14px; }
.resource-cost.insufficient { color: #ef4444; }
.capacity-bar { margin-top: 12px; }
.capacity-label { display: flex; justify-content: space-between; margin-bottom: 8px; color: #cbd5e1; font-size: 14px; }
.capacity-value { color: #60a5fa; font-weight: 600; }
.capacity-progress { height: 24px; background: rgba(30, 41, 59, 0.6); border-radius: 12px; overflow: hidden; }
.capacity-progress-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa); border-radius: 12px; transition: width 0.3s; }
.duration-selector { display: flex; gap: 12px; }
.duration-option { flex: 1; background: rgba(30, 41, 59, 0.6); border: 2px solid rgba(59, 130, 246, 0.3); border-radius: 10px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.duration-option.selected { border-color: #3b82f6; box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
.duration-name { color: #e2e8f0; font-size: 16px; font-weight: 600; }
.duration-time { color: #94a3b8; font-size: 14px; }
.duration-bonus { color: #10b981; font-size: 12px; }
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.unit-column { background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 12px; padding: 16px; position: relative; }
.unit-column-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.unit-category-icon { font-size: 24px; }
.unit-category-name { color: #e2e8f0; font-weight: 600; font-size: 16px; flex: 1; }
.tier-selector-btn { background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.4); border-radius: 6px; padding: 6px 12px; color: #60a5fa; font-size: 12px; cursor: pointer; }
.tier-arrow { font-size: 10px; }
.tier-selector-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: rgba(15, 23, 42, 0.98); border: 1px solid rgba(59, 130, 246, 0.4); border-radius: 8px; z-index: 10; display: flex; flex-direction: column; }
.tier-option { background: transparent; border: none; padding: 10px 16px; color: #cbd5e1; font-size: 14px; cursor: pointer; }
.tier-option.selected { background: rgba(59, 130, 246, 0.3); color: #60a5fa; font-weight: 600; }
.tier-option.locked { color: #64748b; cursor: not-allowed; opacity: 0.5; }

/* --- Unit Row: compact (icon + T1 + stepper, touch-friendly) --- */
.unit-row-compact {
    margin-top: 0;
}

.unit-row-compact .unit-row-main {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.unit-row-compact .unit-row-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.unit-row-compact .unit-row-tier {
    font-size: 0.75rem;
    font-weight: 700;
    color: #60a5fa;
    min-width: 1.5rem;
    flex-shrink: 0;
}

.unit-row-compact .unit-row-stepper {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.unit-row-compact .unit-btn {
    min-width: 32px;
    min-height: 32px;
    padding: 0 0.35rem;
    font-size: 1rem;
    border-radius: 4px;
}

.unit-row-compact .unit-quantity-display {
    min-width: 0;
}

.unit-row-compact .unit-quantity-input {
    width: 2.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    padding: 0.2rem;
}

.unit-row-compact .unit-quantity-max {
    font-size: 0.65rem;
    color: #94a3b8;
}

.unit-row-compact .unit-btn-max-compact {
    min-width: 32px;
    min-height: 32px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0 0.3rem;
}

/* Unit Row (legacy / non-compact) */
.unit-row {
    margin-top: 12px;
}

.unit-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.unit-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 14px;
}

.unit-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.unit-stat-item {
    display: flex;
    gap: 4px;
}

.unit-stat-label {
    color: #94a3b8;
}

.unit-stat-value {
    color: #60a5fa;
    font-weight: 600;
}

.unit-row-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.unit-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    color: #60a5fa;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-size: 18px;
    padding: 0 12px;
}

.unit-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.unit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.unit-btn-decrease {
    min-width: 40px;
}

.unit-btn-increase {
    min-width: 40px;
}

.unit-btn-max {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-size: 12px;
    min-width: 60px;
    padding: 0 16px;
}

.unit-btn-max:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.unit-quantity-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.unit-quantity-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    width: 80px;
    text-align: center;
    transition: all 0.2s;
}

.unit-quantity-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.unit-quantity-max {
    color: #94a3b8;
    font-size: 14px;
    white-space: nowrap;
}

.unit-row-cost {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 6px;
    font-size: 13px;
}

.unit-cost-label {
    color: #94a3b8;
}

.unit-cost-value {
    color: #fbbf24;
    font-weight: 500;
}

/* Impact Meter */
.impact-meter {
    margin-top: 12px;
}

.impact-svg {
    width: 100%;
    height: 40px;
    display: block;
}

.impact-bg {
    fill: rgba(30, 41, 59, 0.6);
    stroke: rgba(59, 130, 246, 0.3);
    stroke-width: 1;
}

.impact-fill {
    fill: url(#impactGradient);
    transition: width 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.impact-text {
    fill: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

/* --- Footer: Cancel (ghost) + Deploy (solid 60–70%) --- */
.deploy-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

/* ===== Redesign: fast deploy ===== */
.deploy-modal-content .deploy-preset-tile,
.deploy-modal-content .deploy-tier-chip,
.deploy-modal-content .deploy-qa-btn,
.deploy-modal-content .deploy-advanced-link {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(71, 85, 105, 0.75);
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    font-family: 'Rajdhani', 'Orbitron', system-ui, sans-serif;
    line-height: 1.15;
    cursor: pointer;
}

.deploy-target-bar { padding: 0.35rem 0.55rem; border-bottom: 1px solid rgba(59,130,246,.2); }
.deploy-target-line { display:flex; gap:.4rem; align-items:center; justify-content:space-between; font-size:.72rem; color:#cbd5e1; }
.deploy-target-label { color:#93c5fd; font-weight:700; letter-spacing:.03em; }
.deploy-target-value { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.deploy-target-capacity { color:#38bdf8; font-weight:700; }

.deploy-general-primary-bonus { font-size:.66rem; font-weight:700; margin-top:.2rem; padding:.12rem .35rem; border-radius:4px; }
.deploy-general-primary-bonus-atk { background:rgba(239,68,68,.22); color:#fca5a5; }
.deploy-general-primary-bonus-cap { background:rgba(59,130,246,.22); color:#93c5fd; }
.deploy-general-primary-bonus-def { background:rgba(34,197,94,.22); color:#86efac; }

.deploy-preset-grid { display:grid; grid-template-columns:1fr; gap:.45rem; }
.deploy-preset-grid-icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .35rem;
}
/* Four quick actions: 2×2 on narrow phones, single row from ~520px */
.deploy-preset-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 520px) {
    .deploy-preset-grid-four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.deploy-preset-tile-adv.selected {
    border-color: var(--accent-primary);
    box-shadow: var(--glow);
}
.deploy-section-title-row { display:flex; align-items:center; justify-content:space-between; gap:.35rem; }
.deploy-help-btn {
    appearance:none; -webkit-appearance:none;
    width:24px; height:24px; min-width:24px;
    border-radius:999px; border:1px solid rgba(100,116,139,.8);
    background:rgba(30,41,59,.95); color:#cbd5e1; font-size:.7rem; font-weight:700;
    display:flex; align-items:center; justify-content:center; padding:0;
}
.deploy-help-btn:hover { border-color:#93c5fd; color:#e2e8f0; }
.deploy-preset-tile { text-align:left; border:1px solid var(--border-subtle); background:var(--bg-surface-3); color:var(--text-primary); border-radius:var(--r-none); padding:var(--s-2); min-height:48px; }
.deploy-preset-grid-icons .deploy-preset-tile {
    position: relative;
    min-height: 72px;
    padding: var(--s-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.deploy-preset-tile:hover:not(:disabled) { background: var(--accent-primary-wash); border-color: var(--accent-primary); }
.deploy-preset-tile:disabled { opacity: .45; cursor: not-allowed; }
.deploy-preset-tile.selected { border-color: var(--accent-primary); box-shadow: var(--glow); }
.deploy-preset-tile-recommended { border-color: var(--status-success); }
.deploy-preset-icon { font-size: 1.12rem; line-height: 1; }
.deploy-preset-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, .6);
}
.deploy-preset-grid-icons .deploy-preset-tile::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 180px;
    max-width: 220px;
    border: 1px solid rgba(71, 85, 105, .9);
    background: rgba(2, 6, 23, .96);
    color: #cbd5e1;
    font-size: .62rem;
    line-height: 1.25;
    border-radius: 6px;
    padding: .35rem .42rem;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .12s ease;
    z-index: 40;
}
.deploy-preset-grid-icons .deploy-preset-tile:hover::after {
    opacity: 1;
    visibility: visible;
}
.deploy-preset-title-row { display:flex; justify-content:space-between; align-items:center; gap:.25rem; }
.deploy-preset-title { font-size:.72rem; font-weight:800; letter-spacing:.04em; }
.deploy-preset-recommended { font-size:.6rem; color:#86efac; }
.deploy-preset-metric { font-size:.85rem; font-weight:700; }
.deploy-preset-sub,.deploy-preset-desc { font-size:.66rem; color:#94a3b8; }
.deploy-advanced-link { margin-top:.35rem; width:100%; border:none; background:transparent; color:#93c5fd; font-size:.7rem; text-align:left; padding:0; }
.deploy-advanced-link:hover { color: #bfdbfe; text-decoration: underline; }

.deploy-advanced-actions-row { display:flex; align-items:center; justify-content:space-between; gap:.35rem; margin:.35rem 0; }
.deploy-advanced-actions { display:flex; gap:.25rem; }
.deploy-qa-btn { border:1px solid rgba(71,85,105,.8); background:rgba(30,41,59,.8); color:#cbd5e1; border-radius:6px; font-size:.64rem; padding:.22rem .38rem; min-height:32px; display:flex; align-items:center; gap:.2rem; }
.deploy-qa-btn:hover { border-color: #94a3b8; background: rgba(51, 65, 85, 0.85); color: #f1f5f9; }
.deploy-qa-icon { font-size:.78rem; line-height:1; }
.deploy-qa-text { font-weight:700; letter-spacing:.01em; }
.deploy-advanced-sub { font-size:.63rem; color:#94a3b8; }

/* --- Roster matrix (mix tiers): type grid + tier rows --- */
.deploy-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.35rem 0 0.45rem;
}
.deploy-type-tab {
    border: 1px solid rgba(71, 85, 105, 0.85);
    background: rgba(15, 23, 42, 0.92);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.deploy-type-tab:hover { border-color: #94a3b8; color: #f1f5f9; }
.deploy-type-tab.active { border-color: #38bdf8; color: #7dd3fc; box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35); }
.deploy-type-tab-count { font-family: var(--font-mono, monospace); font-size: 0.62rem; color: #94a3b8; font-weight: 600; }

.deploy-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .deploy-type-grid { grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
}

.deploy-type-column {
    border: 1px solid rgba(71, 85, 105, 0.55);
    border-radius: 10px;
    padding: 0.4rem 0.45rem;
    background: rgba(2, 6, 23, 0.35);
    min-width: 0;
}
.deploy-type-column-header {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e2e8f0;
    margin-bottom: 0.35rem;
    font-family: 'Orbitron', 'Rajdhani', monospace;
}
.deploy-type-column-meta {
    font-size: 0.62rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.deploy-tier-row {
    border: 1px solid rgba(51, 65, 85, 0.65);
    border-radius: 8px;
    padding: 0.4rem 0.45rem;
    margin-bottom: 0.35rem;
    background: rgba(15, 23, 42, 0.55);
}
.deploy-tier-row:last-child { margin-bottom: 0; }
.deploy-tier-row.locked { opacity: 0.55; }
.deploy-tier-row.has-qty { border-color: rgba(56, 189, 248, 0.45); }
.deploy-tier-row-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    justify-content: space-between;
}
.deploy-tier-badge {
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    border: 1px solid rgba(71, 85, 105, 0.9);
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.9);
}
.deploy-tier-stat-strip {
    font-size: 0.62rem;
    color: #cbd5e1;
    flex: 1 1 140px;
    min-width: 0;
    line-height: 1.35;
}
.deploy-tier-meta {
    font-size: 0.6rem;
    color: #94a3b8;
    margin: 0.25rem 0 0.15rem;
}
.deploy-tier-slider {
    width: 100%;
    height: 40px;
    margin: 0.2rem 0;
    accent-color: #38bdf8;
}
.deploy-tier-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    margin-top: 0.25rem;
}
.deploy-tier-chip {
    border: 1px solid rgba(71, 85, 105, 0.85);
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    border-radius: 6px;
    padding: 0.28rem 0.45rem;
    font-size: 0.62rem;
    font-weight: 700;
    min-height: 36px;
    cursor: pointer;
}
.deploy-tier-chip:hover { border-color: #94a3b8; }
.deploy-tier-chip:disabled { opacity: 0.45; cursor: not-allowed; }
.deploy-tier-input {
    width: 72px;
    min-height: 36px;
    border: 1px solid rgba(71, 85, 105, 0.85);
    background: rgba(2, 6, 23, 0.95);
    color: #f8fafc;
    border-radius: 6px;
    text-align: center;
    font-size: 0.72rem;
    margin-left: auto;
}
.deploy-tier-limit-hint {
    font-size: 0.58rem;
    color: #fbbf24;
    margin-top: 0.15rem;
}
.deploy-tier-add-btn {
    border: 1px dashed rgba(148, 163, 184, 0.6);
    background: transparent;
    color: #93c5fd;
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 36px;
}
.deploy-tier-add-btn:hover { border-color: #38bdf8; color: #7dd3fc; }

.deploy-summary-sticky { padding:.45rem .55rem; border-top:1px solid rgba(71,85,105,.7); background:rgba(2,6,23,.92); flex-shrink:0; }
.deploy-summary-top { font-size:.7rem; font-weight:700; color:#e2e8f0; }
.deploy-summary-mid { font-size:.68rem; color:#cbd5e1; margin-top:.15rem; }
.deploy-summary-risk { font-size:.66rem; margin-top:.15rem; font-weight:700; }
.deploy-summary-risk-green { color:#22c55e; }
.deploy-summary-risk-yellow { color:#eab308; }
.deploy-summary-risk-red { color:#ef4444; }

.deploy-help-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10020;
    background: rgba(2, 6, 23, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
}
.deploy-help-modal {
    width: min(360px, 100%);
    border-radius: 10px;
    border: 1px solid rgba(71, 85, 105, .8);
    background: rgba(15, 23, 42, .98);
    color: #e2e8f0;
    padding: .7rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
}
.deploy-help-modal h4 { margin: 0 0 .5rem; font-size: .82rem; }
.deploy-help-modal p { margin: 0 0 .42rem; font-size: .7rem; color: #cbd5e1; }
.deploy-help-close {
    margin-top: .2rem;
    border: 1px solid rgba(71, 85, 105, .9);
    background: rgba(30, 41, 59, .95);
    color: #e2e8f0;
    border-radius: 6px;
    font-size: .7rem;
    padding: .25rem .5rem;
}
.deploy-help-actions {
    margin-top: .3rem;
    display: flex;
    justify-content: flex-end;
    gap: .3rem;
}
.deploy-help-apply {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    border-color: #16a34a;
    color: #0f172a;
    font-weight: 700;
}

@media (min-width: 720px) {
    .deploy-modal-content { max-width: 720px; }
    .deploy-preset-grid:not(.deploy-preset-grid-icons) { grid-template-columns:1fr 1fr; }
}

.deploy-btn-cancel {
    min-height: 36px;
    min-width: 36px;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Orbitron', 'Rajdhani', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #94a3b8;
}

.deploy-btn-cancel:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: #94a3b8;
    color: #e2e8f0;
}

.deploy-btn-deploy {
    flex: 0 1 68%;
    min-height: 36px;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Orbitron', 'Rajdhani', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4);
}

.deploy-btn-deploy:hover:not(:disabled) {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.5);
    transform: translateY(-1px);
}

.deploy-btn-deploy:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.3);
}

/* Loading State */
.deploy-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.5rem;
    color: #94a3b8;
    font-size: 0.75rem;
}

.deploy-loading p {
    margin: 0;
}

.deploy-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- One-screen fit: phone and desktop --- */
@media (max-width: 480px) {
    .deploy-modal-overlay {
        padding: 0.15rem;
    }

    .deploy-modal-content {
        max-width: 100%;
        max-height: calc(100dvh - 0.3rem);
        max-height: calc(100vh - 0.3rem);
        border-radius: 6px;
    }

    .deploy-modal-body-inner {
        padding: var(--s-2) var(--s-3);
    }

    .deploy-general-card {
        width: 68px;
        height: 66px;
    }

    .deploy-general-avatar-img {
        width: 24px;
        height: 24px;
        max-width: 24px;
        max-height: 24px;
    }

    .deploy-general-avatar {
        font-size: 0.9rem;
    }

    .deploy-general-level-name {
        font-size: 0.48rem;
    }

    .deploy-btn-deploy {
        flex: 0 1 70%;
    }

    .deploy-qa-text { display: none; }
    .deploy-qa-btn {
        min-width: 34px;
        justify-content: center;
        padding: .2rem;
    }

    .unit-stats {
        flex-direction: column;
        gap: 0.1rem;
    }

    .deploy-preset-grid-icons .deploy-preset-tile::after {
        display: none;
    }
}

/* ========== Deploy modal v2 (prototype parity: gold / mono / 2-step wizard) ========== */
.deploy-v2-outer {
    margin: calc(-1 * var(--s-4));
    margin-bottom: calc(-1 * var(--s-4));
    min-height: min(82vh, 640px);
    font-family: "Courier New", Courier, monospace;
    box-sizing: border-box;
    background: radial-gradient(ellipse at 50% 20%, #120e04 0%, #080808 65%);
}

.deploy-v2-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    color: #888;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.deploy-v2-modal {
    background: linear-gradient(160deg, #131313, #0c0c0c);
    border: 1px solid #201c14;
    border-radius: 4px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(255, 160, 0, 0.05), 0 8px 60px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.deploy-v2-modal--narrow {
    max-width: 500px;
}

.deploy-v2-header {
    background: linear-gradient(90deg, #160f00, #0e0e0e);
    border-bottom: 1px solid #1e1800;
    padding: 13px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.deploy-v2-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.deploy-v2-header-icon {
    font-size: 20px;
    filter: sepia(1) saturate(3);
    line-height: 1;
}

.deploy-v2-header-kicker {
    color: #d4a832;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.deploy-v2-header-sub {
    color: #666666;
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-top: 1px;
}

.deploy-v2-header-steps {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.deploy-v2-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid #282828;
    background: transparent;
    color: inherit;
    font: inherit;
    transition: all 0.15s;
}

.deploy-v2-step-pill:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.deploy-v2-step-pill--active {
    border-color: #d4a832;
    background: rgba(212, 168, 50, 0.08);
}

.deploy-v2-step-pill--done {
    border-color: #3a6a2a;
    background: rgba(124, 186, 87, 0.04);
}

.deploy-v2-step-num {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
    background: #282828;
    color: #444444;
}

.deploy-v2-step-pill--active .deploy-v2-step-num {
    background: #d4a832;
    color: #000;
}

.deploy-v2-step-pill--done .deploy-v2-step-num {
    background: #7cba57;
    color: #000;
}

.deploy-v2-step-lbl {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #444444;
}

.deploy-v2-step-pill--active .deploy-v2-step-lbl {
    color: #d4a832;
}

.deploy-v2-step-pill--done .deploy-v2-step-lbl {
    color: #7cba57;
}

.deploy-v2-close {
    flex-shrink: 0;
    color: #888 !important;
}

.deploy-v2-target-strip {
    padding: 8px 14px;
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
}

.deploy-v2-target-strip .deploy-target-bar {
    font-size: 11px;
}

.deploy-v2-body {
    padding: 18px;
    overflow-y: auto;
    max-height: calc(82vh - 120px);
}

.deploy-v2-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.deploy-v2-section--divider {
    border-top: 1px solid #181818;
    margin-top: 4px;
    padding-top: 16px;
}

.deploy-v2-label {
    color: #555;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #181818;
    padding-bottom: 7px;
}

.deploy-v2-label-icon {
    font-size: 13px;
    letter-spacing: normal;
    text-transform: none;
}

.deploy-v2-generals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
}

@media (min-width: 900px) {
    .deploy-v2-generals-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.deploy-v2-general-card {
    position: relative;
    background: #111111;
    border: 1px solid #1e1e1e;
    border-radius: 3px;
    padding: 12px 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    color: inherit;
    font: inherit;
}

.deploy-v2-general-card--active {
    background: rgba(212, 168, 50, 0.08);
    border-color: #d4a832;
    box-shadow: 0 0 18px rgba(212, 168, 50, 0.15);
}

.deploy-v2-general-card--disabled {
    opacity: 1;
    cursor: not-allowed;
}

.deploy-v2-general-lock {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f87171;
}

.deploy-v2-general-card--placeholder {
    border-style: dashed;
}

.deploy-v2-general-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #171717;
    border: 1px solid #2b2b2b;
    color: #6b7280;
    font-size: 16px;
}

.deploy-v2-general-avatar-wrap {
    position: relative;
    margin-bottom: 6px;
}

.deploy-v2-general-avatar-wrap--hero {
    width: 100%;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
}

.deploy-v2-general-avatar {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
}

.deploy-v2-general-avatar--locked {
    filter: grayscale(1) brightness(0.55);
    opacity: 0.85;
}

.deploy-v2-general-avatar-lock {
    position: absolute;
    right: calc(50% - 34px);
    bottom: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(248, 113, 113, 0.75);
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.deploy-v2-general-name {
    color: #cccccc;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
}

.deploy-v2-general-name--muted {
    color: #6b7280;
}

.deploy-v2-general-desc {
    color: #666666;
    font-size: 9px;
    margin-bottom: 8px;
}

.deploy-v2-general-stamina {
    color: #9ca3af;
    font-size: 9px;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.deploy-v2-general-cap-row {
    background: #0e0e0e;
    border-radius: 2px;
    padding: 3px 5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deploy-v2-general-cap-lbl {
    color: #444444;
    font-size: 8px;
    letter-spacing: 0.1em;
}

.deploy-v2-general-cap-val {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.deploy-v2-general-bonus {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #c9a227;
}

.deploy-v2-check {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    background: #d4a832;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 900;
    color: #000;
}

.deploy-v2-duration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 520px) {
    .deploy-v2-duration-grid:not(.deploy-premium-dur-grid) {
        grid-template-columns: 1fr;
    }
}

.deploy-v2-duration-card {
    position: relative;
    background: #111111;
    border: 1px solid #1e1e1e;
    border-radius: 3px;
    padding: 16px 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    color: inherit;
    font: inherit;
}

.deploy-v2-duration-card--active {
    background: rgba(212, 168, 50, 0.08);
    border-color: #d4a832;
    box-shadow: 0 0 14px rgba(212, 168, 50, 0.15);
}

.deploy-v2-duration-emoji {
    font-size: 24px;
    margin-bottom: 5px;
}

.deploy-v2-duration-time {
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 3px;
}

.deploy-v2-duration-desc {
    color: #666666;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.deploy-v2-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid #181818;
}

.deploy-v2-btn-gold {
    background: linear-gradient(135deg, #b07820, #d4a832);
    color: #000;
    border: none;
    border-radius: 2px;
    padding: 9px 22px;
    font-weight: 900;
    font-size: 11px;
    cursor: pointer;
    letter-spacing: 0.1em;
    font-family: inherit;
}

.deploy-v2-btn-gold--off {
    opacity: 0.3;
    cursor: not-allowed;
}

.deploy-v2-step2 {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 14px;
    align-items: start;
}

@media (max-width: 767.98px) {
    .deploy-v2-step2 {
        grid-template-columns: 1fr;
    }

    .deploy-v2-aside {
        position: static !important;
    }
}

.deploy-v2-step2-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.deploy-v2-recap-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.deploy-v2-recap-pill {
    background: #111111;
    border: 1px solid #1e1e1e;
    border-radius: 3px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deploy-v2-recap-pill--grow {
    flex: 1;
    min-width: 200px;
}

.deploy-v2-recap-pill--duration {
    min-width: 90px;
    flex-direction: column;
    text-align: center;
    gap: 2px;
    justify-content: center;
}

.deploy-v2-recap-avatar {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.deploy-v2-recap-name {
    color: #cccccc;
    font-size: 11px;
    font-weight: 700;
}

.deploy-v2-recap-bonus {
    font-size: 10px;
    font-weight: 700;
}

.deploy-v2-bonus--atk {
    color: #ff5555;
}

.deploy-v2-bonus--cap {
    color: #ffaa00;
}

.deploy-v2-bonus--def {
    color: #44aaff;
}

.deploy-v2-recap-cap {
    margin-left: auto;
    text-align: right;
}

.deploy-v2-recap-cap-lbl {
    color: #444444;
    font-size: 8px;
    letter-spacing: 0.1em;
}

.deploy-v2-recap-cap-val {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.deploy-v2-recap-dur-emoji {
    font-size: 18px;
}

.deploy-v2-recap-dur-time {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.deploy-v2-recap-dur-desc {
    color: #666666;
    font-size: 9px;
    letter-spacing: 0.05em;
}

.deploy-v2-mode-toggle {
    display: flex;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #252525;
}

.deploy-v2-mode-btn {
    flex: 1;
    background: #111111;
    border: none;
    color: #666666;
    padding: 9px 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.deploy-v2-mode-btn--on {
    background: #161610;
    color: #d4a832;
    border-bottom-color: #d4a832;
}

.deploy-v2-preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.deploy-v2-preset-grid--typed {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
    .deploy-v2-preset-grid--typed {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .deploy-v2-preset-grid--typed {
        grid-template-columns: 1fr;
    }
}

.deploy-v2-preset-card {
    position: relative;
    text-align: left;
    background: #111111;
    border: 1px solid #1e1e1e;
    border-radius: 3px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.15s;
    color: inherit;
    font: inherit;
}

.deploy-v2-preset-card:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.deploy-v2-preset-card--active {
    background: rgba(212, 168, 50, 0.08);
    border-color: #d4a832;
    box-shadow: 0 0 14px rgba(212, 168, 50, 0.15);
}

.deploy-v2-preset-card--recommended:not(.deploy-v2-preset-card--active) {
    box-shadow: inset 0 0 0 1px rgba(124, 186, 87, 0.35);
}

.deploy-v2-preset-card--span {
    grid-column: 1 / -1;
}

.deploy-v2-preset-foot--muted {
    color: #555;
    font-size: 9px;
    letter-spacing: 0.04em;
}

.deploy-v2-preset-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.deploy-v2-preset-icon {
    font-size: 18px;
}

.deploy-v2-preset-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.deploy-v2-preset-sub {
    color: #666666;
    font-size: 10px;
}

.deploy-v2-preset-pills {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.deploy-v2-preset-foot {
    color: #666666;
    font-size: 10px;
}

.deploy-v2-preset-warn {
    color: #ff4444;
    margin-left: 6px;
}

.deploy-v2-unit-pill {
    border: 1px solid #444;
    border-radius: 2px;
    padding: 2px 6px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    font-size: 11px;
}

.deploy-v2-unit-pill--inf {
    border-color: #7cba57;
}

.deploy-v2-unit-pill--tnk {
    border-color: #c8902a;
}

.deploy-v2-unit-pill--air {
    border-color: #4da6e8;
}

.deploy-v2-unit-tier {
    color: #aaa;
    font-size: 9px;
}

.deploy-v2-unit-q {
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.deploy-v2-custom-wrap .deploy-section {
    margin-bottom: 0;
}

.deploy-v2-aside {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 0;
}

.deploy-v2-summary-card {
    background: #111111;
    border: 1px solid #1e1e1e;
    border-radius: 3px;
    padding: 14px;
}

.deploy-v2-summary-kicker {
    color: #666666;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.deploy-v2-cap-line {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666666;
    margin-bottom: 5px;
}

.deploy-v2-cap-line--sub {
    margin-top: 8px;
}

.deploy-v2-cap-ok {
    color: #7cba57;
    font-weight: 700;
}

.deploy-v2-cap-bad {
    color: #ff4444;
    font-weight: 700;
}

.deploy-v2-cap-bar {
    background: #1a1a1a;
    border-radius: 2px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.deploy-v2-cap-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.deploy-v2-cap-fill--ok {
    background: #7cba57;
}

.deploy-v2-cap-fill--warn {
    background: #ffaa00;
}

.deploy-v2-cap-fill--bad {
    background: #ff4444;
}

.deploy-v2-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.deploy-v2-stat-cell {
    background: #0e0e0e;
    border-radius: 2px;
    padding: 6px 8px;
}

.deploy-v2-stat-lbl {
    color: #444444;
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.deploy-v2-stat-val {
    color: #cccccc;
    font-size: 13px;
    font-weight: 900;
}

.deploy-v2-stat-val--orange {
    color: #ffaa00;
}

.deploy-v2-stat-val--green {
    color: #7cba57;
}

.deploy-v2-stat-val--blue {
    color: #4da6e8;
}

.deploy-v2-breakdown-lbl {
    color: #444444;
    font-size: 8px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.deploy-v2-breakdown-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0e0e0e;
    border-radius: 2px;
    padding: 5px 8px;
    margin-bottom: 4px;
    border-left: 2px solid #444;
}

.deploy-v2-breakdown-row--inf {
    border-left-color: #7cba57;
}

.deploy-v2-breakdown-row--tnk {
    border-left-color: #c8902a;
}

.deploy-v2-breakdown-row--air {
    border-left-color: #4da6e8;
}

.deploy-v2-bd-icon {
    font-size: 12px;
}

.deploy-v2-bd-lbl {
    color: #aaa;
    font-size: 10px;
    font-weight: 700;
    flex: 1;
}

.deploy-v2-bd-q {
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.deploy-v2-bd-res {
    color: #666666;
    font-size: 9px;
    text-align: right;
    line-height: 1.2;
}

.deploy-v2-breakdown-empty {
    color: #444444;
    font-size: 10px;
    text-align: center;
    padding: 10px 0;
    letter-spacing: 0.1em;
}

.deploy-v2-btn-deploy {
    width: 100%;
    border-radius: 2px;
    padding: 13px 0;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.15em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #444444;
}

.deploy-v2-btn-deploy:not(:disabled) {
    background: linear-gradient(135deg, #7a0000, #bb1e00, #e03000);
    color: #fff;
    border-color: #aa3300;
    box-shadow: 0 0 24px rgba(180, 40, 0, 0.4);
    cursor: pointer;
}

.deploy-v2-btn-deploy:disabled {
    cursor: not-allowed;
}

.deploy-v2-btn-ghost {
    width: 100%;
    background: transparent;
    color: #666666;
    border: 1px solid #252525;
    border-radius: 2px;
    padding: 9px 18px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.05em;
}

/* Success screen */
.deploy-v2-success-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.deploy-v2-success-medal {
    font-size: 52px;
}

.deploy-v2-success-title {
    color: #d4a832;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.25em;
}

.deploy-v2-success-sub {
    color: #666666;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.deploy-v2-success-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.deploy-v2-chip {
    border-radius: 2px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.deploy-v2-chip--gold {
    border-color: rgba(212, 168, 50, 0.2);
    background: rgba(212, 168, 50, 0.07);
    color: #d4a832;
}

.deploy-v2-chip--green {
    border-color: rgba(124, 186, 87, 0.2);
    background: rgba(124, 186, 87, 0.07);
    color: #7cba57;
}

.deploy-v2-chip--blue {
    border-color: rgba(77, 166, 232, 0.2);
    background: rgba(77, 166, 232, 0.07);
    color: #4da6e8;
}

.deploy-v2-chip--orange {
    border-color: rgba(255, 170, 0, 0.2);
    background: rgba(255, 170, 0, 0.07);
    color: #ffaa00;
}

.deploy-v2-success-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.deploy-v2-success-cost {
    color: #666666;
    font-size: 11px;
}

.deploy-v2-cost-food {
    color: #7cba57;
}

.deploy-v2-cost-oil {
    color: #4da6e8;
}

/* ========== Premium MMO deployment (command center) ========== */
.deploy-premium {
    position: relative;
    margin: calc(-1 * var(--s-4));
    margin-bottom: calc(-1 * var(--s-4));
    min-height: min(78dvh, 620px);
    background: radial-gradient(120% 80% at 50% 0%, #1a1c20 0%, #0b0c0e 45%, #060708 100%);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #c8cdd4;
    overflow: hidden;
}

/* Avoid SVG feTurbulence — it is very expensive on repaint/GPU. Light CSS grain only. */
.deploy-premium-noise {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0.045;
    background-image:
        repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04) 0 0.4px, transparent 0.5px 12px),
        repeating-radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0 0.4px, transparent 0.5px 10px);
    mix-blend-mode: overlay;
}

.deploy-premium-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    letter-spacing: 0.12em;
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
}

.deploy-premium-spinner {
    border-top-color: #c9a227 !important;
}

.deploy-premium-modal {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: 4px;
    background: linear-gradient(165deg, rgba(22, 24, 28, 0.98) 0%, rgba(12, 13, 16, 0.99) 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 24px 80px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    max-width: 920px;
    margin: 0 auto;
}

.deploy-premium-modal--narrow {
    max-width: 480px;
}

.deploy-premium-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: start;
    padding: 10px 12px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.07) 0%, transparent 55%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.deploy-premium-topbar-context {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.deploy-premium-topbar-trail {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
}

.deploy-premium-warline {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}

.deploy-premium-warline-vs {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #6b7280;
    text-transform: uppercase;
    flex-shrink: 0;
}

.deploy-premium-warline-sep {
    color: #4b5563;
    font-weight: 700;
    flex-shrink: 0;
    margin: 0 2px;
}

.deploy-premium-side-pick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
    color: #9ca3af;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.deploy-premium-side-pick:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
}

.deploy-premium-side-pick--on {
    border-color: rgba(201, 162, 39, 0.65);
    background: rgba(201, 162, 39, 0.12);
    color: #f3f4f6;
    box-shadow: 0 0 16px rgba(201, 162, 39, 0.12);
}

.deploy-premium-side-pick--on.deploy-premium-side-pick--atk {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.1);
}

.deploy-premium-side-pick--on.deploy-premium-side-pick--def {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.1);
}

.deploy-premium-side-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.deploy-premium-side-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9rem;
}

.deploy-premium-side-badge {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c9a227;
    padding: 1px 4px;
    border-radius: 2px;
    background: rgba(201, 162, 39, 0.14);
    flex-shrink: 0;
}

.deploy-premium-war-region {
    font-size: 11px;
    color: #c9a227;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10rem;
    flex-shrink: 1;
    min-width: 0;
}

.deploy-premium-side-warn {
    font-size: 10px;
    font-weight: 700;
    color: #f87171;
    letter-spacing: 0.04em;
}

.deploy-premium-side-confirm {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.deploy-premium-side-confirm-card {
    width: min(100%, 360px);
    padding: 18px 16px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: linear-gradient(180deg, #1a1414 0%, #121210 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.deploy-premium-side-confirm-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.deploy-premium-side-confirm-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: #fca5a5;
    letter-spacing: 0.04em;
}

.deploy-premium-side-confirm-text {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.45;
    color: #9ca3af;
}

.deploy-premium-side-confirm-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.deploy-premium-side-confirm-cancel,
.deploy-premium-side-confirm-danger {
    padding: 8px 14px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
}

.deploy-premium-side-confirm-cancel {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #d1d5db;
}

.deploy-premium-side-confirm-danger {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: #fff;
}

@media (max-width: 900px) {
    .deploy-premium-topbar {
        grid-template-columns: 1fr auto;
    }
}

.deploy-premium-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.deploy-premium-brand-mark {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 4px;
    color: #c9a227;
    font-size: 16px;
    background: rgba(201, 162, 39, 0.08);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.12);
}

.deploy-premium-brand-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #e8eaed;
}

.deploy-premium-brand-sub {
    font-size: 9px;
    color: #6b7280;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.deploy-premium-ops-target {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    align-items: center;
    min-width: 0;
    color: #9ca3af;
}

.deploy-premium-ops-sides {
    font-size: 12px;
    font-weight: 900;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deploy-premium-ops-region {
    font-size: 10px;
    color: #c9a227;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deploy-premium-ops-meta {
    grid-row: 1 / span 2;
    grid-column: 2;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    padding: 3px 7px;
    border-radius: 2px;
}

.deploy-premium-ops-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.deploy-premium-tag {
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    color: #9ca3af;
}

.deploy-premium-tag--war {
    border-color: rgba(220, 80, 70, 0.35);
    color: #f0a8a0;
    background: rgba(220, 80, 70, 0.08);
}

.deploy-premium-tag--ap {
    border-color: rgba(201, 162, 39, 0.35);
    color: #e6cf7a;
}

.deploy-premium-topbar-steps {
    display: flex;
    gap: 6px;
}

.deploy-premium-step-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

@media (max-width: 520px) {
    .deploy-premium-step-label {
        display: none;
    }

    .deploy-premium-topbar-steps .deploy-premium-step {
        padding: 4px 7px;
        min-width: 28px;
        justify-content: center;
    }
}

.deploy-premium-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.deploy-premium-step:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.deploy-premium-step--on {
    border-color: rgba(201, 162, 39, 0.55);
    color: #c9a227;
    box-shadow: 0 0 18px rgba(201, 162, 39, 0.12);
}

.deploy-premium-step--done {
    border-color: rgba(96, 165, 110, 0.4);
    color: #86c793;
}

.deploy-premium-step-i {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 10px;
}

.deploy-premium-step--on .deploy-premium-step-i {
    background: rgba(201, 162, 39, 0.25);
    color: #1a1a12;
}

.deploy-premium-x {
    color: #6b7280 !important;
}

.deploy-premium-resources {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.deploy-premium-resources .deploy-target-bar {
    font-size: 11px;
}

.deploy-premium-body {
    padding: 12px;
    max-height: calc(78dvh - 112px);
    overflow-y: auto;
}

@media (min-width: 861px) {
    .deploy-premium {
        min-height: 0;
    }

    .deploy-premium-body--step1 {
        overflow: hidden;
        max-height: calc(85dvh - 72px);
    }
}

.deploy-premium-step1-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: start;
}

.deploy-premium-step1-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
}

.deploy-premium-step1-sidebar {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    align-self: stretch;
}

.deploy-premium-step1-footer {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.deploy-premium-report--step1 {
    height: 100%;
    min-height: 0;
}

.deploy-premium-step1-commander {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deploy-premium-step1-portrait {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
}

.deploy-premium-step1-commander-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.deploy-premium-step1-commander-copy .deploy-premium-featured-name {
    margin: 0;
    font-size: 14px;
    line-height: 1.15;
}

.deploy-premium-step1-stamina {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 700;
}

.deploy-premium-report-grid--step1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
}

.deploy-premium-report-grid--step1 .deploy-premium-rg-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 8px;
    min-height: 32px;
}

.deploy-premium-report-grid--step1 .deploy-premium-rg-l {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 7px;
    line-height: 1.15;
    white-space: nowrap;
}

.deploy-premium-report-grid--step1 .deploy-premium-rg-v {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
}

.deploy-premium-report-grid--step1 .deploy-premium-rg-cell--crit {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-height: 0;
    padding: 7px 8px 8px;
}

.deploy-premium-report-grid--step1 .deploy-premium-rg-l--crit {
    flex: 0 0 auto;
}

.deploy-premium-rg-crit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.deploy-premium-rg-crit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 4px 3px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.22);
}

.deploy-premium-rg-crit-k {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    line-height: 1;
}

.deploy-premium-rg-crit-v {
    font-size: 11px;
    font-weight: 800;
    color: #e5e7eb;
    line-height: 1.1;
    white-space: nowrap;
}

.deploy-premium-report-grid--step1 .deploy-premium-stat-ic {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.deploy-premium-rg-cell {
    padding: 6px 7px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.28);
    border-radius: 3px;
    min-width: 0;
}

.deploy-premium-report-bonuses--step1 {
    padding-top: 2px;
}

.deploy-premium-analysis--step1 {
    margin-top: 10px;
    padding-top: 10px;
}

.deploy-premium-featured {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    margin: 10px 0 12px;
    padding: 10px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.06) 0%, rgba(0, 0, 0, 0.25) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (max-width: 600px) {
    .deploy-premium-featured {
        grid-template-columns: 1fr;
    }
}

.deploy-premium-featured-portrait img {
    width: 100%;
    max-width: 86px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.deploy-premium-featured-role {
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a227;
    font-weight: 800;
}

.deploy-premium-featured-name {
    font-size: 16px;
    font-weight: 800;
    color: #f3f4f6;
    margin: 4px 0 8px;
}

.deploy-premium-featured-desc {
    font-size: 11px;
    line-height: 1.45;
    color: #9ca3af;
    margin: 0 0 12px;
}

.deploy-premium-cap-bar2 {
    height: 4px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 2px;
    overflow: hidden;
}

.deploy-premium-cap-fill2 {
    height: 100%;
    background: linear-gradient(90deg, #5a9e6a, #c9a227);
    border-radius: 2px;
    transition: width 0.3s;
}

.deploy-premium-cap-lbl {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #6b7280;
    margin-top: 6px;
}

.deploy-premium-bonus-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
}

.deploy-premium-bonus-k {
    color: #6b7280;
    margin-right: 6px;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deploy-premium-gen-role {
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c9a227;
    margin-bottom: 4px;
    font-weight: 800;
}

.deploy-premium-gen .deploy-v2-label,
.deploy-premium-dur .deploy-v2-label,
.deploy-premium-dur-label {
    padding-bottom: 4px;
    font-size: 9px;
}

.deploy-premium-dur-grid {
    gap: 6px;
}

.deploy-premium-gen-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.deploy-premium-gen-card {
    min-height: 0;
    padding: 6px 4px 8px;
    display: grid;
    grid-template-rows: auto min-content min-content min-content;
    align-items: start;
    gap: 2px;
}

.deploy-premium-gen-card .deploy-v2-general-avatar-wrap--hero {
    min-height: 72px;
    margin-bottom: 2px;
}

.deploy-premium-gen-card .deploy-v2-general-avatar {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.deploy-premium-gen-card .deploy-v2-general-name {
    min-height: 22px;
    margin-bottom: 0;
    font-size: 9px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deploy-premium-gen-card .deploy-v2-general-stamina {
    margin-bottom: 2px;
    font-size: 8px;
}

.deploy-premium-gen-card .deploy-v2-general-bonus {
    font-size: 7px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deploy-premium-gen-card--active {
    border-color: rgba(201, 162, 39, 0.85) !important;
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.55), 0 0 24px rgba(201, 162, 39, 0.18), inset 0 0 18px rgba(201, 162, 39, 0.08) !important;
}

@media (max-width: 520px) {
    .deploy-premium-gen-card .deploy-v2-general-avatar-wrap--hero {
        min-height: 60px;
    }

    .deploy-premium-gen-card .deploy-v2-general-avatar {
        width: 48px;
        height: 48px;
    }
}

.deploy-premium-dur-card {
    text-align: center !important;
    padding: 6px 4px 7px !important;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border-radius: 4px;
    border-color: rgba(255, 255, 255, 0.09);
    background: linear-gradient(160deg, rgba(10, 13, 18, 0.95), rgba(7, 10, 14, 0.98));
}

.deploy-premium-dur-mode-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.deploy-premium-dur-time {
    color: #f3f4f6;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.deploy-premium-dur-name {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #c9a227;
    text-transform: uppercase;
}

.deploy-premium-dur-hints {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 3px;
}

.deploy-premium-dur-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    cursor: help;
}

.deploy-premium-dur-hint-icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    opacity: 0.92;
}

.deploy-premium-dur-hint--high {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.deploy-premium-dur-hint--medium {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.deploy-premium-dur-hint--low {
    border-color: rgba(74, 222, 128, 0.55);
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.2);
}

.deploy-premium-dur-card--active {
    border-color: rgba(201, 162, 39, 0.75) !important;
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.45), 0 0 14px rgba(201, 162, 39, 0.16);
}

@keyframes deploy-premium-pulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.45), 0 0 20px rgba(201, 162, 39, 0.08); }
    50% { box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.7), 0 0 32px rgba(201, 162, 39, 0.18); }
}

.deploy-premium-nav {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.deploy-premium-nav--step1 {
    align-items: end;
}

.deploy-premium-btn-continue {
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 3px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(135deg, #9a7b24, #c9a227);
    color: #121210;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.25);
}

.deploy-premium-btn-continue--off {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.deploy-premium-step2 {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 288px);
    gap: 12px;
    align-items: start;
}

@media (max-width: 860px) {
    .deploy-premium-step1-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
    }

    .deploy-premium-step1-main {
        grid-column: 1;
        grid-row: 1;
        gap: 8px;
    }

    .deploy-premium-step1-sidebar {
        display: block;
        grid-column: 1;
        grid-row: 2;
    }

    .deploy-premium-step1-footer {
        grid-column: 1;
        grid-row: 3;
    }

    .deploy-premium-report--step1 {
        padding: 8px;
    }

    .deploy-premium-step1-commander {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .deploy-premium-step1-stamina {
        display: none;
    }

    .deploy-premium-step2 {
        grid-template-columns: 1fr;
    }
}

.deploy-premium-recap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.deploy-premium-recap-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.deploy-premium-recap-card--cmd {
    flex: 1;
    min-width: 220px;
}

.deploy-premium-recap-av {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.deploy-premium-recap-role {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c9a227;
}

.deploy-premium-recap-name {
    font-size: 13px;
    font-weight: 800;
    color: #e5e7eb;
}

.deploy-premium-recap-capbox {
    margin-left: auto;
    text-align: right;
}

.deploy-premium-recap-cap-l {
    display: block;
    font-size: 8px;
    color: #6b7280;
    letter-spacing: 0.08em;
}

.deploy-premium-recap-cap-v {
    font-size: 16px;
    font-weight: 900;
    color: #f3f4f6;
}

.deploy-premium-recap-card--time {
    min-width: 160px;
}

.deploy-premium-recap-t {
    font-weight: 800;
    color: #f3f4f6;
}

.deploy-premium-recap-d {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
}

.deploy-premium-mode {
    display: flex;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
}

.deploy-premium-mode-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.deploy-premium-mode-btn--active {
    background: rgba(201, 162, 39, 0.12);
    color: #c9a227;
    box-shadow: inset 0 -2px 0 #c9a227;
}

.deploy-premium-inline-cta {
    display: none;
    border: 1px solid rgba(201, 162, 39, 0.24);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(16, 17, 20, 0.98), rgba(7, 8, 10, 0.98));
    padding: 8px;
    gap: 8px;
    align-items: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.deploy-premium-inline-scan {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 2px;
}

.deploy-premium-inline-k {
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9a227;
    font-weight: 900;
}

.deploy-premium-inline-v {
    font-size: 11px;
    color: #e5e7eb;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deploy-premium-inline-r {
    font-size: 10px;
    font-weight: 800;
}

.deploy-premium-inline-r--green,
.deploy-premium-risk--green {
    color: #86c793;
}

.deploy-premium-inline-r--yellow,
.deploy-premium-risk--yellow {
    color: #e6cf7a;
}

.deploy-premium-inline-r--red,
.deploy-premium-risk--red {
    color: #f0a8a0;
}

.deploy-premium-fast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 720px) {
    .deploy-premium-fast-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.deploy-premium-fast-card {
    position: relative;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: transform 0.12s, border-color 0.15s;
}

.deploy-premium-fast-card:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(201, 162, 39, 0.35);
}

.deploy-premium-fast-card:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.deploy-premium-fast-card--wide {
    grid-column: 1 / -1;
}

.deploy-premium-fast-card--selected {
    border-color: rgba(201, 162, 39, 0.65);
    box-shadow: 0 0 24px rgba(201, 162, 39, 0.12);
}

.deploy-premium-fast-card--hint:not(.deploy-premium-fast-card--selected) {
    box-shadow: inset 0 0 0 1px rgba(96, 165, 110, 0.25);
}

.deploy-premium-fast-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 20% 0%, rgba(201, 162, 39, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.deploy-premium-fast-card-inner {
    position: relative;
    padding: 10px;
}

.deploy-premium-fast-icon {
    margin-bottom: 6px;
}

.deploy-premium-fast-mode-ic {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.deploy-premium-unit-ic {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.deploy-premium-fast-pill {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.deploy-premium-fast-name {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #e5e7eb;
}

.deploy-premium-fast-desc {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.35;
    margin-top: 4px;
    min-height: 2.5em;
}

.deploy-premium-fast-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
}

.deploy-premium-fast-pwr {
    color: #f6c15c;
}

.deploy-premium-fast-res {
    color: #9ca3af;
    font-weight: 600;
}

.deploy-premium-fast-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.deploy-premium-fast-pill--inf { border-color: rgba(96, 165, 110, 0.4); color: #86c793; }
.deploy-premium-fast-pill--tnk { border-color: rgba(201, 162, 39, 0.4); color: #e6cf7a; }
.deploy-premium-fast-pill--air { border-color: rgba(96, 165, 250, 0.4); color: #93c5fd; }

.deploy-premium-fast-unavail {
    font-size: 10px;
    color: #dc7870;
    margin-top: 8px;
}

.deploy-premium-fast-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: #c9a227;
    color: #121210;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deploy-premium-custom {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    padding: 10px;
}

.deploy-premium-custom-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.deploy-premium-custom-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
}

.deploy-premium-clear-all {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 3px;
    border: 1px solid rgba(220, 80, 70, 0.35);
    background: rgba(220, 80, 70, 0.08);
    color: #f0a8a0;
    cursor: pointer;
}

.deploy-premium-custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 900px) {
    .deploy-premium-custom-grid {
        grid-template-columns: 1fr;
    }
}

.deploy-premium-branch {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    background: rgba(10, 11, 14, 0.65);
    padding: 8px;
}

.deploy-premium-branch--inf { border-top: 2px solid rgba(96, 165, 110, 0.5); }
.deploy-premium-branch--tnk { border-top: 2px solid rgba(201, 162, 39, 0.5); }
.deploy-premium-branch--air { border-top: 2px solid rgba(96, 165, 250, 0.5); }

.deploy-premium-branch-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.deploy-premium-branch-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.deploy-premium-branch-name {
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #e5e7eb;
}

.deploy-premium-branch-pool {
    margin-left: auto;
    font-size: 10px;
    color: #6b7280;
}

.deploy-premium-tier {
    padding: 7px;
    margin-bottom: 5px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.35);
}

.deploy-premium-tier--active {
    border-color: rgba(201, 162, 39, 0.25);
}

.deploy-premium-tier--locked {
    opacity: 0.45;
}

.deploy-premium-tier-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.deploy-premium-tier-badge {
    font-size: 10px;
    font-weight: 900;
    color: #c9a227;
    letter-spacing: 0.08em;
}

.deploy-premium-tier-meta {
    font-size: 10px;
    color: #6b7280;
}

.deploy-premium-tier-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.deploy-premium-qbtn {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.45);
    color: #e5e7eb;
    font-size: 16px;
    cursor: pointer;
}

.deploy-premium-qinput {
    width: 52px;
    height: 30px;
    text-align: center;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0a0b0d;
    color: #f3f4f6;
    font-weight: 700;
}

.deploy-premium-qmax {
    margin-left: auto;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    border: 1px solid rgba(201, 162, 39, 0.4);
    background: rgba(201, 162, 39, 0.12);
    color: #c9a227;
    cursor: pointer;
}

.deploy-premium-tier-cost {
    font-size: 9px;
    color: #6b7280;
    margin-top: 6px;
}

.deploy-premium-tier-limit {
    font-size: 9px;
    color: #dc7870;
    margin-top: 4px;
}

.deploy-premium-aside {
    position: sticky;
    top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deploy-premium-report {
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(22, 24, 28, 0.95) 0%, rgba(8, 9, 11, 0.98) 100%);
    padding: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.deploy-premium-report-k {
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a227;
    font-weight: 900;
    margin-bottom: 10px;
}

.deploy-premium-report-block {
    margin-bottom: 12px;
}

.deploy-premium-report-block:last-child {
    margin-bottom: 0;
}

.deploy-premium-report-block-l {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 800;
    margin-bottom: 6px;
}

.deploy-premium-report-cost-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 16px;
    font-weight: 900;
}

.deploy-premium-report-cost-row .deploy-premium-cost-rss {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.deploy-premium-report-power {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.deploy-premium-report-power-l {
    font-size: 10px;
    color: #9ca3af;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.deploy-premium-report-power-v {
    font-size: 23px;
    font-weight: 900;
    color: #f6c15c;
    text-shadow: 0 0 24px rgba(246, 193, 92, 0.25);
    line-height: 1;
}

.deploy-premium-rl {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin-bottom: 4px;
    color: #9ca3af;
}

.deploy-premium-ok { color: #86c793; font-weight: 700; }
.deploy-premium-bad { color: #f0a8a0; font-weight: 700; }

.deploy-premium-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 10px 0;
}

.deploy-premium-rg-cell--wide {
    grid-column: 1 / -1;
}

.deploy-premium-rg-l {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    color: #6b7280;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deploy-premium-rg-v {
    font-size: 12px;
    font-weight: 800;
    color: #e5e7eb;
}

.deploy-premium-stat-ic {
    width: 12px;
    height: 12px;
    object-fit: contain;
    opacity: 0.9;
}

.deploy-premium-rg-v--f { color: #86c793; }
.deploy-premium-rg-v--o { color: #93c5fd; }

.deploy-premium-rb-ul {
    margin: 6px 0 0;
    padding-left: 16px;
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.45;
}

.deploy-premium-slot {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    align-items: center;
    font-size: 10px;
    padding: 6px 8px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.35);
    margin-bottom: 4px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.deploy-premium-slot-ic {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.deploy-premium-slot--inf { border-left-color: #5a9e6a; }
.deploy-premium-slot--tnk { border-left-color: #c9a227; }
.deploy-premium-slot--air { border-left-color: #60a5fa; }

.deploy-premium-slot-q { font-weight: 900; color: #f3f4f6; }
.deploy-premium-slot-c { font-size: 9px; color: #6b7280; text-align: right; }

.deploy-premium-slots-empty {
    font-size: 10px;
    color: #6b7280;
    text-align: center;
    padding: 12px;
}

.deploy-premium-analysis {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.deploy-premium-analysis-h {
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 800;
    margin-bottom: 10px;
}

.deploy-premium-eff {
    display: flex;
    gap: 12px;
    align-items: center;
}

.deploy-premium-eff-ring {
    --p: 75;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: conic-gradient(#c9a227 calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.15);
}

.deploy-premium-eff-ring span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0c0d10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #c9a227;
}

.deploy-premium-eff-role {
    font-size: 12px;
    font-weight: 800;
    color: #e5e7eb;
}

.deploy-premium-eff-line {
    font-size: 10px;
    margin-top: 4px;
    line-height: 1.35;
}

.deploy-premium-eff--up { color: #86c793; }
.deploy-premium-eff--down { color: #f0a8a0; }

.deploy-premium-deploy {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(135deg, #7f1d1d, #b91c1c, #dc2626);
    color: #fff;
    box-shadow: 0 6px 28px rgba(220, 38, 38, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.deploy-premium-deploy:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.deploy-premium-deploy--inline {
    width: auto;
    min-width: 168px;
    padding: 11px 12px;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.deploy-premium-back {
    width: 100%;
    padding: 9px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #9ca3af;
    font-size: 11px;
    cursor: pointer;
}

/* Success */
.deploy-premium-success-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deploy-premium-h-kicker {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #c9a227;
}

.deploy-premium-success-body {
    padding: 28px;
    text-align: center;
}

.deploy-premium-success-title {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #c9a227;
}

.deploy-premium-success-sub {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 16px;
}

.deploy-premium-success-chips,
.deploy-premium-success-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.deploy-premium-chip {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.deploy-premium-chip--gold { border-color: rgba(201, 162, 39, 0.4); color: #c9a227; }
.deploy-premium-chip--green { border-color: rgba(96, 165, 110, 0.4); color: #86c793; }
.deploy-premium-chip--blue { border-color: rgba(96, 165, 250, 0.4); color: #93c5fd; }
.deploy-premium-chip--orange { border-color: rgba(246, 193, 92, 0.4); color: #f6c15c; }

.deploy-premium-pill {
    display: inline-flex;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
}

.deploy-premium-btn-primary {
    margin-top: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    font-weight: 800;
    background: linear-gradient(135deg, #9a7b24, #c9a227);
    color: #121210;
    cursor: pointer;
}

@media (max-width: 860px) {
    .deploy-premium {
        min-height: min(88dvh, 680px);
    }

    .deploy-premium-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 9px 10px;
        gap: 8px;
    }

    .deploy-premium-warline {
        gap: 4px;
    }

    .deploy-premium-side-name {
        max-width: 5.5rem;
        font-size: 10px;
    }

    .deploy-premium-side-badge {
        display: none;
    }

    .deploy-premium-war-region {
        font-size: 10px;
        max-width: 6.5rem;
    }

    .deploy-premium-topbar-steps {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .deploy-premium-body {
        padding: 10px;
        max-height: calc(88dvh - 88px);
    }

    .deploy-premium-inline-cta {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 4;
        margin-bottom: 10px;
    }

    .deploy-premium-aside .deploy-premium-deploy,
    .deploy-premium-aside .deploy-premium-back {
        display: none;
    }

    .deploy-premium-report {
        padding: 9px;
    }
}

@media (max-width: 640px) {
    .deploy-premium {
        margin: calc(-1 * var(--s-4));
        min-height: calc(100dvh - env(safe-area-inset-bottom, 0px));
    }

    .deploy-premium-modal {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .deploy-premium-brand-mark {
        width: 28px;
        height: 28px;
    }

    .deploy-premium-brand-title {
        font-size: 11px;
        letter-spacing: 0.16em;
    }

    .deploy-premium-ops-target {
        white-space: normal;
        line-height: 1.25;
    }

    .deploy-premium-step {
        flex: 1 0 auto;
        justify-content: center;
        min-height: 34px;
    }

    .deploy-premium-body {
        max-height: calc(100dvh - 126px);
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .deploy-premium-featured {
        grid-template-columns: 64px 1fr;
        gap: 10px;
        padding: 9px;
    }

    .deploy-premium-featured-portrait img {
        max-width: 64px;
    }

    .deploy-premium-featured-desc {
        display: none;
    }

    .deploy-premium-cap-lbl,
    .deploy-premium-bonus-list {
        font-size: 9px;
    }

    .deploy-premium-dur-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .deploy-premium-dur-card {
        padding: 5px 3px 6px !important;
    }

    .deploy-premium-dur-mode-icon {
        width: 20px;
        height: 20px;
    }

    .deploy-premium-dur-time {
        font-size: 11px;
    }

    .deploy-premium-dur-name {
        font-size: 9px;
    }

    .deploy-premium-dur-hint {
        width: 20px;
        height: 20px;
    }

    .deploy-premium-dur-hint-icon {
        width: 11px;
        height: 11px;
    }

    .deploy-premium-fast-grid {
        grid-template-columns: 1fr;
    }

    .deploy-premium-fast-card-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 6px 9px;
        align-items: start;
    }

    .deploy-premium-fast-mode-ic {
        width: 32px;
        height: 32px;
    }

    .deploy-premium-fast-icon {
        grid-row: span 3;
        margin-bottom: 0;
    }

    .deploy-premium-fast-stats,
    .deploy-premium-fast-pills,
    .deploy-premium-fast-unavail {
        grid-column: 2;
        margin-top: 0;
    }

    .deploy-premium-custom-head,
    .deploy-premium-branch-head,
    .deploy-premium-tier-controls {
        align-items: stretch;
    }

    .deploy-premium-custom-head {
        gap: 8px;
    }

    .deploy-premium-clear-all {
        min-height: 34px;
    }

    .deploy-premium-tier-top {
        gap: 6px;
    }

    .deploy-premium-qbtn {
        width: 34px;
        height: 34px;
    }

    .deploy-premium-qinput {
        width: 62px;
        height: 34px;
        font-size: 16px;
    }

    .deploy-premium-qmax {
        min-height: 34px;
        padding-inline: 12px;
    }

    .deploy-premium-report-power-v {
        font-size: 20px;
    }

    .deploy-premium-eff-ring {
        width: 52px;
        height: 52px;
    }

    .deploy-premium-eff-ring span {
        width: 40px;
        height: 40px;
        font-size: 11px;
    }

    .deploy-premium-slot {
        grid-template-columns: auto 1fr auto;
    }

    .deploy-premium-slot-c {
        grid-column: 2 / -1;
        text-align: left;
    }

    .deploy-premium-deploy--inline {
        min-width: 132px;
        padding: 10px;
    }
}

@media (max-width: 420px) {
    .deploy-premium-inline-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .deploy-premium-deploy--inline {
        width: 100%;
    }

    .deploy-premium-featured {
        grid-template-columns: 1fr;
    }

    .deploy-premium-featured-portrait {
        display: none;
    }

    .deploy-premium-recap-card--cmd,
    .deploy-premium-recap-card--time {
        min-width: 100%;
    }

    .deploy-premium-report-grid {
        grid-template-columns: 1fr;
    }

    .deploy-premium-rg-cell--wide {
        grid-column: auto;
    }
}
