/* Shared Components */
/* Modals, tooltips, search inputs, loading states */

/* ============ CREATOR BADGE (global) ============ */
.creator-badge {
    display: inline-block;
    background: #000;
    color: #FF9000;
    border: 1px solid #000;
    padding: 0.05rem 0.4rem;
    border-radius: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-left: 0.3rem;
    white-space: nowrap;
}

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

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay--visible {
    opacity: 1;
}

.modal {
    background: #1e1f27;
    border: 1px solid #2a2b35;
    border-radius: 8px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 540px;
    height: var(--modal-height);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
    overflow: visible;
}

.modal-overlay--visible .modal {
    transform: scale(1) translateY(0);
}

.modal--large {
    max-width: 900px;
}

/* Modal Header — search inline with actions */
.modal__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    height: 52px;
    background: #1e1f27;
    border-bottom: 1px solid #2a2b35;
    border-radius: 8px 8px 0 0;
    box-sizing: border-box;
}

.modal__search-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}

.modal__search {
    width: 100%;
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: #ccc;
    padding: 0 28px 0 10px;
    height: 30px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.modal__search-clear {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    display: none;
    transition: color 0.15s;
}

.modal__search-clear--visible {
    display: block;
}

.modal__search-clear:hover {
    color: #ccc;
}

.modal__search::placeholder {
    color: #555;
}

.modal__search:focus {
    border-color: #555;
}

.modal__title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.modal__action-btn {
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0 12px;
    height: 30px;
    color: #999;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    box-sizing: border-box;
}

.modal__action-btn:hover {
    color: #ddd;
    border-color: #666;
}

.modal__action-btn--danger:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.modal__close {
    background: transparent;
    border: none;
    color: #666;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.modal__close:hover {
    color: #ccc;
}

/* Modal Body */
.modal__body {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Browse view (filters + results) */
.modal__browse-view {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a3b45 #1e1f27;
}

.modal__browse-view::-webkit-scrollbar {
    width: 6px;
}
.modal__browse-view::-webkit-scrollbar-track {
    background: #1e1f27;
}
.modal__browse-view::-webkit-scrollbar-thumb {
    background: #3a3b45;
    border-radius: 3px;
}
.modal__browse-view::-webkit-scrollbar-thumb:hover {
    background: #4a4b55;
}

/* Content tab panels */
.modal__panel {
    display: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a3b45 #1e1f27;
}

.modal__panel::-webkit-scrollbar {
    width: 6px;
}
.modal__panel::-webkit-scrollbar-track {
    background: #1e1f27;
}
.modal__panel::-webkit-scrollbar-thumb {
    background: #3a3b45;
    border-radius: 3px;
}

.modal__panel--active {
    display: flex;
    flex-direction: column;
}

/* Modal Footer (results count) */
.modal__footer {
    padding: 8px 16px;
    border-top: 1px solid #2a2b35;
    background: #1e1f27;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.modal__count {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* Confirm dialog — narrower than standard modals */
.modal--confirm {
    max-width: 400px;
    height: auto;
    max-height: 65vh;
}

.modal--confirm .modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 8px 8px;
    text-align: left;
}

/* Modal Filter Pills */
.modal__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px;
}

.modal__filter-pill {
    padding: 5px 12px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 20px;
    color: #777;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal__filter-pill:hover {
    border-color: #555;
    color: #bbb;
}

.modal__filter-pill--active {
    background: rgba(255, 255, 255, 0.06);
    border-color: #555;
    color: #ddd;
}

/* Modal Message (confirm dialog) */
.modal__message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Modal Error */
.modal__error {
    padding: 1rem;
    color: var(--error);
    text-align: center;
}

/* Fullscreen Modal */
.modal-overlay--fullscreen {
    padding: 0;
}

.modal--fullscreen {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
}

.modal__body--fullscreen {
    flex: 1;
    overflow: auto;
    padding: 0;
}

/* No-scroll on body when fullscreen modal open */
body.modal-noscroll {
    overflow: hidden;
}

/* Buttons for modals */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

.btn--primary {
    background: var(--red);
    color: #fff;
}

.btn--primary:hover {
    background: var(--red-bright);
}

.btn--secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn--secondary:hover {
    border-color: var(--gold-dark);
    color: var(--text-primary);
}

.btn--danger {
    background: var(--error);
    color: #fff;
}

.btn--danger:hover {
    background: #dc2626;
}

/* Modal Results */
.modal__results {
    display: flex;
    flex-direction: column;
}

/* Unified Item Rows (gear-modal style) */
.modal__item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 1px solid #2a2b35;
    transition: background 0.15s;
}

.modal__item-row:hover {
    background: #26272d;
}

.modal__item-row--selected {
    background: rgba(255, 255, 255, 0.04);
}

.modal__item-row--hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Item Icon (circular, 34x34) */
.modal__item-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    overflow: hidden;
}

.modal__item-icon--check {
    background: rgba(255, 255, 255, 0.06);
    color: #999;
}

.modal__item-icon--square {
    border-radius: 4px;
}

.modal__item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Item Info (name + subtitle) */
.modal__item-info {
    flex: 1;
    min-width: 0;
}

.modal__item-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal__item-sub {
    font-size: 14px;
    margin-top: 2px;
    color: var(--text-dimmed);
    line-height: 1.3;
}

/* Favorite Star */
.modal__item-star {
    flex-shrink: 0;
    color: #444;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.modal__item-row:hover .modal__item-star {
    color: #888;
}

.modal__item-star--active {
    color: #999;
}

.modal__item-row:hover .modal__item-star--active {
    color: #bbb;
}

/* Modal Tabs (for tabbed modals like socket selection) */
.modal__tabs {
    display: flex;
    border-bottom: 1px solid #2a2b35;
    background: #15161d;
}

.modal__tab {
    flex: 1;
    padding: 0 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-bottom: none;
    color: #777;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.modal__tab:hover {
    color: #bbb;
    background: rgba(255, 255, 255, 0.05);
}

.modal__tab--active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.modal__empty {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 13px;
}

.modal__loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.modal__empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.modal__empty-text {
    font-size: 1rem;
}

/* ============ SHARE MODAL (unified) ============ */

#d4-share-modal {
    pointer-events: none;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.7);
}

#d4-share-modal.modal-overlay--visible {
    pointer-events: auto;
    visibility: visible;
}

#d4-share-modal .modal--share {
    background: var(--bg-panel);
    border: 1px solid var(--border-panel);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 480px;
    height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#d4-share-modal .modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

#d4-share-modal .modal__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold);
    margin: 0;
}

#d4-share-modal .modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dimmed);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#d4-share-modal .modal__close:hover {
    color: var(--text-primary);
}

#d4-share-modal .modal__body {
    padding: 1.25rem;
}

.share-modal__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.share-modal__url-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.share-modal__url-input {
    flex: 1;
    min-width: 0;
}

.share-modal__social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.share-modal__social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.share-modal__social-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-panel-hover);
}

.share-modal__social-btn--x:hover { color: #fff; }
.share-modal__social-btn--reddit:hover { color: #ff4500; }
.share-modal__social-btn--facebook:hover { color: #1877f2; }
.share-modal__social-btn--whatsapp:hover { color: #25d366; }
.share-modal__social-btn--discord:hover { color: #5865f2; }
.share-modal__social-btn--telegram:hover { color: #26a5e4; }
.share-modal__social-btn--email:hover { color: #aaa; }
.share-modal__social-btn--native:hover { color: var(--gold); }

.share-modal__social-btn--copied {
    border-color: var(--gold-dark) !important;
    color: var(--gold) !important;
    background: rgba(196, 162, 78, 0.08) !important;
}

/* ============ TOOLTIP ============ */

.tooltip {
    position: absolute;
    z-index: 10000;
    background: var(--bg-panel);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-primary);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    max-width: 280px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.tooltip--visible {
    opacity: 1;
    transform: translateY(0);
}

.tooltip--top {
    transform-origin: bottom center;
}

.tooltip--bottom {
    transform-origin: top center;
}

.tooltip--left {
    transform-origin: right center;
}

.tooltip--right {
    transform-origin: left center;
}

/* ============ SEARCH INPUT ============ */

.search-input {
    position: relative;
    width: 100%;
}

.search-input__field {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input__field::placeholder {
    color: var(--text-muted);
}

.search-input__field:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(165, 9, 5, 0.15);
}

.search-input__icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input__clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.35rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.search-input__clear--visible {
    opacity: 1;
    pointer-events: auto;
}

.search-input__clear:hover {
    background: var(--bg-panel);
    color: var(--text-primary);
}

/* ============ LOADING STATES ============ */

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-panel) 0%,
        var(--bg-panel-hover) 50%,
        var(--bg-panel) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton--text {
    height: 1em;
    width: 100%;
}

.skeleton--title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 0.5rem;
}

.skeleton--avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton--card {
    height: 200px;
    width: 100%;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.spinner--large {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

.spinner--small {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 100;
    border-radius: var(--radius);
}

.loading-overlay__text {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ============ BADGE ============ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--gold {
    background: rgba(165, 9, 5, 0.15);
    color: var(--gold);
    border: 1px solid var(--gold-dark);
}

.badge--legendary {
    background: rgba(139, 92, 246, 0.15);
    color: var(--legendary-purple);
    border: 1px solid var(--legendary-purple);
}

.badge--mythic {
    background: rgba(255, 107, 107, 0.15);
    color: var(--mythic-red);
    border: 1px solid var(--mythic-red);
}

.badge--success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.badge--warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.badge--error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid var(--error);
}

/* ============ TIER BADGES ============ */

.tier-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    text-align: center;
    min-width: 28px;
    line-height: 1.2;
}

.tier-badge--s { background: #FF7F7F; }
.tier-badge--a { background: #FFBF7F; }
.tier-badge--b { background: #FFDF7F; color: #333; }
.tier-badge--c { background: #AED581; color: #333; }
.tier-badge--d { background: #90A4AE; }

/* ============ BUILD TYPE BADGES ============ */

.type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.type-badge--endgame   { background: rgba(165, 9, 5, 0.2); color: var(--gold); }
.type-badge--leveling  { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.type-badge--speedfarm { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.type-badge--bossing   { background: rgba(239, 68, 68, 0.15); color: var(--error); }
.type-badge--pvp       { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

/* ============ DIVIDER ============ */

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.divider--gold {
    background: var(--gold);
    height: 2px;
    box-shadow: 0 0 8px rgba(165, 9, 5, 0.3);
}

/* ============ TOAST NOTIFICATIONS ============ */

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--editor-surface, #16213e);
    border: 1px solid var(--editor-border, #2a3f5f);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    font-size: 0.875rem;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast--visible {
    transform: translateX(0);
    opacity: 1;
}

.toast--leaving {
    transform: translateX(120%);
    opacity: 0;
}

.toast--success { border-left: 3px solid var(--success); }
.toast--error   { border-left: 3px solid var(--error); }
.toast--warning { border-left: 3px solid var(--warning); }
.toast--info    { border-left: 3px solid var(--info); }

.toast__icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.toast--success .toast__icon { color: var(--success); }
.toast--error .toast__icon   { color: var(--error); }
.toast--warning .toast__icon { color: var(--warning); }
.toast--info .toast__icon    { color: var(--info); }

.toast__message {
    flex: 1;
    line-height: 1.4;
}

.toast__close {
    background: none;
    border: none;
    color: var(--text-dimmed);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.toast__close:hover {
    color: var(--text-primary);
}

/* ============ AUTH MODAL ============ */

.modal--auth {
    max-width: 400px;
    height: auto;
    max-height: none;
}

.auth-modal__tabs {
    display: flex;
    gap: 0;
    flex: 1;
}

.auth-modal__tab {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #777;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.auth-modal__tab:hover {
    color: #bbb;
}

.auth-modal__tab--active {
    color: #fff;
    border-bottom-color: var(--red, #a50905);
}

.auth-modal__error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-modal__label {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

.auth-modal__input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: #12131a;
    border: 1px solid #2a2b35;
    border-radius: 6px;
    color: #e0ddd5;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.auth-modal__input:focus {
    outline: none;
    border-color: var(--red, #a50905);
    box-shadow: 0 0 0 2px rgba(165, 9, 5, 0.2);
}

.auth-modal__submit {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.65rem;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    /* Bottom-sheet pattern for modals on mobile */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal {
        max-width: 100%;
        height: var(--modal-height);
        margin: 0;
        border-radius: 16px 16px 0 0;
        border: none;
        border-top: 1px solid #2a2b35;
    }

    .modal__header {
        border-radius: 16px 16px 0 0;
        flex-wrap: wrap;
    }

    .modal__title {
        font-size: 1rem;
    }

    /* Touch-friendly item rows */
    .modal__item-row {
        padding: 12px 16px;
        min-height: 52px;
    }

    .modal__item-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .modal__filter-pill {
        min-height: 36px;
        padding: 6px 14px;
    }

    .modal__footer {
        border-radius: 0;
    }

    /* Confirm dialog footer */
    .modal--confirm .modal__footer {
        flex-direction: column;
    }

    .modal--confirm .modal__footer .btn {
        width: 100%;
        min-height: 44px;
    }

    .tooltip {
        max-width: 220px;
        font-size: 0.75rem;
    }

    .toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
