/* ============================================
   PROFESSIONAL DECK BUILDER
   Stacked Card View + Streamlined Sell System
   Inspired by Hearthstone/Runeterra deck builders
   ============================================ */

/* === CSS Variables === */
:root {
    --deck-item-height: 36px;
    --deck-item-height-lg: 42px;
    --cost-badge-size: 28px;
    --quantity-badge-size: 24px;
    --deck-list-bg: rgba(10, 10, 25, 0.95);
    --deck-item-bg: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    --deck-item-hover: linear-gradient(90deg, rgba(212,168,87,0.2) 0%, rgba(212,168,87,0.05) 100%);
    --rarity-common: #9ca3af;
    --rarity-uncommon: #22c55e;
    --rarity-rare: #3b82f6;
    --rarity-legendary: #f59e0b;
}

/* ============================================
   DECK BUILDER LAYOUT OVERRIDE
   ============================================ */

/* Two-column layout: Collection (left) | Deck + Stats (right) */
.deck-builder-layout.pro-view {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    padding: 16px 20px;
    height: calc(100vh - 120px);
}

@media (min-width: 1600px) {
    .deck-builder-layout.pro-view {
        grid-template-columns: 1fr 420px;
    }
}

/* Collection Panel - Full Width Left */
.deck-builder-layout.pro-view .deck-builder-collection-panel {
    grid-column: 1;
    height: 100%;
    overflow: hidden;
}

/* Right Side: Deck + Stats Combined */
.deck-builder-layout.pro-view .deck-right-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    overflow: hidden;
}

/* Hide middle panel in pro view */
.deck-builder-layout.pro-view .deck-builder-deck-panel:not(.pro-deck-panel) {
    display: none;
}

/* ============================================
   PRO DECK PANEL - STACKED CARD VIEW
   ============================================ */

.pro-deck-panel {
    background: var(--deck-list-bg);
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* Deck Header */
.pro-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(212,168,87,0.15) 0%, rgba(212,168,87,0.05) 100%);
    border-bottom: 1px solid var(--gold-border);
}

.pro-deck-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-deck-title h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin: 0;
    text-shadow: 0 0 10px var(--gold-glow);
}

.pro-deck-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pro-deck-count.incomplete {
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.pro-deck-count.complete {
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.pro-deck-count.overfull {
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.4);
    animation: pulse-error 1.5s infinite;
}

/* Deck Actions */
.pro-deck-actions {
    display: flex;
    gap: 8px;
}

.pro-deck-btn {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pro-deck-btn:hover {
    background: rgba(212, 168, 87, 0.2);
    border-color: var(--gold-border);
    color: var(--gold-primary);
}

.pro-deck-btn.primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
    border-color: var(--gold-primary);
    color: #000;
    font-weight: 600;
}

.pro-deck-btn.primary:hover {
    box-shadow: 0 0 15px var(--gold-glow);
}

.pro-deck-btn.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.pro-deck-btn.danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

/* ============================================
   STACKED DECK LIST
   ============================================ */

.pro-deck-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    min-height: 0;
}

.pro-deck-list::-webkit-scrollbar {
    width: 6px;
}

.pro-deck-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.pro-deck-list::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 3px;
}

/* Empty State */
.pro-deck-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    text-align: center;
    padding: 40px 20px;
}

.pro-deck-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.pro-deck-empty-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pro-deck-empty-text {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 200px;
    line-height: 1.5;
}

/* Cost Group Headers */
.deck-cost-group {
    margin-bottom: 4px;
}

.deck-cost-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 6px;
    margin-bottom: 4px;
    border-left: 3px solid var(--blue-primary);
}

.deck-cost-header .cost-value {
    font-weight: 700;
    font-size: 14px;
    color: var(--blue-light);
}

.deck-cost-header .cost-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* ============================================
   DECK CARD ITEM - THE MAIN COMPONENT
   ============================================ */

.deck-card-item {
    display: flex;
    align-items: center;
    height: var(--deck-item-height);
    padding: 0 10px 0 0;
    margin-bottom: 2px;
    background: var(--deck-item-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.deck-card-item:hover {
    background: var(--deck-item-hover);
    border-color: var(--gold-border);
    transform: translateX(4px);
}

.deck-card-item:active {
    transform: translateX(2px) scale(0.99);
}

/* Rarity Stripe */
.deck-card-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--rarity-common);
}

.deck-card-item.uncommon::before { background: var(--rarity-uncommon); }
.deck-card-item.rare::before { background: var(--rarity-rare); }
.deck-card-item.legendary::before {
    background: linear-gradient(180deg, var(--rarity-legendary), #fbbf24);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Cost Badge */
.deck-card-cost {
    width: var(--cost-badge-size);
    height: var(--cost-badge-size);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90e2 0%, #2d5a8a 100%);
    border-radius: 6px;
    margin-left: 8px;
    margin-right: 10px;
    font-weight: 700;
    font-size: 13px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Card Art Thumbnail */
.deck-card-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    margin-right: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Card Name */
.deck-card-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

/* Legendary cards get gold name */
.deck-card-item.legendary .deck-card-name {
    color: var(--gold-primary);
    text-shadow: 0 0 10px var(--gold-glow);
}

/* Card Type Icon */
.deck-card-type-icon {
    font-size: 14px;
    margin-right: 8px;
    opacity: 0.7;
}

/* Quantity Badge */
.deck-card-quantity {
    width: var(--quantity-badge-size);
    height: var(--quantity-badge-size);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    color: var(--gold-primary);
    border: 1px solid var(--gold-border);
    flex-shrink: 0;
}

.deck-card-quantity.max {
    background: rgba(212, 168, 87, 0.3);
    box-shadow: 0 0 8px var(--gold-glow);
}

/* Remove Button (appears on hover) */
.deck-card-remove {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
}

.deck-card-item:hover .deck-card-remove {
    right: 8px;
    opacity: 1;
}

.deck-card-remove:hover {
    background: #ef4444;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* ============================================
   DECK CURVE MINI (Integrated in deck panel)
   ============================================ */

.pro-deck-curve {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 4px;
}

.curve-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 30px;
}

.curve-bar-fill {
    width: 100%;
    min-height: 4px;
    max-height: 50px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-primary));
    border-radius: 3px 3px 0 0;
    transition: height 0.3s ease;
    box-shadow: 0 0 8px var(--gold-glow);
}

.curve-bar-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ============================================
   CARD HOVER PREVIEW
   ============================================ */

.deck-card-preview {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9) translateY(10px);
    transition: all 0.2s ease;
}

.deck-card-preview.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.deck-card-preview-inner {
    width: 220px;
    background: linear-gradient(145deg, rgba(25, 25, 50, 0.98), rgba(15, 15, 35, 0.98));
    border: 2px solid var(--gold-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px var(--gold-glow);
}

.preview-card-image {
    width: 100%;
    aspect-ratio: 5/7;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.preview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.preview-card-name {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-primary);
}

.preview-card-cost-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90e2, #2d5a8a);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.preview-card-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
}

.preview-stat {
    text-align: center;
}

.preview-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-primary);
}

.preview-stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.preview-card-effect {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    border-left: 2px solid var(--gold-border);
}

/* ============================================
   PRO DECK STATS PANEL
   ============================================ */

.pro-deck-stats {
    background: linear-gradient(145deg, rgba(20, 20, 45, 0.95), rgba(15, 15, 35, 0.98));
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    padding: 16px;
    flex-shrink: 0;
}

.pro-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.pro-stat-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pro-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 0 10px var(--gold-glow);
}

.pro-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Type Distribution */
.pro-type-dist {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.type-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.type-badge.summons {
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.type-badge.spells {
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.type-badge.events {
    border-color: rgba(168, 85, 247, 0.3);
    color: #a78bfa;
}

.type-badge-count {
    font-weight: 700;
}

/* ============================================
   SELL EXTRAS INTERFACE
   ============================================ */

.sell-extras-panel {
    background: linear-gradient(145deg, rgba(20, 20, 45, 0.95), rgba(15, 15, 35, 0.98));
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    overflow: hidden;
}

.sell-extras-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.05));
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.sell-extras-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sell-extras-title h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fca5a5;
    margin: 0;
}

.sell-extras-title .coin-icon {
    font-size: 20px;
}

.sell-extras-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sell-extras-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Sell Summary Bar */
.sell-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sell-selection-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.sell-selection-count {
    font-weight: 700;
    color: var(--gold-primary);
}

.sell-total-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-primary);
}

.sell-total-value .coin-icon {
    font-size: 18px;
}

/* Quick Actions */
.sell-quick-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sell-quick-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sell-quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-border);
    color: var(--text-primary);
}

.sell-quick-btn.active {
    background: rgba(212, 168, 87, 0.2);
    border-color: var(--gold-border);
    color: var(--gold-primary);
}

/* Sell Card List */
.sell-card-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.sell-card-list::-webkit-scrollbar {
    width: 6px;
}

.sell-card-list::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.5);
    border-radius: 3px;
}

/* Sell Card Item */
.sell-card-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sell-card-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.sell-card-item.selected {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.4);
}

.sell-card-item.protected {
    opacity: 0.5;
    cursor: not-allowed;
}

.sell-card-item.protected:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: transparent;
}

/* Checkbox */
.sell-card-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

.sell-card-item.protected .sell-card-checkbox {
    cursor: not-allowed;
}

/* Card Info */
.sell-card-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sell-card-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.sell-card-details {
    flex: 1;
    min-width: 0;
}

.sell-card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sell-card-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sell-card-rarity {
    text-transform: uppercase;
    font-weight: 600;
}

.sell-card-rarity.common { color: var(--rarity-common); }
.sell-card-rarity.uncommon { color: var(--rarity-uncommon); }
.sell-card-rarity.rare { color: var(--rarity-rare); }
.sell-card-rarity.legendary { color: var(--rarity-legendary); }

/* Quantity & Value */
.sell-card-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 12px;
}

.sell-qty-owned {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.sell-qty-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sell-card-value {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(212, 168, 87, 0.2);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-primary);
}

.sell-card-value .coin-icon {
    font-size: 14px;
}

/* Protection Badge */
.protection-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    font-size: 10px;
    color: #a78bfa;
    margin-left: 8px;
}

.protection-badge .protection-icon {
    font-size: 12px;
}

/* Confirm Section */
.sell-confirm-section {
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sell-confirm-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sell-confirm-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

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

.sell-confirm-btn .confirm-amount {
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    font-size: 14px;
}

/* No Extras Message */
.sell-no-extras {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.sell-no-extras-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.sell-no-extras-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.sell-no-extras-text {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 250px;
    line-height: 1.5;
}

/* ============================================
   COLLECTION GRID ENHANCEMENTS
   ============================================ */

/* Larger cards in collection when in pro view */
.pro-view .deck-builder-collection-panel .card-list.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

/* Card add animation */
@keyframes cardAdded {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); box-shadow: 0 0 20px var(--gold-glow); }
    100% { transform: scale(1); }
}

.card.just-added {
    animation: cardAdded 0.3s ease;
}

/* Card in deck indicator */
.card.in-deck::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #000;
    font-weight: 700;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.card.in-deck[data-deck-count="1"]::after { content: '1'; }
.card.in-deck[data-deck-count="2"]::after { content: '2'; }
.card.in-deck[data-deck-count="3"]::after { content: '3'; }

/* Max copies indicator */
.card.max-copies {
    opacity: 0.6;
}

.card.max-copies::before {
    content: 'MAX';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-primary);
    z-index: 5;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1200px) {
    .deck-builder-layout.pro-view {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 1024px) {
    .deck-builder-layout.pro-view {
        grid-template-columns: 1fr;
    }

    .deck-builder-layout.pro-view .deck-right-panel {
        order: -1;
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .deck-card-item {
        height: 40px;
    }

    .deck-card-thumb {
        display: none;
    }

    .pro-deck-actions {
        flex-wrap: wrap;
    }

    .pro-deck-btn {
        flex: 1;
        min-width: 80px;
    }
}
