* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding-top: 32px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    /* z-index retiré pour ne pas couvrir les overlays/modals */
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Lien autour du logo et des titres (pas d’effet visuel au clic/hover) */
.header-brand { display:flex; align-items:center; gap:14px; text-decoration:none; color: inherit; }
.header-brand:visited { color: inherit; text-decoration:none; }
.header-brand:hover { color: inherit; text-decoration:none; }
.header-brand:active { color: inherit; text-decoration:none; }
.header-brand:focus { outline: none; text-decoration:none; }

.logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 5px;
}

.auth-zone {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-message {
    font-size: 1rem;
    color: #333;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

/* -------- Header responsive: Mobile optimisations -------- */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }
    .header-logo {
        justify-content: center;
    }
    .logo {
        width: 48px;
        height: 48px;
    }
    .header-text h1 {
        font-size: 1.6rem;
    }
    .subtitle {
        font-size: 0.95rem;
    }
    .auth-zone {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .user-info {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .welcome-message {
        font-size: 0.95rem;
        text-align: center;
    }
    .user-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .auth-buttons {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .btn {
        padding: 8px 12px;
        font-size: 0.88rem;
    }
    .btn-profile,
    .btn-logout,
    .btn-home,
    .btn-trends {
        padding: 6px 10px;
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .header {
        padding: 12px;
    }
    .header-text h1 {
        font-size: 1.45rem;
    }
    .btn {
        padding: 6px 10px;
        font-size: 0.82rem;
    }
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-login {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-register {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid #e1e8ed;
}

.btn-register:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #667eea;
    color: #667eea;
}

.btn-profile,
.btn-logout {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: 2px solid #e1e8ed;
    padding: 6px 10px;
    font-size: 1.1rem;
}

.btn-profile:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-logout:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.btn-home {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: 2px solid #e1e8ed;
    padding: 6px 10px;
    font-size: 1.1rem;
}

.btn-home:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-trends {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: 2px solid #e1e8ed;
    padding: 6px 10px;
    font-size: 1.25rem;
}

.btn-trends:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.controls {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.deck-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.deck-counter {
    font-size: 1.2rem;
    font-weight: 600;
}

.counter-number {
    color: #667eea;
    font-weight: 700;
}

.deck-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.deck-select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.deck-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-new {
    background: #4CAF50;
    color: white;
}

.btn-view {
    background: #2196F3;
    color: white;
}

.btn-manage {
    background: #FF9800;
    color: white;
}

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

.btn-save {
    background: #9C27B0;
    color: white;
}

.btn-export {
    background: #607D8B;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.deck-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.deck-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.deck-slots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.deck-slot {
    background: #f8f9fa;
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.deck-slot.empty {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.deck-slot.filled {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    border-style: solid;
}

.deck-slot.drag-over {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: scale(1.02);
}

.slot-number {
    position: absolute;
    top: 8px;
    left: 12px;
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.slot-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.card-in-slot {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.card-in-slot img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: scale-down;
    object-position: center;
    background: #f8f9fa;
    padding: 2px;
    box-sizing: border-box;
}

.card-in-slot .card-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.remove-card {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Image sizes and common styles */
.card-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: scale-down;
    object-position: center;
    background: #f8f9fa;
    padding: 2px;
    box-sizing: border-box;
}

.card-thumb-sm {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: scale-down;
    object-position: center;
    background: #f7f8fa;
    padding: 2px;
    box-sizing: border-box;
    border: 1px solid #e1e8ed;
}

.trait-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e9ecef;
}

.trend-cards img,
.cards-gallery img {
    image-rendering: auto;
}

.remove-card:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.cards-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cards-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.cards-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Wrapper carré pour garantir une zone identique */
.filter-btn .trait-icon-wrap {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icône à l'intérieur du wrapper: taille fixe et alignement */
.filter-btn .trait-icon {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
    vertical-align: middle;
    display: inline-block;
}

@media (max-width: 700px) {
    .filter-btn .trait-icon-wrap {
    width: 28px;
    height: 28px;
    }
    .filter-btn .trait-icon {
    width: 28px !important;
    height: 28px !important;
    }
}

.filter-btn.active,
.filter-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.cards-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.card:active {
    transform: translateY(-2px) scale(0.98);
}

.card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    cursor: grabbing;
}

.card::before {
    content: "🖱️ Cliquez pour ajouter";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.card:hover::before {
    opacity: 1;
}

.card img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: scale-down;
    object-position: center;
    margin-bottom: 10px;
    background: #f8f9fa;
    padding: 2px;
    box-sizing: border-box;
}

.card-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 1rem;
}

.card-traits {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.trait-icon {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: transform 0.2s ease;
}

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

.card-type {
    background: #667eea;
    color: white;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.card-type.ace {
    background: #9C27B0;
}

.card-type.assassin {
    background: #f44336;
}

.card-type.avenger {
    background: #E91E63;
}

.card-type.brawler {
    background: #FF5722;
}

.card-type.clan {
    background: #03A9F4;
}

.card-type.goblin {
    background: #4CAF50;
}

.card-type.juggernaut {
    background: #795548;
}

.card-type.noble {
    background: #FFC107;
}

.card-type.ranger {
    background: #009688;
}

.card-type.thrower {
    background: #FF9800;
}

.card-type.undead {
    background: #607D8B;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 25px;
}

.decks-list, .modal-body {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: none;
}
.decks-list::-webkit-scrollbar, .modal-body::-webkit-scrollbar {
    display: none;
}

.decks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: none;
}

.decks-list::-webkit-scrollbar {
    display: none;
}

.deck-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.deck-preview:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.deck-preview-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.deck-preview-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.deck-preview-cards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.deck-card-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.deck-card-mini img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    object-fit: scale-down;
    object-position: center;
    background: #f8f9fa;
    padding: 1px;
    box-sizing: border-box;
}

.deck-card-mini span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.deck-management {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: flashSlideIn 0.5s ease;
    position: relative;
}

.flash-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
}

.flash-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #c0392b;
}

.flash-icon {
    font-size: 1.2rem;
}

.flash-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0;
}
.profile-card {
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(102,126,234,0.10);
    padding: 36px 32px 24px 32px;
    margin-bottom: 24px;
}
.profile-header {
    margin-bottom: 24px;
    text-align: left;
}
.profile-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 6px;
}
.profile-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}
.user-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.stat-card {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 16px 24px;
    text-align: center;
    flex: 1;
    box-shadow: 0 2px 8px rgba(102,126,234,0.07);
}
.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}
.stat-label {
    font-size: 0.95rem;
    color: #444;
}
.profile-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.form-section {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 24px 20px 18px 20px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(102,126,234,0.07);
}
.form-section h3 {
    font-size: 1.1rem;
    color: #764ba2;
    margin-bottom: 18px;
}
.form-row {
    display: flex;
    gap: 18px;
    margin-bottom: 0;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.97rem;
    margin-bottom: 2px;
}
.form-group input {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    border: 2px solid #e1e8ed;
    background: rgba(255,255,255,0.85);
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: #667eea;
    outline: none;
}
.form-group .form-help {
    font-size: 0.85rem;
    color: #888;
    margin-top: 2px;
}
.form-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 10px;
}
.auth-btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102,126,234,0.13);
    transition: background 0.2s, box-shadow 0.2s;
}
.auth-btn-primary:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    box-shadow: 0 6px 20px rgba(102,126,234,0.18);
}
.auth-btn-secondary {
    background: #f7f8fa;
    color: #764ba2;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102,126,234,0.07);
    transition: background 0.2s, box-shadow 0.2s;
}
.auth-btn-secondary:hover {
    background: #e1e8ed;
    color: #667eea;
}
.form-group.form-separator {
    height: 18px;
    background: none;
    border: none;
    margin: 0;
}
@media (max-width: 900px) {
    .profile-container {
        max-width: 100%;
        padding: 0 8px;
    }
    .profile-card {
        padding: 18px 6px 12px 6px;
    }
}
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-section {
        padding: 12px 6px 8px 6px;
    }
    .profile-card {
        padding: 8px 2px 6px 2px;
    }
}
@media (max-width: 1200px) {
    .deck-slots {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .deck-info {
        justify-content: space-between;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .deck-slots {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    .cards-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .deck-preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .deck-preview-cards {
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .deck-slots {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }
    
    .cards-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .cards-filter {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}
.admin-menu {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    justify-content: center;
}
.admin-console form {
    align-items: center;
}
.admin-console button {
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.admin-table > div[style*='display:flex'] {
    justify-content: center !important;
}
