/* =====================
   PAGE LAYOUT
   ===================== */

.deck-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
}

/* ── MY DECKS SECTION ───────────────────────────── */

.my-decks-section {
    width: 100%;
    max-width: 860px;
    padding: 28px 20px 24px;
    box-sizing: border-box;
    text-align: left;
}

.deck-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.new-deck-btn-short {
    display: none;
}

.new-deck-btn {
    background: rgba(255, 191, 0, 0.08);
    border: 1px solid rgba(255, 191, 0, 0.35);
    border-radius: 8px;
    color: #ffbf00;
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
    height: auto;
}

.new-deck-btn:hover {
    background: rgba(255, 191, 0, 0.16);
    border-color: rgba(255, 191, 0, 0.6);
    box-shadow: 0 0 14px rgba(255, 191, 0, 0.18);
    transform: none;
}

.deck-tabs {
    display: flex;
    gap: 0;
    background: rgba(14, 14, 14, 0.9);
    border: 1px solid rgba(255, 191, 0, 0.12);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}

.deck-tab {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 9px 28px;
    color: rgba(255, 255, 255, 0.38);
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 2px;
    cursor: pointer;
    height: auto;
    transition: color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.deck-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
    transform: none;
    box-shadow: none;
}

.deck-tab.active {
    background: rgba(255, 191, 0, 0.14);
    color: #ffbf00;
}

.my-decks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.decks-loading,
.no-decks-hint {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.78rem;
    color: #4a4540;
    letter-spacing: 0.08em;
    padding: 6px 0;
    margin: 0;
}

.my-deck-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(14, 14, 14, 0.85);
    border: 1px solid rgba(255, 191, 0, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
    transition: border-color 0.18s ease;
}

.my-deck-card.active {
    border-color: rgba(255, 191, 0, 0.35);
}

.my-deck-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.my-deck-name {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.9rem;
    color: #e8e0d4;
    letter-spacing: 0.06em;
}

.my-deck-meta {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.65rem;
    color: #5a5248;
    letter-spacing: 0.08em;
}

.my-deck-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.my-deck-active-badge {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: #ffbf00;
    background: rgba(255, 191, 0, 0.1);
    border: 1px solid rgba(255, 191, 0, 0.3);
    border-radius: 6px;
    padding: 4px 10px;
}

.my-deck-activate-btn {
    background: transparent;
    border: 1px solid rgba(255, 191, 0, 0.22);
    border-radius: 6px;
    color: #7a7068;
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    padding: 4px 10px;
    cursor: pointer;
    height: auto;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.my-deck-activate-btn:hover:not(:disabled) {
    color: #ffbf00;
    border-color: rgba(255, 191, 0, 0.5);
    background: rgba(255, 191, 0, 0.08);
    transform: none;
    box-shadow: none;
}

.my-deck-activate-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ── DECK CONTENTS ACCORDION ───────────────────── */

.my-deck-wrapper {
    display: flex;
    flex-direction: column;
}

.my-deck-chevron {
    font-size: 0.7rem;
    color: #4a4540;
    transition: transform 0.32s ease, color 0.18s ease;
    margin-left: 4px;
    display: inline-block;
    line-height: 1;
}

.my-deck-card:hover .my-deck-chevron {
    color: #7a7068;
}

.my-deck-wrapper.expanded .my-deck-chevron {
    transform: rotate(180deg);
    color: #ffbf00;
}

.my-deck-wrapper.expanded .my-deck-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: rgba(255, 191, 0, 0.06);
}

.my-deck-contents {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
    background: rgba(8, 8, 8, 0.6);
    border: 1px solid rgba(255, 191, 0, 0.1);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.my-deck-wrapper:not(.expanded) .my-deck-contents {
    border-color: transparent;
}

.deck-contents-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 14px;
    justify-content: flex-start;
}

.deck-contents-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.deck-contents-card img {
    width: 70px;
    height: 98px;
    border-radius: 6px;
    display: block;
}

.deck-contents-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #ffbf00;
    color: #0e0e0e;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.6rem;
    font-weight: bold;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── DECK CONTENTS ACTIONS ────────────────────────── */

.deck-contents-actions {
    display: flex;
    justify-content: flex-end;
    padding: 8px 14px 0;
}

.deck-edit-btn {
    background: transparent;
    border: 1px solid rgba(255, 191, 0, 0.22);
    border-radius: 6px;
    color: #7a7068;
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    padding: 4px 10px;
    cursor: pointer;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.deck-edit-btn:hover {
    color: #ffbf00;
    border-color: rgba(255, 191, 0, 0.5);
    background: rgba(255, 191, 0, 0.08);
    transform: none;
    box-shadow: none;
}

.deck-edit-btn i {
    font-size: 0.55rem;
}

/* ── MAKE ACTIVE CHECKBOX ───────────────────────── */

.make-active-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.make-active-row input[type="checkbox"] {
    accent-color: #ffbf00;
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.make-active-row input[type="checkbox"]:disabled {
    cursor: default;
}

.make-active-label {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.72rem;
    color: #7a7068;
    letter-spacing: 0.06em;
    cursor: pointer;
    margin: 0;
}

.make-active-row.locked .make-active-label {
    color: #4a4540;
}

/* ── BUILDER SECTION ────────────────────────────── */

.deck-builder-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    max-width: 1300px;
    padding: 0 20px 40px;
    box-sizing: border-box;
    text-align: left;
    border-top: 1px solid rgba(255, 191, 0, 0.07);
    margin-top: 4px;
    padding-top: 28px;
}

/* =====================
   SET PILLS (shared with library)
   ===================== */

.set-cb {
    display: none;
}

.set-pill {
    cursor: pointer;
    padding: 4px 14px;
    border-radius: 20px;
    border: 2px solid;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    user-select: none;
    white-space: nowrap;
    height: 24px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.dragons-pill {
    color: #ff7043;
    border-color: #ff7043;
}

.set-cb:checked + .dragons-pill {
    background-color: #ff7043;
    color: #0e0e0e;
    box-shadow: 0 0 8px rgba(255, 112, 67, 0.45);
}

.gemini-pill {
    color: #ab8ee8;
    border-color: #ab8ee8;
}

.set-cb:checked + .gemini-pill {
    background-color: #ab8ee8;
    color: #0e0e0e;
    box-shadow: 0 0 8px rgba(171, 142, 232, 0.45);
}

/* =====================
   LEFT: CARD PICKER PANEL
   ===================== */

.card-picker-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.picker-panel-title {
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 3px;
    color: rgba(255, 191, 0, 0.5);
    text-transform: uppercase;
    margin: 0;
}

.picker-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.picker-search-group {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 130px;
}

.picker-search-input {
    width: 100%;
    padding: 5px 28px 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 191, 0, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #f0ece6;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.82rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.picker-search-input:focus {
    border-color: rgba(255, 191, 0, 0.5);
    box-shadow: 0 0 6px rgba(255, 191, 0, 0.14);
}

.picker-search-icon {
    position: absolute;
    right: 9px;
    color: #484840;
    font-size: 0.75rem;
    pointer-events: none;
}

/* =====================
   PICKER GRID
   ===================== */

.picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    max-height: calc(100vh - 280px);
    min-height: 200px;
    overflow-y: auto;
    padding: 2px 2px 2px 1px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 191, 0, 0.18) transparent;
}

.picker-grid::-webkit-scrollbar      { width: 4px; }
.picker-grid::-webkit-scrollbar-track { background: transparent; }
.picker-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 191, 0, 0.18);
    border-radius: 2px;
}

.picker-card {
    position: relative;
    cursor: pointer;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
}

.picker-card img {
    width: 90px;
    height: 126px;
    border-radius: 6px;
    display: block;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.picker-card:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 20px rgba(255, 191, 0, 0.22);
    border-color: rgba(255, 191, 0, 0.18);
}

.picker-card.in-deck {
    border-color: rgba(255, 191, 0, 0.35);
}

.picker-card.maxed {
    cursor: not-allowed;
    opacity: 0.45;
}

.picker-card.maxed:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 191, 0, 0.35);
}

.picker-card-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ffbf00;
    color: #0e0e0e;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.picker-card-count:hover {
    background-color: #e57373;
    transform: scale(1.15);
}

.picker-loading {
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.75rem;
    color: #484840;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 48px 0;
    width: 100%;
}

.picker-hint {
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.62rem;
    color: #3a3a36;
    letter-spacing: 1px;
    margin: 2px 0 0;
}

/* =====================
   RIGHT: DECK FORM PANEL
   ===================== */

.deck-form-panel {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 150px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 191, 0, 0.12) transparent;
}

.deck-form-panel::-webkit-scrollbar      { width: 3px; }
.deck-form-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 191, 0, 0.12);
    border-radius: 2px;
}

/* =====================
   DECK PREVIEW CARD
   ===================== */

.deck-preview-card {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 191, 0, 0.1);
    border-radius: 12px;
    padding: 16px 18px;
    flex-shrink: 0;
}

.deck-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 191, 0, 0.08);
}

.deck-preview-title {
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.64rem;
    letter-spacing: 3px;
    color: #666;
    text-transform: uppercase;
}

.deck-slot-count {
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: bold;
    color: #ffbf00;
    transition: color 0.2s ease;
}

.deck-slot-count.full {
    color: #81c784;
}

.deck-preview-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 191, 0, 0.1) transparent;
}

.deck-preview-list::-webkit-scrollbar      { width: 3px; }
.deck-preview-list::-webkit-scrollbar-thumb {
    background: rgba(255, 191, 0, 0.1);
    border-radius: 2px;
}

.deck-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 7px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.deck-preview-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.05);
}

.deck-preview-count {
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.73rem;
    font-weight: bold;
    color: #ffbf00;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.deck-preview-name {
    flex: 1;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.77rem;
    color: #a8a09a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deck-preview-remove {
    background: transparent;
    border: none;
    color: #3a3a36;
    cursor: pointer;
    font-size: 0.68rem;
    padding: 2px 5px;
    border-radius: 4px;
    height: auto;
    min-width: 0;
    letter-spacing: 0;
    line-height: 1;
    font-weight: normal;
    transition: color 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.deck-preview-remove:hover {
    color: #e57373;
    background: rgba(244, 67, 54, 0.1);
    transform: none;
    box-shadow: none;
}

.deck-empty-hint {
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.7rem;
    color: #363630;
    letter-spacing: 1px;
    text-align: center;
    padding: 18px 0;
}

/* =====================
   DECK FORM CARD
   ===================== */

.deck-form-card {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 191, 0, 0.1);
    border-radius: 12px;
    padding: 20px 20px;
    flex-shrink: 0;
}

.deck-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.66rem;
    letter-spacing: 2.5px;
    color: #666;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.form-hint {
    font-size: 0.6rem;
    color: #444;
    letter-spacing: 1px;
    text-transform: none;
}

.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 191, 0, 0.15);
    border-radius: 10px;
    padding: 10px 13px;
    color: #f0ece6;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-input::placeholder {
    color: #383832;
}

.form-input:focus {
    border-color: rgba(255, 191, 0, 0.42);
    box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.06);
    background: rgba(255, 255, 255, 0.06);
}

/* =====================
   MODE TOGGLE
   ===================== */

.mode-toggle {
    display: flex;
    gap: 0;
    background: rgba(14, 14, 14, 0.9);
    border: 1px solid rgba(255, 191, 0, 0.12);
    border-radius: 10px;
    padding: 4px;
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.38);
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 2px;
    padding: 8px 0;
    cursor: pointer;
    height: auto;
    transition: background 0.18s ease, color 0.18s ease;
}

.mode-btn.active {
    background: rgba(255, 191, 0, 0.14);
    color: #ffbf00;
}

.mode-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
    transform: none;
    box-shadow: none;
}

.mode-toggle.locked {
    opacity: 0.5;
    pointer-events: none;
}

/* =====================
   SUBMIT BUTTON
   ===================== */

.deck-signed-in-as {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: #5a5248;
    margin: 0 0 4px;
    text-align: center;
}

.submit-btn {
    background-color: #ffbf00;
    color: #0e0e0e;
    border: none;
    border-radius: 10px;
    padding: 11px 0;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    height: auto;
    margin-top: 4px;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
}

.submit-btn:hover {
    background-color: #ffd740;
    box-shadow: 0 4px 18px rgba(255, 191, 0, 0.26);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* =====================
   RESPONSE MESSAGE
   ===================== */

.response-message {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 9px;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-align: center;
    display: none;
}

.response-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
    display: block;
}

.response-message.error {
    background: rgba(244, 67, 54, 0.09);
    border: 1px solid rgba(244, 67, 54, 0.26);
    color: #e57373;
    display: block;
}

/* =====================
   DELETE BUTTON
   ===================== */

.my-deck-delete-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #4a4540;
    font-size: 0.55rem;
    padding: 4px 8px;
    cursor: pointer;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.my-deck-delete-btn:hover {
    color: #e53935;
    border-color: rgba(229, 57, 53, 0.4);
    background: rgba(229, 57, 53, 0.08);
    transform: none;
    box-shadow: none;
}

/* =====================
   DELETE MODAL
   ===================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 191, 0, 0.2);
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.modal-deck-name {
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

.modal-warning {
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 13px;
    color: #7a7068;
    line-height: 1.5;
    margin: 0;
}

.modal-error {
    color: #e53935;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 13px;
    min-height: 18px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.modal-cancel-btn {
    flex: 1;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.18s;
    height: auto;
}

.modal-cancel-btn:hover { background: rgba(255, 255, 255, 0.06); }

.modal-delete-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 10px;
    background: #e53935;
    color: #fff;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.18s;
    height: auto;
}

.modal-delete-btn:hover { background: #ef5350; }

.modal-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================
   MOBILE STYLES
   ===================== */

@media screen and ((max-width: 767px) or (hover: none)) {

    .new-deck-btn-full { display: none; }
    .new-deck-btn-short { display: inline; }

    .deck-builder-layout {
        flex-direction: column;
        padding: 16px 12px 100px; /* extra bottom padding for fixed action-bar */
        gap: 16px;
    }

    .deck-form-panel {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .picker-grid {
        max-height: 52vh;
    }

    .picker-card img {
        width: 76px;
        height: 106px;
    }

    .picker-search-group {
        min-width: 100px;
    }

    .deck-form-card {
        padding: 18px 16px;
    }

    .form-input {
        font-size: 0.82rem;
    }

    .deck-contents-card img {
        width: 60px;
        height: 84px;
    }

    .deck-contents-grid {
        gap: 5px;
        padding: 10px 10px;
    }

    .deck-contents-badge {
        width: 15px;
        height: 15px;
        font-size: 0.55rem;
        top: 2px;
        right: 2px;
    }
}
