/* Màu sắc mới */
:root {
    --bg-main: #0a0e1a; /* Nền tối */
    --bg-card: #182033; /* Màu nền cho các thẻ */
    --bg-header-footer: transparent; /* Nền trong suốt cho header */
    --text-primary: #e0e7ff; /* Màu chữ chính */
    --text-secondary: #94a3b8; /* Màu chữ phụ */
    --accent-color: #7c3aed; /* Màu nhấn chính (tím) */
    --accent-color-light: #a855f7; /* Màu nhấn sáng hơn */
    --border-color: #374151; /* Màu đường viền */
    --shadow-color: rgba(0, 0, 0, 0.3); /* Màu bóng đổ */
    --accent-pink-purple: #c084fc; /* Màu tím hồng cho nút */
}

#theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    outline: none;
    flex-grow: 1;
}

/* Định nghĩa màu sắc cho chế độ sáng */
body.light {
    --bg-main: #f0f2f5;
    --bg-card: #ffffff;
    --bg-header-footer: transparent;
    --text-primary: #212529;
    --text-secondary: #495057;
    --accent-color: #a855f7;
    --accent-color-light: #d946ef;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.light .payment-item {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light .payment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 12px rgba(173, 216, 230, 0.6);
}

body.light .bank-name,
body.light .account-owner,
body.light .account-number {
    color: var(--text-primary);
}


body.light .background-animation {
    background: linear-gradient(
        135deg,
        var(--accent-color),
        var(--bg-main) 50%,
        var(--bg-main)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
    opacity: 0.7;
}

body.light .nav-container {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(173, 216, 230, 0.5);
}

body.light .nav-container a,
body.light #theme-toggle-btn {
    color: var(--text-secondary);
}

body.light .social-button {
    background-color: #e9ecef;
    color: var(--text-secondary);
    border: 1px solid #ced4da;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 10px rgba(173, 216, 230, 0.5);
}

body.light .social-button:hover {
    background-image: linear-gradient(to right, #add8e6, #f08080);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(173, 216, 230, 0.6);
}

body.light .tweak-item {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light .bg-bg-card {
    background-color: #ffffff;
    color: var(--text-primary);
    border: 1px solid #ced4da;
}

body.light input::placeholder {
    color: #adb5bd;
}

body.light .copyright-container p {
    color: #495057;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--accent-color),
        var(--bg-main) 50%,
        var(--bg-main)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
    opacity: 0.7;
    transition: background 0.5s ease, opacity 0.5s ease;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.main-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

p.max-w-2xl {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Nav container */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1e2f;
    border-radius: 9999px;
    padding: 0.3rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 15px rgba(137, 207, 240, 0.4);
    overflow: hidden;
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.nav-container a,
#theme-toggle-btn {
    position: relative;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    flex-grow: 1;
    text-align: center;
}

.nav-container a:hover,
.nav-container a:focus,
.nav-container a:active,
#theme-toggle-btn:hover,
#theme-toggle-btn:focus,
#theme-toggle-btn:active {
    background-image: linear-gradient(to right, #89cff0, #a855f7);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(137, 207, 240, 0.6);
    outline: none;
    transform: scale(1.05);
}

body.light .nav-container a:hover,
body.light .nav-container a:focus,
body.light .nav-container a:active,
body.light #theme-toggle-btn:hover,
body.light #theme-toggle-btn:focus,
body.light #theme-toggle-btn:active {
    background-image: linear-gradient(to right, #add8e6, #f08080);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(173, 216, 230, 0.6);
    transform: scale(1.05);
}

.nav-container a:active,
#theme-toggle-btn:active {
    transform: scale(0.95);
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    object-fit: cover;
    border: 5px solid #89cff0;
    box-shadow: 0 0 20px rgba(137, 207, 240, 0.7);
    transition: transform 0.8s ease-in-out, border-color 0.8s ease-in-out;
}

.avatar:hover {
    transform: rotate(360deg);
    border-color: #a855f7;
}

.social-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background-color: #1a1e2f;
    border-radius: 9999px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 0 15px rgba(137, 207, 240, 0.4);
    text-align: center;
}

.social-button i {
    margin-right: 0.5rem;
}

.social-button:hover {
    background-image: linear-gradient(to right, #89cff0, #a855f7);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(137, 207, 240, 0.6);
    transform: scale(1.05);
}

.payment-buttons-grid-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.payment-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease, border-color 0.5s ease;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(137, 207, 240, 0.4);
    text-align: left;
    overflow: hidden;
    background-color: rgba(30, 41, 59, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.payment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(137, 207, 240, 0.7);
}

.payment-main-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0;
    flex-grow: 1;
}

.payment-info-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
}

.payment-qr-code {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.bank-name, .account-owner {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    line-height: 1.2;
    font-weight: 700;
}

.account-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.account-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: normal;
}

.copy-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    background-color: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.copy-btn:hover {
    background-color: var(--accent-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Toast notification styling */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(30, 41, 59, 0.9);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 1rem auto;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-sizing: border-box;
    }
    .nav-container a, .nav-container button {
        flex-grow: 1;
        text-align: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .payment-buttons-grid-vertical {
        max-width: 90%;
    }
    .payment-main-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .payment-info-block {
        text-align: center;
    }
    .account-info-row {
        justify-content: center;
        align-items: baseline;
        flex-wrap: nowrap;
    }
    .account-number {
        font-size: 1rem;
        font-weight: 700;
        white-space: nowrap;
    }
    .copy-btn {
        margin-left: 0.5rem;
    }
    .payment-qr-code {
        width: 100px;
        height: 100px;
        margin-top: 1rem;
    }
}

@media (min-width: 769px) {
    .payment-main-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        gap: 1rem;
    }
    .payment-info-block {
        text-align: left;
    }
    .payment-qr-code {
        width: 60px;
        height: 60px;
        margin-top: 0;
    }
    .account-info-row {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .social-buttons-grid {
        grid-template-columns: 1fr;
    }
}

#raindrop-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.copyright-container {
    text-align: center;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.copyright-container p {
    color: var(--text-secondary);
    opacity: 0.8;
    font-size: 0.9rem;
}

.thank-you-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.9;
    transition: color 0.5s ease;
}

/* ▼▼▼ PHẦN ĐƯỢC CẬP NHẬT ▼▼▼ */
/* Hiệu ứng màu chữ mới cho REPO JTISVN (Sáng xanh - trắng) */
.shimmering-text {
    background-image: linear-gradient(
        -75deg,
        #89cff0 0%,
        #e0e7ff 50%,
        #89cff0 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}