body {
    background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #fff;
    font-family: "Segoe UI", sans-serif;
    margin: 24px;
    transition: background 0.5s;
}
h1 {
    color: #5865f2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
#items-list {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    width: 50%;
    backdrop-filter: blur(8px);
    display: table;
    table-layout: auto;
}
.item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.item-name {
    font-size: 1em;
    font-weight: 600;
    color: #e0e0e0;
    transition: color 0.3s;
}
.item-name:hover {
    color: #fff;
}
.item-price {
    color: #23a559;
    font-size: 1.1em;
    margin-left: 16px;
    margin-right: 16px;
    transition: color 0.3s;
}
.item-price:hover {
    color: #178a43;
}
.buy-btn,
.buy64-btn,
.buy32-btn {
    background: #5865f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
.buy-btn:hover,
.buy64-btn:hover,
.buy32-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}
#msg {
    margin-top: 18px;
    font-size: 15px;
    color: #23a559;
    transition: color 0.3s;
}
#msg.error {
    color: #ff5555;
}
.modal,
.cart-window,
.address-modal,
.transfer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.modal-content,
.cart-content,
.address-content,
.transfer-content {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 40px 32px 32px 32px;
    border-radius: 16px;
    max-width: 500px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.modal-content h2,
.cart-content h2,
.address-content h2 {
    margin-top: 0;
    color: #5865f2;
    font-size: 1.5em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.close-btn {
    background: #ff5555;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    float: right;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 85, 85, 0.3);
}
.close-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}
.cart-btn {
    position: fixed;
    top: 24px;
    right: 115px;
    background: #5865f2;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding-top: 10px;
    padding-left: 10px;
    font-size: 1.6em;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    transition: all 0.3s;
}
.cart-btn:hover {
    background: #4752c4;
    transform: scale(1.05);
}
.cart-count {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: #23a559;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(35, 165, 89, 0.3);
    transition: all 0.3s;
}
#cartItems {
    margin: 24px 0;
}
#cartItems div {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1em;
    transition: background 0.3s;
}
#cartItems div:hover {
    background: rgba(255, 255, 255, 0.03);
}
.item-name {
    font-weight: bold;
    margin-right: 8px;
}
.item-price {
    font-weight: bold;
}
#cartTotal {
    margin: 24px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #23a559;
}
#checkoutBtn {
    background: #23a559;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(35, 165, 89, 0.3);
}
#checkoutBtn:hover {
    background: #178a43;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(35, 165, 89, 0.4);
}

.login-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #5865f2;
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 10px 24px;
    font-size: 1em;
    cursor: pointer;
    z-index: 900;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    transition: all 0.3s;
}
.login-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}
.logout-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #ff5555;
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 10px 24px;
    font-size: 1em;
    cursor: pointer;
    z-index: 900;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 85, 85, 0.3);
    transition: all 0.3s;
}
.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}
.address-list {
    margin: 16px 0;
}
.address-list label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}
.balance-Btn {
    position: fixed;
    top: 24px;
    right: 365px;
    background: #5865f2;
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 12px 24px;
    font-size: 1em;
    cursor: pointer;
    z-index: 900;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    transition: all 0.3s;
}

/* Additional modern styles */
input[type="text"],
input[type="password"],
input[type="number"] {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    color: #fff;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
button[type="submit"],
#transferBtn {
    background: #5865f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
button[type="submit"]:hover,
#transferBtn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}
.account-tab.active {
    display: block;
}
#accountTabs button {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
}
#accountTabs button:hover {
    background: #2a2a2a;
}
#accountTabs button.active {
    background: #5865f2;
    color: #fff;
    border-color: #5865f2;
}
