.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(232, 197, 216, 0.1), rgba(26, 26, 26, 0.95));
    border: 2px solid rgba(232, 197, 216, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 197, 216, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: #e8c5d8;
    box-shadow: 0 15px 40px rgba(232, 197, 216, 0.3);
}

.stat-card h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.stat-card p {
    color: #e8c5d8;
    font-size: 42px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(232, 197, 216, 0.5);
}

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-action-btn {
    background: linear-gradient(135deg, rgba(232, 197, 216, 0.12), rgba(212, 165, 196, 0.08));
    border: 2px solid rgba(232, 197, 216, 0.35);
    border-radius: 15px;
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admin-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(232, 197, 216, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.admin-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.admin-action-btn:hover {
    background: linear-gradient(135deg, #e8c5d8, #d4a5c4);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(232, 197, 216, 0.45);
    border-color: #e8c5d8;
}

.admin-action-btn svg {
    width: 32px;
    height: 32px;
    stroke: #e8c5d8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.admin-action-btn:hover svg {
    stroke: #000;
    transform: scale(1.1);
}

.admin-action-btn span {
    position: relative;
    z-index: 1;
}

.admin-info {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 12px;
    padding: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.8;
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.1);
}

.admin-info p {
    margin-bottom: 12px;
}

.admin-info p:last-child {
    margin-bottom: 0;
}

.admin-info strong {
    color: #fbbf24;
    font-weight: 700;
}

.admin-badge,
#adminBadge,
.admin-badge-header {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(251, 191, 36, 0.7);
    }
}

.admin-edit-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 150;
    pointer-events: none;
}

body.admin-mode .admin-edit-controls {
    display: flex !important;
}

.admin-edit-btn,
.admin-delete-btn {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    border: 2px solid;
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    white-space: nowrap;
}

.admin-edit-btn {
    border-color: #fbbf24;
    color: #fbbf24;
}

.admin-edit-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
    border-color: #fbbf24;
}

.admin-delete-btn {
    border-color: #ef4444;
    color: #ef4444;
}

.admin-delete-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    border-color: #ef4444;
}

body.admin-mode .product-card .view-details-btn,
body.admin-mode .offer-card .view-details-btn,
body.admin-mode .proyecto-item .view-details-btn,
body.admin-mode .notebook-card .view-details-btn,
body.admin-mode .monitor-card .view-details-btn,
body.admin-mode .card-overlay,
body.admin-mode .product-overlay,
body.admin-mode .cart-item .view-details-btn,
body.admin-mode .offer-overlay,
body.admin-mode .quick-view-btn {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.product-main .admin-edit-controls {
    position: fixed;
    top: 160px;
    right: 30px;
    left: auto;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 9996;
    gap: 10px;
}

.product-main .admin-edit-btn,
.product-main .admin-delete-btn {
    padding: 12px 20px;
    font-size: 13px;
    min-width: 140px;
    justify-content: center;
}

.cart-item {
    position: relative;
}

.cart-item .admin-edit-controls {
    top: 8px;
    right: 8px;
}

.cart-item .admin-edit-btn,
.cart-item .admin-delete-btn {
    padding: 6px 12px;
    font-size: 10px;
}

.product-card,
.offer-card,
.proyecto-item,
[data-product-id],
.cart-item,
.product-container,
.notebook-card,
.monitor-card {
    position: relative;
}

.admin-mode-indicator {
    position: fixed;
    top: 140px;
    right: 30px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.5);
    z-index: 9998;
    display: none;
    align-items: center;
    gap: 12px;
    animation: slide-in-indicator 0.4s ease-out;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

@keyframes slide-in-indicator {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.admin-mode .admin-mode-indicator {
    display: flex;
}

.admin-mode-indicator button {
    background: rgba(0, 0, 0, 0.9);
    color: #fbbf24;
    border: 2px solid #000;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 11px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-mode-indicator button:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.05);
}

.admin-floating-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9997;
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid rgba(232, 197, 216, 0.7);
    background: linear-gradient(135deg, rgba(232, 197, 216, 0.15), rgba(0, 0, 0, 0.95));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.admin-mode .admin-floating-toggle {
    display: none;
}

.admin-floating-toggle:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(232, 197, 216, 0.5);
    border-color: #e8c5d8;
    background: linear-gradient(135deg, #e8c5d8, #d4a5c4);
    color: #000;
}

.admin-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fade-in-modal 0.3s ease;
}

@keyframes fade-in-modal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-edit-modal.active {
    display: flex;
}

.admin-edit-modal-content {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.98), rgba(20, 20, 20, 0.98));
    border: 2px solid rgba(232, 197, 216, 0.3);
    border-radius: 25px;
    padding: 45px;
    max-width: 650px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: slide-up-modal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-up-modal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-edit-modal-content::-webkit-scrollbar {
    width: 8px;
}

.admin-edit-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.admin-edit-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e8c5d8, #d4a5c4);
    border-radius: 10px;
}

.admin-edit-modal h2 {
    color: #e8c5d8;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(232, 197, 216, 0.3);
}

.admin-edit-modal .form-group {
    margin-bottom: 24px;
}

.admin-edit-modal label {
    display: block;
    margin-bottom: 10px;
    color: #e8c5d8;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-edit-modal input,
.admin-edit-modal textarea,
.admin-edit-modal select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid rgba(85, 85, 85, 0.6);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.admin-edit-modal input:focus,
.admin-edit-modal textarea:focus,
.admin-edit-modal select:focus {
    outline: none;
    border-color: #e8c5d8;
    background: rgba(20, 20, 20, 1);
    box-shadow: 0 0 0 4px rgba(232, 197, 216, 0.15);
}

.admin-edit-modal input:disabled,
.admin-edit-modal input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-edit-modal textarea {
    resize: vertical;
    min-height: 120px;
}

.admin-edit-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(85, 85, 85, 0.3);
}

.admin-edit-modal-actions button {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-save-btn {
    background: linear-gradient(135deg, #e8c5d8, #d4a5c4);
    color: #000;
    box-shadow: 0 5px 20px rgba(232, 197, 216, 0.3);
}

.admin-save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 197, 216, 0.5);
}

.admin-cancel-btn {
    background: rgba(85, 85, 85, 0.5);
    color: #fff;
    border: 2px solid rgba(85, 85, 85, 0.8);
}

.admin-cancel-btn:hover {
    background: rgba(85, 85, 85, 0.8);
    border-color: rgba(85, 85, 85, 1);
}

body.admin-mode .product-card,
body.admin-mode .offer-card,
body.admin-mode [data-product-id] {
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

body.admin-mode .product-card:hover,
body.admin-mode .offer-card:hover,
body.admin-mode [data-product-id]:hover {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.6);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: 0;
}

.admin-edit-modal small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.4;
}

.admin-section {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(232, 197, 216, 0.05), rgba(26, 26, 26, 0.8));
    border: 1px solid rgba(232, 197, 216, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.admin-section:hover {
    border-color: rgba(232, 197, 216, 0.4);
    box-shadow: 0 10px 30px rgba(232, 197, 216, 0.1);
}

.admin-section-title {
    color: #e8c5d8;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(232, 197, 216, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-section-title svg {
    stroke: #e8c5d8;
    flex-shrink: 0;
}

.admin-info h4 {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
}

.admin-info kbd {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.admin-info code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #fbbf24;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.products-list .product-card .admin-edit-controls,
.notebooks-list .notebook-card .admin-edit-controls,
.monitors-list .monitor-card .admin-edit-controls,
.offers-list .offer-card .admin-edit-controls {
    flex-direction: row !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    gap: 8px !important;
    justify-content: flex-end !important;
}

.products-list .admin-edit-btn,
.products-list .admin-delete-btn,
.notebooks-list .admin-edit-btn,
.notebooks-list .admin-delete-btn,
.monitors-list .admin-edit-btn,
.monitors-list .admin-delete-btn,
.offers-list .admin-edit-btn,
.offers-list .admin-delete-btn {
    padding: 7px 12px !important;
    font-size: 10px !important;
}

@media (min-width: 769px) {
    .products-grid .admin-edit-controls,
    .notebooks-grid .admin-edit-controls,
    .monitors-grid .admin-edit-controls {
        flex-direction: row;
        justify-content: space-between;
        left: 10px;
        right: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 992px) {
    .admin-stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .admin-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .stat-card {
        padding: 20px;
    }
    .stat-card p {
        font-size: 36px;
    }
    .admin-actions-grid {
        grid-template-columns: 1fr;
    }
    .admin-action-btn {
        padding: 24px 18px;
    }

    .admin-floating-toggle {
        bottom: 85px;
        right: 15px;
        font-size: 11px;
        padding: 10px 16px;
    }
    .admin-edit-modal-content {
        padding: 30px;
        width: 95%;
    }
    .admin-edit-modal h2 {
        font-size: 1.6rem;
    }
    .admin-edit-controls {
        top: 8px;
        right: 8px;
        gap: 6px;
    }
    .admin-edit-btn,
    .admin-delete-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    .product-main .admin-edit-controls {
        top: auto;
        bottom: 140px;
        right: 15px;
    }
    
    .products-list .admin-edit-controls,
    .notebooks-list .admin-edit-controls,
    .monitors-list .admin-edit-controls,
    .offers-list .admin-edit-controls {
        flex-direction: row !important;
        gap: 5px !important;
    }
}

@media (max-width: 480px) {
    .admin-edit-modal-content {
        padding: 25px 20px;
    }
    .admin-edit-modal h2 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    .admin-edit-modal-actions {
        flex-direction: column;
    }
    .admin-edit-modal-actions button {
        width: 100%;
    }
    .admin-info {
        padding: 20px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.products-table tbody tr {
    position: relative;
}

.products-table tbody tr td:last-child {
    position: relative;
}

.products-table .admin-edit-controls {
    position: static !important;
    display: inline-flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    margin-left: 10px;
}

body.admin-mode .products-table .admin-edit-controls {
    display: inline-flex !important;
}

.products-table .admin-edit-btn,
.products-table .admin-delete-btn {
    padding: 6px 12px !important;
    font-size: 10px !important;
}

body.admin-mode .products-table .view-details-btn,
body.admin-mode .products-table .add-to-cart-btn {
    display: none !important;
}

.offers-list-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.offers-list-container::-webkit-scrollbar {
    width: 8px;
}

.offers-list-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.offers-list-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e8c5d8, #d4a5c4);
    border-radius: 10px;
}

.offer-list-item {
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(85, 85, 85, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.offer-list-item:hover {
    border-color: rgba(232, 197, 216, 0.4);
    background: rgba(40, 40, 40, 0.8);
    transform: translateX(5px);
}

.offer-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(85, 85, 85, 0.3);
}

.offer-list-header h4 {
    color: #e8c5d8;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.offer-list-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-list-badge.status-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.offer-list-badge.status-inactive {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #fff;
}

.offer-list-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.offer-list-details span {
    color: rgba(204, 204, 204, 0.8);
    font-size: 13px;
}

.offer-list-details strong {
    color: #fff;
    font-weight: 600;
}

.offer-list-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}

.btn-warning:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .offer-list-details {
        grid-template-columns: 1fr;
    }
    
    .offer-list-actions {
        flex-direction: column;
    }
    
    .mini-btn {
        width: 100%;
    }
}

.offers-list-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    margin-top: 20px;
}

.offers-list-container::-webkit-scrollbar {
    width: 10px;
}

.offers-list-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.offers-list-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e8c5d8, #d4a5c4);
    border-radius: 10px;
}

.offers-list-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d4a5c4, #c08fb0);
}

.offer-list-item {
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(85, 85, 85, 0.5);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offer-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 197, 216, 0.1), transparent);
    transition: left 0.6s ease;
}

.offer-list-item:hover::before {
    left: 100%;
}

.offer-list-item:hover {
    border-color: rgba(232, 197, 216, 0.6);
    background: rgba(40, 40, 40, 0.95);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(232, 197, 216, 0.2);
}

.offer-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(85, 85, 85, 0.3);
}

.offer-list-header h4 {
    color: #e8c5d8;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.offer-list-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.offer-list-badge.status-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    animation: badge-pulse 2s ease-in-out infinite;
}

.offer-list-badge.status-inactive {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: rgba(255, 255, 255, 0.9);
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 3px 20px rgba(16, 185, 129, 0.6);
    }
}

.offer-list-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.offer-list-details span {
    color: rgba(204, 204, 204, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.offer-list-details strong {
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.offer-list-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mini-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.mini-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.mini-btn:hover::before {
    width: 300px;
    height: 300px;
}

.mini-btn:hover {
    transform: translateY(-3px);
}

.mini-btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.5);
}

@media (max-width: 768px) {
    .offers-list-container {
        max-height: 50vh;
    }

    .offer-list-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .offer-list-header h4 {
        font-size: 1.1rem;
    }
    
    .offer-list-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .offer-list-actions {
        flex-direction: column;
    }
    
    .mini-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .offer-list-item {
        padding: 20px 15px;
    }

    .offer-list-header h4 {
        font-size: 1rem;
    }

    .offer-list-badge {
        font-size: 10px;
        padding: 5px 12px;
    }

    .offer-list-details span {
        font-size: 13px;
    }

    .mini-btn {
        font-size: 12px;
        padding: 10px 16px;
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.offer-list-item {
    animation: slideInFromRight 0.5s ease-out forwards;
}

.offer-list-item:nth-child(1) { animation-delay: 0.1s; }
.offer-list-item:nth-child(2) { animation-delay: 0.2s; }
.offer-list-item:nth-child(3) { animation-delay: 0.3s; }
.offer-list-item:nth-child(4) { animation-delay: 0.4s; }
.offer-list-item:nth-child(5) { animation-delay: 0.5s; }

.admin-offers-list-modal .admin-edit-modal-content {
    max-width: 900px;
}

.admin-offers-list-modal h2 {
    background: linear-gradient(135deg, #e8c5d8, #d4a5c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

body[data-page="ofertas"] .admin-edit-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    right: auto !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    z-index: 150;
    pointer-events: none;
}

body.admin-mode[data-page="ofertas"] .admin-edit-controls {
    display: flex !important;
}

body[data-page="ofertas"] .admin-edit-btn,
body[data-page="ofertas"] .admin-delete-btn {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    pointer-events: auto;
    white-space: nowrap;
}

body[data-page="ofertas"] .offer-card {
    position: relative;
}

.admin-offer-modal .admin-edit-modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98), rgba(15, 15, 20, 0.98));
    border: 2px solid rgba(232, 197, 216, 0.4);
    border-radius: 25px;
    padding: 45px;
    max-width: 600px;
    width: 92%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 
                0 0 100px rgba(232, 197, 216, 0.1);
    position: relative;
    overflow: hidden;
}

.admin-offer-modal .admin-edit-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 197, 216, 0.05) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.admin-offer-modal h2 {
    color: #e8c5d8;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(232, 197, 216, 0.3);
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(232, 197, 216, 0.3);
}

.admin-offer-modal .form-group {
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.admin-offer-modal label {
    display: block;
    margin-bottom: 12px;
    color: #e8c5d8;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-offer-modal input,
.admin-offer-modal select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(15, 15, 20, 0.95);
    border: 2px solid rgba(232, 197, 216, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.admin-offer-modal input:focus,
.admin-offer-modal select:focus {
    outline: none;
    border-color: #e8c5d8;
    background: rgba(15, 15, 20, 1);
    box-shadow: 0 0 0 5px rgba(232, 197, 216, 0.15),
                0 5px 20px rgba(232, 197, 216, 0.2);
    transform: translateY(-2px);
}

.admin-offer-modal input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(30, 30, 35, 0.5);
}

.admin-offer-modal small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.5;
    font-style: italic;
}

.admin-offer-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.admin-offer-modal .form-row .form-group {
    margin-bottom: 0;
}

.admin-offer-modal .admin-edit-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(85, 85, 85, 0.3);
    position: relative;
    z-index: 1;
}

.admin-offer-modal .admin-save-btn {
    flex: 1;
    padding: 18px 28px;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: linear-gradient(135deg, #e8c5d8, #d4a5c4);
    color: #000;
    box-shadow: 0 6px 25px rgba(232, 197, 216, 0.4);
    position: relative;
    overflow: hidden;
}

.admin-offer-modal .admin-save-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.admin-offer-modal .admin-save-btn:hover::before {
    width: 400px;
    height: 400px;
}

.admin-offer-modal .admin-save-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(232, 197, 216, 0.6);
}

.admin-offer-modal .admin-save-btn:active {
    transform: translateY(-2px);
}

.admin-offer-modal .admin-cancel-btn {
    flex: 1;
    padding: 18px 28px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: rgba(60, 60, 65, 0.6);
    color: #fff;
    border: 2px solid rgba(85, 85, 85, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.admin-offer-modal .admin-cancel-btn:hover {
    background: rgba(70, 70, 75, 0.9);
    border-color: rgba(100, 100, 105, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.admin-offers-list-modal .admin-edit-modal-content {
    max-width: 950px;
    padding: 50px;
}

.admin-offers-list-modal h2 {
    color: #e8c5d8;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 3px 15px rgba(232, 197, 216, 0.4);
    background: linear-gradient(135deg, #e8c5d8, #d4a5c4, #e8c5d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.offers-list-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 15px;
    margin-top: 25px;
}

.offers-list-container::-webkit-scrollbar {
    width: 12px;
}

.offers-list-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.offers-list-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e8c5d8, #d4a5c4);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.offers-list-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d4a5c4, #c08fb0);
}

.offer-list-item {
    background: linear-gradient(135deg, rgba(40, 40, 45, 0.9), rgba(30, 30, 35, 0.9));
    border: 2px solid rgba(232, 197, 216, 0.2);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.offer-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 197, 216, 0.15), transparent);
    transition: left 0.6s ease;
}

.offer-list-item:hover::before {
    left: 100%;
}

.offer-list-item:hover {
    border-color: rgba(232, 197, 216, 0.7);
    background: linear-gradient(135deg, rgba(45, 45, 50, 0.95), rgba(35, 35, 40, 0.95));
    transform: translateX(8px) scale(1.01);
    box-shadow: 0 8px 30px rgba(232, 197, 216, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.offer-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(232, 197, 216, 0.2);
}

.offer-list-header h4 {
    color: #e8c5d8;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.offer-list-badge {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.offer-list-badge.status-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    animation: badge-pulse-active 2s ease-in-out infinite;
}

.offer-list-badge.status-inactive {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: rgba(255, 255, 255, 0.9);
}

@keyframes badge-pulse-active {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.7);
    }
}

.offer-list-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(232, 197, 216, 0.1);
}

.offer-list-details span {
    color: rgba(204, 204, 204, 0.8);
    font-size: 14px;
    line-height: 1.7;
}

.offer-list-details strong {
    color: #fff;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-list-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mini-btn {
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.mini-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.mini-btn:hover::before {
    width: 350px;
    height: 350px;
}

.mini-btn:hover {
    transform: translateY(-4px);
}

.mini-btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
}


@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.offer-list-item {
    animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.offer-list-item:nth-child(1) { animation-delay: 0.05s; }
.offer-list-item:nth-child(2) { animation-delay: 0.1s; }
.offer-list-item:nth-child(3) { animation-delay: 0.15s; }
.offer-list-item:nth-child(4) { animation-delay: 0.2s; }
.offer-list-item:nth-child(5) { animation-delay: 0.25s; }
.offer-list-item:nth-child(6) { animation-delay: 0.3s; }


@media (max-width: 768px) {
    body[data-page="ofertas"] .admin-edit-controls {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    body[data-page="ofertas"] .admin-edit-btn,
    body[data-page="ofertas"] .admin-delete-btn {
        padding: 7px 14px;
        font-size: 10px;
    }

    .admin-offer-modal .admin-edit-modal-content,
    .admin-offers-list-modal .admin-edit-modal-content {
        padding: 30px 20px;
    }

    .admin-offer-modal h2,
    .admin-offers-list-modal h2 {
        font-size: 1.8rem;
    }

    .admin-offer-modal .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .admin-offer-modal .form-row .form-group {
        margin-bottom: 28px;
    }

    .admin-offer-modal .admin-edit-modal-actions {
        flex-direction: column;
    }

    .offer-list-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .offer-list-details {
        grid-template-columns: 1fr;
    }

    .offer-list-actions {
        flex-direction: column;
    }

    .mini-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body[data-page="ofertas"] .admin-edit-controls {
        top: 10px;
        left: 10px;
    }

    .offer-list-item {
        padding: 20px 16px;
    }

    .offer-list-header h4 {
        font-size: 1.1rem;
    }
}

.orders-admin-container {
    margin-top: 30px;
}

.orders-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: #e8c5d8;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid rgba(85, 85, 85, 0.6);
    border-radius: 10px;
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #e8c5d8;
    box-shadow: 0 0 0 3px rgba(232, 197, 216, 0.15);
}

.orders-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.order-stat-card {
    background: linear-gradient(135deg, rgba(232, 197, 216, 0.1), rgba(26, 26, 26, 0.95));
    border: 2px solid rgba(232, 197, 216, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.order-stat-card:hover {
    transform: translateY(-5px);
    border-color: #e8c5d8;
    box-shadow: 0 10px 25px rgba(232, 197, 216, 0.3);
}

.order-stat-card h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.order-stat-card .stat-value {
    color: #e8c5d8;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(232, 197, 216, 0.5);
}

.admin-orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-order-card {
    background: linear-gradient(135deg, rgba(40, 40, 45, 0.9), rgba(30, 30, 35, 0.9));
    border: 2px solid rgba(85, 85, 85, 0.5);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 197, 216, 0.1), transparent);
    transition: left 0.6s ease;
}

.admin-order-card:hover::before {
    left: 100%;
}

.admin-order-card:hover {
    border-color: rgba(232, 197, 216, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(232, 197, 216, 0.2);
}

.admin-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(85, 85, 85, 0.3);
    flex-wrap: wrap;
    gap: 15px;
}

.admin-order-id {
    font-size: 1.3rem;
    font-weight: 800;
    color: #e8c5d8;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.admin-order-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 5px;
}

.admin-order-status-badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: badge-glow 2s ease-in-out infinite;
}

.admin-order-status-badge.pendiente {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.admin-order-status-badge.pagado {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.admin-order-status-badge.enviado {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
}

.admin-order-status-badge.entregado {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.admin-order-status-badge.cancelado {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(232, 197, 216, 0.5);
    }
}

.admin-order-customer {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.admin-order-customer h4 {
    color: #e8c5d8;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.customer-info-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.customer-info-item strong {
    color: #fff;
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-order-items {
    margin-bottom: 20px;
}

.admin-order-items h4 {
    color: #e8c5d8;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(85, 85, 85, 0.3);
    transition: all 0.3s ease;
}

.admin-order-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(232, 197, 216, 0.4);
}

.admin-order-item-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
}

.admin-order-item-quantity {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    min-width: 80px;
    text-align: center;
}

.admin-order-item-price {
    color: #e8c5d8;
    font-weight: 700;
    font-size: 15px;
    min-width: 100px;
    text-align: right;
}

.admin-order-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.order-total-row.final {
    padding-top: 15px;
    border-top: 2px solid rgba(85, 85, 85, 0.5);
    font-size: 1.3rem;
    font-weight: 800;
    color: #e8c5d8;
}

.order-total-row.final .value {
    color: #e8c5d8;
    text-shadow: 0 0 10px rgba(232, 197, 216, 0.5);
}

.admin-order-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.order-status-select {
    flex: 1;
    min-width: 200px;
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid rgba(85, 85, 85, 0.6);
    border-radius: 10px;
    color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-status-select:focus {
    outline: none;
    border-color: #e8c5d8;
    box-shadow: 0 0 0 3px rgba(232, 197, 216, 0.15);
}

.btn-update-status {
    padding: 12px 24px;
    background: linear-gradient(135deg, #e8c5d8, #d4a5c4);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(232, 197, 216, 0.3);
}

.btn-update-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 197, 216, 0.5);
}

.btn-order-details {
    padding: 12px 24px;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-order-details:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.empty-orders-admin {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-orders-admin svg {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    opacity: 0.3;
    stroke: #e8c5d8;
}

.empty-orders-admin h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-orders-admin p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.loading-orders {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(232, 197, 216, 0.2);
    border-top-color: #e8c5d8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


@media (max-width: 768px) {
    .orders-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select,
    .filter-group input {
        min-width: 100%;
    }
    
    .orders-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-order-header {
        flex-direction: column;
    }
    
    .customer-info {
        grid-template-columns: 1fr;
    }
    
    .admin-order-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-order-item-quantity,
    .admin-order-item-price {
        min-width: auto;
        text-align: left;
    }
    
    .admin-order-actions {
        flex-direction: column;
    }
    
    .order-status-select,
    .btn-update-status,
    .btn-order-details {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-order-card {
        padding: 20px 15px;
    }
    
    .admin-order-id {
        font-size: 1.1rem;
    }
    
    .admin-order-status-badge {
        font-size: 11px;
        padding: 8px 16px;
    }
    
    .order-stat-card .stat-value {
        font-size: 28px;
    }
}

.admin-mode-indicator {
    position: fixed !important;
    top: 140px !important;
    right: 30px !important;
    left: auto !important;
    bottom: auto !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 10px 24px !important;
    width: auto !important;
    max-width: 520px !important;

    height: 52px !important;
    max-height: 52px !important;
    min-height: 52px !important;
    overflow: hidden !important;

    border-radius: 999px !important;
    box-sizing: border-box !important;

    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    z-index: 9998 !important;
}

.admin-mode-indicator span,
.admin-mode-indicator button {
    line-height: 1.2 !important;
}


