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

:root {
    --neon-blue: #90b217;
    --neon-cyan: #a8c735;
    --bg-dark: #0f0f0f;
    --bg-darker: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #a2a2a2;
    --success: #90b217;
    --error: #f44336;
    --warning: #ff9800;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 8rem;
    position: relative;
}

.language-switcher-top {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

.flag-icon {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.flag-icon:hover {
    transform: scale(1.1);
    border: 2px solid #ececec;
}

.shop-header {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 100;
    margin: 0;
    padding: 0;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 7px rgba(144, 178, 23, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.header-text {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.brand-name {
    font-size: 2.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 3px rgba(144, 178, 23, 0.5), 0 2px 0 rgba(0, 0, 0, 0.5);
    font-weight: 800;
    text-transform: uppercase;
}

.separator {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.shop-name {
    font-size: 2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.shop-main {
    width: 100%;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 400px));
    gap: 2rem;
    margin-top: 1rem;
    justify-content: center;
    position: relative;
    min-height: 60vh;
}

.shop-item {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    width: 400px;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 3px 5px rgba(144, 178, 23, 0.3);
    border-color: var(--neon-blue);
}

.item-image {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.item-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--neon-blue) 20%, 
        var(--neon-cyan) 50%, 
        var(--neon-blue) 80%, 
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0;
    padding: 0;
}

.item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 4rem;
}

.item-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.item-info h3 {
    margin: 0 0 1rem 0;
    color: var(--neon-blue);
    font-size: 1.5rem;
    font-weight: 700;
    width: 100%;
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0.75rem 0;
    padding: 1rem 1.25rem;
    min-height: 3.5rem;
    line-height: 1.6;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.item-price {
    color: var(--warning);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.item-price i {
    font-size: 1.25rem;
}

.item-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.625rem 1.125rem;
    margin: 0.75rem 0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    backdrop-filter: blur(12px);
    width: 100%;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.015em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.item-stock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.item-stock:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.item-stock i {
    font-size: 0.95rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.item-stock.unlimited {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.08) 100%);
    border-color: rgba(76, 175, 80, 0.35);
    color: #a5d6a7;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.item-stock.unlimited:hover {
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(76, 175, 80, 0.45);
}

.item-stock.unlimited i {
    color: #81c784;
    filter: drop-shadow(0 0 3px rgba(76, 175, 80, 0.4));
}

.item-stock.out-of-stock {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(244, 67, 54, 0.08) 100%);
    border-color: rgba(244, 67, 54, 0.35);
    color: #ef9a9a;
    box-shadow: 0 2px 12px rgba(244, 67, 54, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.item-stock.out-of-stock:hover {
    box-shadow: 0 4px 16px rgba(244, 67, 54, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(244, 67, 54, 0.45);
}

.item-stock.out-of-stock i {
    color: #ef5350;
    filter: drop-shadow(0 0 3px rgba(244, 67, 54, 0.4));
}

.buy-button {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-cyan) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.buy-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(144, 178, 23, 0.4);
}

.buy-button:active:not(:disabled) {
    transform: translateY(0);
}

.buy-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
}

.shop-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 500px;
    width: 90%;
    z-index: 1;
}

.shop-empty::before {
    content: '\f07a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 5rem;
    color: var(--neon-blue);
    opacity: 0.5;
    display: block;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 15px rgba(144, 178, 23, 0.4));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.shop-empty span {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.6;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shop-main {
    position: relative;
    min-height: 60vh;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: var(--neon-blue);
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.close-modal:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-body strong {
    color: var(--neon-blue);
}

.item-name-section {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.item-name-section h3 {
    margin: 0 0 0.5rem 0;
    color: var(--neon-blue);
    font-size: 1.75rem;
    font-weight: 700;
}

.item-price-text {
    margin: 0;
    color: var(--warning);
    font-size: 1.25rem;
    font-weight: 600;
}

.instructions-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(144, 178, 23, 0.05);
    border: 1px solid rgba(144, 178, 23, 0.15);
    border-radius: 10px;
}

.instructions-section h4 {
    margin: 0 0 1rem 0;
    color: var(--neon-blue);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructions-section h4 i {
    font-size: 1rem;
}

.instructions-list {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.instructions-list li {
    margin-bottom: 0.5rem;
}

.instructions-list li:last-child {
    margin-bottom: 0;
}

.command-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.command-section label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.command-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.command-text {
    flex: 1;
    color: var(--neon-blue);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    border: none;
    outline: none;
    user-select: all;
}

.copy-button {
    background: rgba(144, 178, 23, 0.2);
    border: 1px solid rgba(144, 178, 23, 0.3);
    color: var(--neon-blue);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    min-width: 40px;
    height: 40px;
}

.copy-button:hover {
    background: rgba(144, 178, 23, 0.3);
    border-color: var(--neon-blue);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(144, 178, 23, 0.2);
}

.copy-button:active {
    transform: translateY(0);
}


.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-cyan) 100%);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(144, 178, 23, 0.4);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    z-index: 2000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--error);
}

.notification.warning {
    background: var(--warning);
}

/* Responsive */
@media (max-width: 768px) {
    .shop-container {
        padding: 1rem;
        padding-top: 6rem;
    }

    .shop-header {
        top: 1rem;
        left: 1rem;
    }

    .language-switcher-top {
        top: 1rem;
        right: 1rem;
    }

    .header-logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .logo-circle {
        width: 50px;
        height: 50px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .separator {
        font-size: 1.1rem;
    }

    .shop-name {
        font-size: 1.1rem;
    }

    .shop-grid {
        grid-template-columns: 400px;
        gap: 1.5rem;
        justify-content: center;
        min-height: 50vh;
    }
    
    .shop-empty {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    
    .shop-empty::before {
        font-size: 3.5rem;
    }
    
    .shop-empty span {
        font-size: 1.2rem;
    }

    .notification {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}
