/* ===================== Home page styles - Gen Z Edition ===================== */

/* Hero section with banner */
.hero-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.hero-banner {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    height: 350px;
}

.hero-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-sidebar {
    width: 350px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-sidebar__header {
    background: #000;
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.6rem;
}

.hero-sidebar__content {
    padding: 20px;
    text-align: center;
}

.hero-sidebar__empty {
    padding: 30px 0;
    color: #888;
    font-size: 1.5rem;
}

.hero-sidebar__btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius-pill);
    border: none;
    padding: 12px 20px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    margin-top: 10px;
    width: 100%;
}

.hero-sidebar__btn:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* ===================== Menu Transaction ===================== */
.menu {
    margin-bottom: 60px;
}

.menu__header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.menu__header__title {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.menu__header__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius-pill);
}

/* Transaction List */
.transaction__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.transaction__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.transaction__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.transaction__item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.transaction__item:hover::before {
    opacity: 1;
}

.transaction__item:hover .text__transaction__item {
    color: white;
}

.transaction__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-circle);
    transition: var(--transition);
    overflow: hidden;
}

.transaction__item:hover .transaction__icon {
    background-color: rgba(255, 255, 255, 0.2);
}

.transaction__img { object-fit: contain; }

.text__transaction__item {
    font-weight: 700;
    font-size: 1.4rem;
    transition: var(--transition);
}

/* ===================== Category List ===================== */
.category__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC: 4 box */
    gap: 25px;
}

.category__item {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category__item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.1);
}

.category__img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.category__desc {
    margin: 0 15px 5px;
    color: var(--text-light);
    font-size: 1.3rem;
    text-align: center;
}

.category__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px;
    min-height: 50px;
    align-items: center;
}

.category__action:hover { transform: translateY(-3px); }

/* ===================== Alert (Thông báo) đứng yên ===================== */
.service__alert {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #1e1e1e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
}

.service__alert--success { border-left: 5px solid #4caf50; }
.service__alert--error { border-left: 5px solid #f44336; }
.service__alert-content { font-size: 1.5rem; font-weight: 500; }
.service__alert-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    margin-left: auto;
    cursor: pointer;
}

/* ===================== Welcome Modal ===================== */
.welcome-modal-overlay {
    position: fixed;
    inset: 0;
    display: none; /* JS sẽ bật thành flex */
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

.welcome-modal {
    width: 90%;
    max-width: 600px;
    background: linear-gradient(145deg, #ffffff, #f5f8ff);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2), 0 0 30px rgba(14,62,218,0.2);
    overflow: hidden;
}

.welcome-modal__header {
    position: relative;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-align: center;
}

.welcome-modal__title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary-color, #0e3eda);
    text-transform: uppercase;
}

.welcome-modal__close {
    position: absolute;
    top: 10px; right: 10px;
    width: 36px; height: 36px;
    border: none; outline: none;
    border-radius: 50%;
    background: transparent;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: .2s;
}
.welcome-modal__close:hover {
    background: rgba(0,0,0,0.06);
    color: #111;
    transform: rotate(90deg);
}

.welcome-modal__body { padding: 20px 24px; }
.welcome-modal__icon {
    display: block;
    width: 35%;
    max-width: 200px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.welcome-modal__feature-list {
    margin-top: 12px;
    background: rgba(255,255,255,.7);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 3px 8px rgba(0,0,0,.05);
}

.welcome-modal__feature-item {
    display: flex; align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e6f5;
}
.welcome-modal__feature-item:last-child { border-bottom: 0; }

.welcome-modal__feature-icon {
    width: 38px; height: 38px;
    margin-right: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color,#0e3eda), #6ea8ff);
    box-shadow: 0 3px 6px rgba(14,62,218,.2);
}

.welcome-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0,0,0,.06);
    text-align: center;
    background: rgba(245,247,255,.6);
}

.welcome-modal__btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 0; border-radius: 999px;
    font-weight: 700; font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color,#0e3eda), #0b2fa6);
    box-shadow: 0 5px 15px rgba(14,62,218,.3);
    cursor: pointer; transition: .2s;
}
.welcome-modal__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14,62,218,.4);
}

/* ===================== Recent Transactions chạy ngang ===================== */
/* ===================== Recent Transactions chạy ngang ===================== */
/* ===================== Recent Transactions chạy ngang ===================== */
.recent-transactions__marquee {
    overflow: hidden;
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.recent-transactions__track {
    display: inline-flex;        /* chạy theo hàng ngang */
    gap: 50px;                   /* khoảng cách giữa các item */
    white-space: nowrap;
    width: max-content;
    animation: tickerX 25s linear infinite;
}

.recent-transactions__track:hover {
    animation-play-state: paused;
}

@keyframes tickerX {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.recent-transactions__item {
    display: inline-block;
    padding: 0 30px;
    font-size: 1.4rem;
    white-space: nowrap;
}

.recent-transactions__username { font-weight: bold; color: #ffd700; }
.recent-transactions__time { color: #aaa; margin: 0 5px; }
.recent-transactions__amount { color: #4caf50; font-weight: bold; margin-left: 5px; }

/* ===================== Fix Scroll khi mở modal ===================== */
body.modal-open { overflow: hidden; }
