/* Base Styles - Import Foundation Files */
@import url('styles/base/reset.css?v=e3896eb');

/* Layout Components */
@import url('styles/layout/container.css?v=e3896eb');
@import url('styles/layout/header.css?v=e3896eb');
@import url('styles/layout/footer.css?v=e3896eb');

/* Card Display Components */
@import url('styles/components/card-views.css?v=e3896eb');
@import url('styles/components/loading-states.css?v=e3896eb');
@import url('styles/components/card-modal.css?v=e3896eb');
@import url('styles/components/profile-modal.css?v=e3896eb');
@import url('styles/components/hud-segmented.css?v=e3896eb');
@import url('styles/components/view-chips.css?v=e3896eb');

/* Page-Specific Styles */
@import url('styles/pages/admin-page.css?v=e3896eb');
@import url('styles/pages/creators-page.css?v=e3896eb');

/* Search and Filter Section */
.search-filter-section {
    background: var(--filter-bg);
    padding: 25px 25px 0 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 15px;
}

.search-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
}

.search-btn {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #2980b9;
}

.filter-toggle-btn {
    padding: 12px 20px;
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-toggle-btn:hover {
    background-color: #7f8c8d;
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
    margin-top: 15px;
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.filter-select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    background-color: var(--bg-section, #0f140d);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3498db;
}

.clear-btn, .toggle-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.clear-btn {
    background-color: #e74c3c;
    color: white;
}

.clear-btn:hover {
    background-color: #c0392b;
}

.toggle-btn {
    background-color: #f39c12;
    color: white;
}

.toggle-btn:hover {
    background-color: #e67e22;
}

.toggle-btn.active {
    background-color: #27ae60;
}

.toggle-btn.active:hover {
    background-color: #229954;
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: transparent;
    border-radius: 2px;
    box-shadow: none;
}

#resultsCount {
    font-weight: 600;
    color: #555;
}

.view-options {
    display: flex;
    gap: 15px;
}

.view-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* ============================================
   VIEW MENU DROPDOWN (Card Browser)
   ============================================ */
.browser-view-menu-container {
    position: relative;
}

.view-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--surface-secondary, #f5f5f5);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary, #333);
    cursor: pointer;
    transition: all 0.2s;
}

.view-menu-btn:hover {
    background: var(--surface-tertiary, #e8e8e8);
    border-color: var(--border-color-hover, #ccc);
}

.view-menu-btn svg {
    width: 16px;
    height: 16px;
}

.view-menu-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: var(--dropdown-bg, var(--surface-primary, white));
    border: 1px solid var(--dropdown-border, var(--border-primary, #e0e0e0));
    border-radius: 8px;
    box-shadow: var(--dropdown-shadow, 0 4px 20px rgba(0, 0, 0, 0.15));
    z-index: 1000;
    overflow: hidden;
}

.view-menu-section {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.view-menu-section:last-child {
    border-bottom: none;
}

.view-menu-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary, #999);
    margin-bottom: 8px;
}

.view-menu-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.view-menu-option {
    padding: 5px 8px;
    background: var(--surface-secondary, #f5f5f5);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-primary, #333);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.view-menu-option:hover {
    background: var(--surface-tertiary, #e8e8e8);
}

.view-menu-option.active {
    background: var(--color-primary, #3498db);
    border-color: var(--color-primary, #3498db);
    color: white;
}

.view-menu-select {
    width: 100%;
    padding: 6px 8px;
    background: var(--surface-secondary, #f5f5f5);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-primary, #333);
    cursor: pointer;
}

.view-menu-select:focus {
    outline: none;
    border-color: var(--color-primary, #3498db);
}

.view-menu-sort-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.view-menu-sort-row .view-menu-select {
    flex: 1;
}

.view-sort-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--surface-secondary, #f5f5f5);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-primary, #333);
    cursor: pointer;
    transition: all 0.15s;
}

.view-sort-btn:hover {
    background: var(--surface-tertiary, #e8e8e8);
}

.view-zoom-row {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.view-zoom-row .view-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--surface-secondary, #f5f5f5);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #333);
    cursor: pointer;
    transition: all 0.15s;
}

.view-zoom-row .view-zoom-btn:hover:not(:disabled) {
    background: var(--surface-tertiary, #e8e8e8);
}

.view-zoom-row .view-zoom-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   MOBILE VIEW TOOLBAR (Card Browser)
   Tappable chips for view-mode/sort/alt-art/collection that open a shared
   action sheet, plus an inline +/- size stepper. The desktop "View" dropdown
   is hidden on mobile — the chips fully replace it.
   ============================================ */
.mobile-view-toolbar {
    display: none;
}

.mobile-action-sheet {
    display: none;
}

@media (max-width: 768px) {
    /* Hide the desktop View button entirely — chips cover all its options. */
    .browser-view-menu-container {
        display: none;
    }

    /* Mobile toolbar lives between the results count line and the grid. */
    .mobile-view-toolbar {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px 12px;
    }

    /* Horizontally scrollable chip row. */
    .mobile-view-chips {
        display: flex;
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-view-chips::-webkit-scrollbar {
        display: none;
    }

    /* Pill chip with current value + caret. */
    .mobile-chip {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        flex: 0 0 auto;
        background: var(--surface-tertiary, rgba(120, 120, 128, 0.12));
        border: none;
        border-radius: 9px;
        padding: 7px 10px;
        font-size: 13px;
        font-weight: 500;
        color: var(--text-primary, #1f2733);
        cursor: pointer;
        white-space: nowrap;
        max-width: 180px;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-chip:active {
        background: var(--surface-secondary, rgba(120, 120, 128, 0.2));
    }

    .mobile-chip-label {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-chip-arrow {
        font-size: 11px;
        opacity: 0.7;
    }

    /* Size stepper — only shown when grid view is active (JS toggles .hidden). */
    .mobile-size-stepper {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        background: var(--surface-tertiary, rgba(120, 120, 128, 0.12));
        border-radius: 9px;
        padding: 2px;
    }

    .mobile-size-btn {
        width: 32px;
        height: 30px;
        background: transparent;
        border: none;
        border-radius: 7px;
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary, #1f2733);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-size-btn:active:not(:disabled) {
        background: var(--card-bg, #ffffff);
    }

    .mobile-size-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

    /* Tighten the results-info row on mobile (overrides the column-stack
       default further up — keep it on one row, no card chrome). */
    .results-info {
        flex-direction: row;
        gap: 8px;
        text-align: left;
        padding: 10px 12px 0;
        margin-bottom: 0;
        background: transparent;
        box-shadow: none;
    }

    /* ===== Shared action sheet (view / sort / alt-art / collection) ===== */
    .mobile-action-sheet {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 2000;
    }

    .mobile-action-sheet-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.32);
        animation: mvtBackdropFade 0.22s ease;
    }

    .mobile-action-sheet-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--surface-primary, #fff);
        border-radius: 16px 16px 0 0;
        padding: 10px 0 calc(env(safe-area-inset-bottom, 0px) + 14px);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
        animation: mvtSheetSlideUp 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        max-height: 80vh;
        overflow-y: auto;
    }

    body.dark-theme .mobile-action-sheet-panel {
        background: var(--surface-secondary, #1f2024);
    }

    .mobile-action-sheet-grabber {
        width: 38px;
        height: 4px;
        margin: 6px auto 10px;
        border-radius: 2px;
        background: rgba(120, 120, 128, 0.4);
    }

    .mobile-action-sheet-header {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-secondary, #6b7280);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 4px 18px 8px;
    }

    .mobile-action-sheet-options {
        display: flex;
        flex-direction: column;
    }

    .mobile-action-option {
        background: transparent;
        border: none;
        text-align: left;
        padding: 14px 18px;
        font-size: 16px;
        color: var(--text-primary, #1f2733);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-action-option:active {
        background: var(--surface-tertiary, rgba(120, 120, 128, 0.12));
    }

    .mobile-action-option.active {
        color: var(--color-primary, #3498db);
        font-weight: 600;
    }

    .mobile-action-option.active::after {
        content: '✓';
        float: right;
        font-weight: 700;
    }

    .mobile-action-sheet-divider {
        height: 1px;
        background: var(--border-color, rgba(0, 0, 0, 0.08));
        margin: 6px 0;
    }

    .mobile-sort-direction-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: transparent;
        border: none;
        padding: 14px 18px;
        font-size: 16px;
        color: var(--text-primary, #1f2733);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-sort-direction-row:active {
        background: var(--surface-tertiary, rgba(120, 120, 128, 0.12));
    }

    .mobile-sort-direction-value {
        color: var(--color-primary, #3498db);
        font-weight: 600;
    }

    @keyframes mvtSheetSlideUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

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

/* Responsive Design */
/* Note: Card grid sizing is now controlled by CSS variables for zoom functionality.
   See card-views.css for --card-grid-min-width and --card-grid-gap variables. */

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: row;
        gap: 5px;
        flex-wrap: nowrap;
    }

    .search-input {
        flex: 1;
        min-width: 0;
        padding: 10px;
        font-size: 14px;
    }

    .search-btn {
        padding: 10px 12px;
        white-space: nowrap;
        font-size: 14px;
        flex-shrink: 0;
    }

    .filter-toggle-btn {
        padding: 10px 12px;
        flex-shrink: 0;
    }

    .filter-container {
        grid-template-columns: 1fr;
    }
    
    .results-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hide stats on mobile to simplify card display */
    .card-grid .card-stats {
        display: none;
    }
    
    .card-grid.list-view .card-item {
        flex-direction: column;
        text-align: center;
    }
    
    .card-grid.list-view .card-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 160px;
        height: 224px; /* 160px * (88/63) = proper aspect ratio height */
    }
    
    .text-view-table {
        font-size: 12px;
        min-width: 100%;
    }

    .text-view-table th,
    .text-view-table td {
        padding: 6px 4px;
    }

    .text-view-table .card-name {
        max-width: none;
    }

    /* Hide all columns except card number, card name, and price on mobile */
    .text-view-table th:not(:nth-child(1)):not(:nth-child(2)):not(:last-child),
    .text-view-table td:not(:nth-child(1)):not(:nth-child(2)):not(:last-child) {
        display: none;
    }
}

/* Standardized Page Header - Used by all pages */
.page-header {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--bg-section, #0f140d);
    color: var(--text-primary);
    border-radius: 2px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    text-align: left;
}

.page-header h1 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: var(--text-primary);
}

.page-description {
    font-size: var(--font-size-lg);
    margin: 0;
    color: var(--text-secondary);
    opacity: 1;
}

/* Page actions positioned in lower right */
.page-actions {
    position: absolute;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Page header with actions layout */
.page-header.with-actions {
    min-height: 120px;
    padding-bottom: calc(var(--spacing-xl) + 50px); /* Extra space for actions */
}

/* Standardized Filter Section */
.search-filter-section, .deck-filters, .filter-container {
    background: var(--filter-bg);
    padding: var(--filter-padding);
    margin-bottom: var(--spacing-xl);
}

.search-container {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.search-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
}

.search-btn, .btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    border: none;
    border-radius: 0 !important; /* Force remove any rounded corners */
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;

    /* Remove all shadows for flat appearance */
    box-shadow: none;

    /* Sharp beveled corners - cut off top-left and bottom-right */
    clip-path: polygon(
        10px 0%,       /* Start 10px from top-left */
        100% 0%,       /* Top edge */
        100% calc(100% - 10px), /* Right edge to 10px before bottom-right */
        calc(100% - 10px) 100%, /* Bottom edge starting 10px from bottom-right */
        0% 100%,       /* Bottom-left corner (normal) */
        0% 10px        /* Left edge starting 10px from top-left */
    ) !important;
}

.search-btn:hover, .btn-primary:hover {
    background: var(--btn-primary-bg-hover);
    box-shadow: none;
    transform: none;
}

.search-btn:active, .btn-primary:active {
    background: var(--btn-primary-bg-hover);
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-color);
    border: none;
    border-radius: 0 !important; /* Force remove any rounded corners */
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;

    /* Remove all shadows for flat appearance */
    box-shadow: none;

    /* Sharp beveled corners - cut off top-left and bottom-right */
    clip-path: polygon(
        10px 0%,       /* Start 10px from top-left */
        100% 0%,       /* Top edge */
        100% calc(100% - 10px), /* Right edge to 10px before bottom-right */
        calc(100% - 10px) 100%, /* Bottom edge starting 10px from bottom-right */
        0% 100%,       /* Bottom-left corner (normal) */
        0% 10px        /* Left edge starting 10px from top-left */
    ) !important;
}

.btn-secondary:hover {
    background: var(--btn-secondary-bg-hover);
    box-shadow: none;
    transform: none;
}

.btn-secondary:active {
    background: var(--btn-secondary-bg-hover);
    box-shadow: none;
    transform: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 200px;
}

.filter-group label {
    font-weight: 500;
    color: var(--color-secondary);
    font-size: var(--font-size-sm);
}

.filter-select {
    padding: var(--spacing-sm);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    background: var(--color-white);
}

@media (max-width: 768px) {
    .page-header {
        padding: 30px 15px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .coming-soon {
        padding: 40px 20px;
        margin: 0 15px;
    }

    .coming-soon-icon {
        font-size: 3rem;
    }
}

.auth-required-message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.auth-card {
    background: var(--bg-section, #0f140d);
    border-radius: 2px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--border-color);
}

.auth-card h2 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.auth-card p {
    margin: 0 0 30px 0;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.5;
}

.auth-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-actions .btn-primary,
.auth-actions .btn-secondary {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.auth-actions .btn-primary {
    background: #5865f2;
    color: white;
}

.auth-actions .btn-primary:hover {
    background: #4752c4;
}

.auth-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.auth-actions .btn-secondary:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .auth-actions {
        flex-direction: column;
    }

    .auth-actions .btn-primary,
    .auth-actions .btn-secondary {
        width: 100%;
    }
}

/* Reset Collection and Danger Zone Styles */
.danger-zone {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid var(--color-error);
    border-radius: 8px;
    background-color: rgba(231, 76, 60, 0.05);
}

.danger-zone h3 {
    color: var(--color-error);
    margin: 0 0 10px 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.danger-zone h3::before {
    content: "⚠️";
    font-size: var(--font-size-xl);
}

.danger-zone p {
    color: var(--color-gray-700);
    margin: 0 0 15px 0;
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-error) 0%, #c0392b 100%);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
    box-shadow: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
}

.btn-danger:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #a93226 0%, #922b21 100%);
}

/* Reset Collection Confirmation Modal */
.reset-confirmation-modal .modal-content {
    max-width: 500px;
    border: 2px solid var(--color-error);
}

.reset-confirmation-modal .modal-header {
    background-color: rgba(231, 76, 60, 0.1);
    border-bottom: 1px solid var(--color-error);
}

.reset-confirmation-modal .modal-header h3 {
    color: var(--color-error);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.reset-confirmation-modal .modal-header h3::before {
    content: "⚠️";
    font-size: var(--font-size-xl);
}

.reset-warning {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--color-error);
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.reset-warning p {
    margin: 0 0 10px 0;
    color: var(--color-gray-800);
    font-weight: 500;
}

.reset-warning p:last-child {
    margin: 0;
    color: var(--color-error);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.confirmation-input-group {
    margin: 20px 0;
}

.confirmation-input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.confirmation-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--color-gray-300);
    border-radius: 5px;
    font-size: var(--font-size-base);
    font-family: monospace;
    transition: border-color 0.3s ease;
}

.confirmation-input:focus {
    outline: none;
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.confirmation-input.valid {
    border-color: var(--color-success);
    background-color: rgba(39, 174, 96, 0.05);
}

.reset-confirmation-modal .modal-footer {
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-200);
}

.reset-confirmation-modal .modal-footer .btn-secondary {
    background: var(--color-gray-500);
    color: var(--color-white);
}

.reset-confirmation-modal .modal-footer .btn-secondary:hover {
    background: var(--color-gray-600);
}

.reset-confirmation-modal .modal-footer .btn-danger:disabled {
    background: var(--color-gray-400);
    cursor: not-allowed;
    opacity: 0.6;
}

.reset-confirmation-modal .modal-footer .btn-danger:disabled:hover {
    background: var(--color-gray-400);
    transform: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .danger-zone {
        margin-top: 20px;
        padding: 15px;
    }

    .danger-zone h3 {
        font-size: var(--font-size-base);
    }

    .reset-confirmation-modal .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .reset-confirmation-modal .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .reset-confirmation-modal .modal-footer .btn-secondary,
    .reset-confirmation-modal .modal-footer .btn-danger {
        width: 100%;
    }
}

/* Deck Favorites Styles */
.btn-favorite {
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
    color: var(--color-gray-700);
    border: 2px solid var(--color-gray-300);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-favorite:hover {
    background: linear-gradient(135deg, var(--color-gray-200) 0%, var(--color-gray-300) 100%);
    border-color: var(--color-gray-400);
    transform: translateY(-1px);
}

.btn-favorite.favorited {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: var(--color-white);
    border-color: #ff6b6b;
}

.btn-favorite.favorited:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #dc4545 100%);
    border-color: #ee5a52;
}

.btn-favorite .favorite-icon {
    font-size: var(--font-size-lg);
    transition: transform 0.2s ease;
}

.btn-favorite.favorited .favorite-icon::before {
    content: "♥";
}

.btn-favorite:not(.favorited) .favorite-icon::before {
    content: "♡";
}

.btn-favorite:hover .favorite-icon {
    transform: scale(1.1);
}

/* Deck card favorite indicators */
.deck-card .favorite-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-gray-600);
    font-size: var(--font-size-xs);
}

.deck-card .favorite-count .heart {
    color: #ff6b6b;
}

.deck-card.favorited {
    position: relative;
}

.deck-card.favorited::before {
    content: "♥";
    position: absolute;
    top: 8px;
    right: 8px;
    color: #ff6b6b;
    font-size: var(--font-size-lg);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Trading Lists Controls (ISO/WTT) */
.modal-trading-section {
    margin-top: 0px;
}

.trading-controls-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.trading-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.trading-buttons-compact {
    display: flex;
    gap: 8px;
}

.trading-compact-btn {
    padding: 6px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.trading-compact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.trading-compact-btn.active-iso {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.trading-compact-btn.active-wtt {
    background: #e67e22;
    color: white;
    border-color: #e67e22;
}

/* ========================================
   CARD PRICE DISPLAY STYLES
   ======================================== */

/* Price display in list/grid view cards */
.card-price-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-gray-200);
}

.card-price-info .price-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    font-weight: 600;
}

.card-price-info .price-value {
    font-size: var(--font-size-base);
    color: var(--color-success);
    font-weight: 700;
}

.card-price-info .price-link {
    font-size: var(--font-size-base);
    color: var(--color-success);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card-price-info .price-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Price display in text view table */
.text-view-table .card-price {
    text-align: center;
    font-weight: 600;
}

.text-view-table .price-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.text-view-table .price-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Sort options styling */
.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-weight: 600;
    color: var(--color-secondary);
}

.sort-select {
    padding: 6px 10px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    background: var(--color-white);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.sort-direction-btn {
    padding: 6px 12px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-md);
    background: var(--color-white);
    font-size: var(--font-size-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-direction-btn:hover {
    background: var(--color-gray-100);
    border-color: var(--color-primary);
}

.sort-direction-btn:active {
    transform: scale(0.95);
}