/* ItemShop CSS - Customer Frontend - ACTUALIZADO */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: #2d3748;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    font-weight: bold;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

/* Shop Selector */
.shop-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    justify-content: center;
}

.shop-selector-wrapper label {
    font-weight: 500;
    white-space: nowrap;
}

.shop-selector {
    background: #4a5568;
    border: 1px solid #718096;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    min-width: 250px;
    cursor: pointer;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
}

.cart-btn {
    background: #667eea;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    position: relative;
}

.cart-btn:hover {
    background: #5a67d8;
}

.cart-count {
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Shop Info Banner */
.shop-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.shop-info h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.shop-info p {
    font-size: 1.2em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.shop-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.shop-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: 60vh;
}

/* Categories Filter */
.categories-filter {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Line break between category levels */
.category-line-break {
    flex-basis: 100%;
    height: 0;
    width: 100%;
}

.category-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.category-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Expand icon for parent categories */
.expand-icon {
    font-size: 0.75em;
    margin-right: 2px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.category-btn.expanded .expand-icon {
    transform: rotate(90deg);
}

/* Subcategories - Base styles */
.category-btn.subcategory {
    background: #f7fafc;
    border-color: #cbd5e0;
    margin-left: 0;
    font-size: 0.9em;
    padding: 8px 16px;
}

.category-btn.subcategory::before {
    margin-right: 4px;
    color: #a0aec0;
    font-family: monospace;
}

/* Level 1 subcategories (children of top-level) */
.category-btn.subcategory[data-level="1"]::before {
    content: '└';
}

/* Level 2 subcategories */
.category-btn.subcategory[data-level="2"] {
    background: #edf2f7;
    border-color: #a0aec0;
    font-size: 0.85em;
}

.category-btn.subcategory[data-level="2"]::before {
    content: '└└';
}

/* Level 3 subcategories */
.category-btn.subcategory[data-level="3"] {
    background: #e2e8f0;
    border-color: #718096;
    font-size: 0.8em;
}

.category-btn.subcategory[data-level="3"]::before {
    content: '└└└';
}

/* Level 4+ subcategories */
.category-btn.subcategory[data-level="4"] {
    background: #cbd5e0;
    border-color: #4a5568;
    font-size: 0.75em;
}

.category-btn.subcategory[data-level="4"]::before {
    content: '└└└└';
}

/* Hover states for all subcategory levels */
.category-btn.subcategory:hover {
    background: white;
    border-color: #667eea;
    color: #667eea;
}

/* Active states for all subcategory levels */
.category-btn.subcategory.active {
    background: #5a67d8;
    border-color: #5a67d8;
    color: white;
}

.category-btn.subcategory[data-level="2"].active {
    background: #4c51bf;
}

.category-btn.subcategory[data-level="3"].active {
    background: #434190;
}

.category-btn.subcategory[data-level="4"].active {
    background: #3c366b;
}

.category-btn.subcategory.active::before {
    color: rgba(255, 255, 255, 0.7);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.empty-state,
.no-shop-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    color: #4a5568;
    margin-bottom: 10px;
}

.empty-state p {
    color: #718096;
    font-size: 1.1em;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.item-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    position: relative;
}

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

/* Item Badge */
.item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Badge Colors */
.item-badge.popular {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.item-badge.new {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
}

.item-badge.sale {
    background: linear-gradient(135deg, #feca57, #ff9f43);
    color: white;
}

.item-badge.hot {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    color: white;
}

.item-badge.limited {
    background: linear-gradient(135deg, #54a0ff, #2e86de);
    color: white;
}

.item-badge.exclusive {
    background: linear-gradient(135deg, #5f27cd, #341f97);
    color: white;
}

.item-badge.recommended {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: white;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.item-emoji {
    font-size: 2.5em;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.item-info h3 {
    color: #2d3748;
    font-size: 1.3em;
    margin-bottom: 5px;
}

.item-code {
    color: #718096;
    font-size: 0.9em;
    font-family: monospace;
}

.item-description {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.item-price {
    font-size: 1.3em;
    font-weight: bold;
    color: #38a169;
}

.add-to-cart {
    background: #667eea;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.add-to-cart .btn-icon {
    font-size: 1em;
}

.add-to-cart:hover {
    background: #5a67d8;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background: #2d3748;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-header h3 {
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.cart-items {
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.empty-cart-icon {
    font-size: 3em;
    margin-bottom: 10px;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-emoji {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
    word-break: break-word;
}

.cart-item-price {
    color: #38a169;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.95em;
}

/* NUEVOS ESTILOS MEJORADOS PARA CONTROLES DE CANTIDAD */
.cart-item-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    background: #f7fafc;
    padding: 6px;
    border-radius: 8px;
    width: fit-content;
}

.quantity-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.quantity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.quantity-btn:active {
    transform: translateY(0);
}

.quantity-btn.decrease {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.quantity-btn.decrease:hover {
    box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
}

.quantity-btn.increase {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.quantity-btn.increase:hover {
    box-shadow: 0 4px 8px rgba(56, 161, 105, 0.3);
}

.quantity-display {
    font-weight: 700;
    color: #2d3748;
    min-width: 30px;
    text-align: center;
    font-size: 16px;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.remove-all-btn {
    background: linear-gradient(135deg, #fc8181, #e53e3e);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-left: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.2);
}

.remove-all-btn:hover {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
}

.remove-all-btn:active {
    transform: translateY(0);
}

.cart-summary {
    padding: 20px;
    border-top: 2px solid #e2e8f0;
    background: #f7fafc;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 0;
    color: #2d3748;
    margin-bottom: 15px;
}

.total-amount {
    color: #38a169;
}

.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.checkout-btn {
    background: #38a169;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    flex: 2;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #2f855a;
}

.clear-cart-btn {
    background: #e53e3e;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    flex: 1;
    transition: background 0.3s ease;
}

.clear-cart-btn:hover {
    background: #c53030;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Item Modal - ACTUALIZADO */
.item-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.item-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    background: #2d3748;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 12px 12px 0 0;
    position: relative;
    gap: 15px;
}

.modal-header h3 {
    margin: 0;
    flex: 1;
    padding-right: 10px;
    line-height: 1.4;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.modal-item-image {
    text-align: center;
    margin-bottom: 20px;
}

.modal-item-image .item-emoji {
    font-size: 4em;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.modal-item-info h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Badge en Modal - ACTUALIZADO para estar debajo del nombre */
.modal-item-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.modal-item-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.item-code {
    font-family: monospace;
    color: #718096;
}

.modal-item-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #38a169;
}

.modal-actions {
    text-align: center;
}

.add-to-cart-btn {
    background: #667eea;
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn .btn-icon {
    font-size: 1.1em;
}

.add-to-cart-btn:hover {
    background: #5a67d8;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Toast Messages - ACTUALIZADO para ser clickeable */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #38a169;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
    cursor: pointer;
    user-select: none;
    opacity: 0;
}

.toast:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

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

.toast.error {
    background: #e53e3e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .shop-selector-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .shop-selector {
        min-width: 200px;
    }
    
    .shop-info h1 {
        font-size: 2em;
    }
    
    .shop-meta {
        gap: 10px;
    }
    
    .categories-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .category-btn {
        flex-shrink: 0;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .item-modal {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-item-details {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .toast {
        right: 15px;
        bottom: 15px;
        left: 15px;
        transform: translateY(100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }

    .payment-methods {
        padding: 10px;
    }

    .payment-method-select {
        padding: 8px 10px;
    }
    
    .cart-item-quantity-controls {
        width: 100%;
        justify-content: center;
    }
    
    .user-account-section {
        padding: 10px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .checkout-btn,
    .clear-cart-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 10px;
    }
    
    .logo {
        font-size: 1.2em;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .item-card {
        padding: 15px;
    }
    
    .item-header {
        gap: 10px;
    }
    
    .item-emoji {
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
    
    .item-badge {
        font-size: 0.6em;
        padding: 3px 6px;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .remove-all-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* Category Icons */
.category-btn .category-icon {
    margin-right: 5px;
}

/* Item availability indicators */
.item-card.unavailable {
    opacity: 0.6;
    pointer-events: none;
}

.item-card.unavailable .add-to-cart {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* Loading skeleton for items */
.skeleton-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skeleton-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.skeleton-emoji {
    width: 60px;
    height: 60px;
    background: #e2e8f0;
    border-radius: 10px;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-info {
    flex: 1;
}

.skeleton-line {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes skeleton-loading {
    0% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Payment Methods */
.payment-methods {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    margin-bottom: 12px;
}

.payment-methods-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-methods-selector label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9em;
}

.payment-method-select {
    padding: 8px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.payment-method-select:hover {
    border-color: #cbd5e0;
}

.no-payment-methods {
    text-align: center;
    color: #718096;
    font-size: 0.85em;
    padding: 8px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px dashed #e2e8f0;
}

/* User Account/Email Input */
.user-account-section {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    margin-bottom: 12px;
    position: relative;
}

.user-account-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    transition: all 0.3s ease;
    position: relative;
}

.info-icon:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.user-account-input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
    transition: all 0.3s ease;
}

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

.user-account-input::placeholder {
    color: #a0aec0;
}

.user-account-input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.info-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    line-height: 1.4;
    margin-bottom: 8px;
    display: none;
    white-space: normal;
    max-width: 280px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d3748;
}

.info-tooltip.show {
    display: block;
    animation: fadeInTooltip 0.3s ease;
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
