/* Body Dark/Light */
body.dark { background-color: #121212; color: #fff; }
body.light { background-color: #f4f4f4; color: #121212; }
body, header, .account-card, .top-text { transition: all 0.5s ease; }

/* Header */
header { display: flex; flex-direction: column; align-items: center; padding: 1rem 2rem; background-color: #1a1a1a; }
header .header-top { width: 100%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
header .header-top h1 { margin: 0; font-size: 2rem; }
header .header-top button { padding: 0.5rem 1rem; border: none; background: linear-gradient(45deg, #ff0000, #8000ff); color: #fff; cursor: pointer; border-radius: 8px; margin-top: 0.5rem; transition: all 0.3s ease; }
header .header-top button:hover { transform: scale(1.05); }
header .top-text { text-align: center; font-size: 1rem; color: #ff0000; font-weight: bold; margin-top: 0.3rem; }

/* Hero Banner */
.hero { text-align: center; margin: 1rem 0; }
.hero img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 15px; }

/* Accounts Grid */
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; padding: 0 2rem 2rem 2rem; }
.account-card { background-color: #1f1f1f; border-radius: 15px; text-align: center; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.5); transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.account-card:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.7); }
.account-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.account-card h2 { margin: 0.5rem 0; }
.account-card .btn { display: inline-block; margin: 0.5rem 0 1rem 0; padding: 0.5rem 1rem; background: linear-gradient(45deg, #ff0000, #8000ff); color: #fff; text-decoration: none; border-radius: 8px; transition: transform 0.2s; cursor: pointer; }
.account-card .btn:hover { transform: scale(1.05); }
.top-sale { position: absolute; top: 10px; left: 10px; background-color: #ff0000; color: #fff; padding: 5px 10px; border-radius: 8px; font-weight: bold; font-size: 0.8rem; }

/* Dark/Light adjustments */
body.light header { background-color: #e0e0e0; }
body.light .top-text { color: #ff0000; }
body.light .account-card { background-color: #fff; color: #121212; }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.8); }
.modal-content { background-color: #1f1f1f; margin: 5% auto; padding: 20px; border-radius: 15px; width: 90%; max-width: 700px; text-align: center; position: relative; }
.modal-content h2, .modal-content p, .modal-content .price { margin: 10px 0; color: #fff; }
.modal-content a.btn { margin-top: 10px; }
.close { position: absolute; top: 10px; right: 20px; color: #fff; font-size: 30px; font-weight: bold; cursor: pointer; }
.close:hover { color: #ff0000; }
.detail-video { width: 100%; height: 400px; border-radius: 10px; margin-bottom: 10px; }

@media (max-width: 768px) { .accounts-grid { grid-template-columns: 1fr; padding: 0 1rem 2rem 1rem; } }
