:root {
    --background: #E0E5EC;
    --text-color: #333;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.6);
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: var(--background);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.shop-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 30px;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.shop-header h2 {
    margin: 0;
}

.search-container {
    width: 100%;
    margin-bottom: 20px;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-sizing: border-box;
    background-color: var(--glass-bg);
    font-family: inherit;
    font-size: 1em;
}

.item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.item h3 {
    margin-top: 0;
}

.item button,
.back-button {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-family: inherit;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 10px;
}

.shop-header .back-button {
    margin-top: 0;
}

.item button:hover,
.back-button:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

/* Confirmation Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #444;
    color: #f0f0f0;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

.modal-content p {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1em;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: transform 0.2s;
    text-transform: uppercase;
    background-color: #777;
    color: #fff;
}

.modal-buttons button:hover {
    transform: translateY(-2px);
}

#confirm-buy-btn {
    background-color: #999;
}

#cancel-buy-btn {
    background-color: #666;
}

/* Button processing styles */
.item button.processing {
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.coin-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}
