/* =============================================
   STYLE.CSS - Main Stylesheet
   ============================================= */

/* === CSS Variables === */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --dark-light: #374151;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light: #f3f4f6;
    --white: #ffffff;
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Alegreya', serif;
}
/* Tắt double-tap zoom trên mobile */
* {
    touch-action: manipulation;
}
html {
    overflow-x: hidden;
}
/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Badge cho thuê */
.account-card-badge.badge-rent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

/* === RENT PAGE === */

/* Info Box */
.rent-info-box {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 1px solid #f59e0b;
    position: relative;
    z-index: 1;
}

.rent-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #92400e;
}

.rent-info-item i {
    font-size: 20px;
    color: #d97706;
}

@media (max-width: 768px) {
    .rent-info-box {
        flex-direction: column;
        gap: 12px;
    }
}

/* No Accounts */
.no-accounts {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
    position: relative;
    z-index: 1;
}

.no-accounts i {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 16px;
    display: block;
}

.no-accounts h3 {
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.no-accounts p {
    color: #6b7280;
    margin-bottom: 20px;
}

/* Rent Price */
.rent-price {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #d97706 !important;
}

.rent-price i {
    font-size: 16px;
}

/* === ACCOUNT DETAIL - RENT === */

/* Badge loại tài khoản */
.account-detail-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.badge-type-rent {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Giá bán + Giá thuê */
.account-detail-prices {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #6b7280;
    min-width: 100px;
}

.price-label i {
    font-size: 18px;
}

.price-value {
    font-size: 28px;
    font-weight: 800;
}

.price-sale .price-value {
    color: #6366f1;
}

.price-rent .price-value {
    color: #d97706;
}

/* Badge Cho thuê trong card */
.account-card-badge.badge-rent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Giá thuê trong card */
.rent-price {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #d97706 !important;
}

.rent-price i {
    font-size: 14px;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('https://shopaccidentityv.com//assets/images/dark-bg-genshin.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Platform Button === */
.account-card-btn.platform-ios {
    background: linear-gradient(135deg, #007AFF, #0055D4);
}

.account-card-btn.platform-ios:hover {
    background: linear-gradient(135deg, #0055D4, #003D99);
}

.account-card-btn.platform-android {
    background: linear-gradient(135deg, #3DDC84, #00C853);
}

.account-card-btn.platform-android:hover {
    background: linear-gradient(135deg, #00C853, #00A844);
}

/* === Header === */
.header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-link.active {
    background: var(--primary);
    color: var(--white);
}

.nav-link i {
    font-size: 18px;
}

.menu-toggle {
    display: none;
    padding: 8px;
    font-size: 22px;
    color: var(--white);
}

/* === Mobile Navigation === */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1001;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.mobile-nav-close {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-nav-links {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: var(--radius);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.mobile-nav-link i {
    font-size: 22px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === Main Content === */
.main {
    padding: 20px 0 40px;
    flex: 1;
}

/* === Section === */
.section {
    padding: 20px 0;
}

/* === Banner === */
.banner {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* === Section Title === */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px #69e0ff, 0 0 20px #69e0ff, 0 0 40px #69e0ff;
}

.section-title h2 i {
    color: var(--primary-light);
}

/* === Sort & Filter === */
.sort-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 10px 15px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.sort-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* === Account Grid === */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* === Account Card === */
.account-card {
    background: linear-gradient(90deg, rgba(228, 214, 200, 1) 0%, rgba(239, 231, 225, 1) 50%, rgba(228, 214, 200, 1) 100%);
    border: 2px solid #e6d9cd;
    box-shadow: 0 0 0 2px #bfa48e, 0 0 0 4px #e6d9cd;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    position: relative;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
    z-index: 10;
    pointer-events: none;
}

.account-card:hover::before {
    left: 100%;
}

.account-card:hover {
    transform: translateY(-10px);
}

/* === Sold Account Overlay === */
.account-card.sold {
    opacity: 0.85;
}

.account-card.sold:hover {
    transform: none;
}

.account-card.sold:hover::before {
    left: -100%;
}

.account-card.sold .account-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.sold-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    z-index: 5;
    padding: 15px 40px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: 3px solid #fff;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.account-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.account-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.account-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 5;
}

.account-card-badge.sold {
    background: var(--danger);
}

.account-card-content {
    padding: 20px;
    position: relative;
    z-index: 5;
}

.account-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.account-card-title a:hover {
    color: var(--primary);
}

.account-card-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 15px;
    margin-bottom: 15px;
}

.account-card-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray);
}

.account-card-item i {
    font-size: 15px;
    color: var(--primary);
    width: 18px;
}

.account-card-item strong {
    color: var(--dark);
}

.account-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(191, 164, 142, 0.3);
}

.account-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

.account-card-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.account-card-btn:hover {
    background: var(--primary-dark);
}

.account-card-btn.sold {
    background: var(--gray-light);
    cursor: not-allowed;
}

/* === Pagination === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.page-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.page-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* === Echo Packages === */
.echoes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.echo-card {
    background: linear-gradient(90deg, rgba(228, 214, 200, 1) 0%, rgba(239, 231, 225, 1) 50%, rgba(228, 214, 200, 1) 100%);
    border: 2px solid #e6d9cd;
    box-shadow: 0 0 0 2px #bfa48e, 0 0 0 4px #e6d9cd;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.echo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
    z-index: 10;
    pointer-events: none;
}

.echo-card:hover::before {
    left: 100%;
}

.echo-card:hover {
    transform: translateY(-10px);
}

.echo-card-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    padding: 5px 40px;
    background: var(--danger);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 15;
}

.echo-card-badge.hot {
    background: var(--warning);
}

.echo-card-badge.best {
    background: var(--secondary);
}

.echo-card-badge.vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.echo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.echo-icon i {
    font-size: 40px;
    color: var(--white);
}

.echo-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
    position: relative;
    z-index: 5;
}

.echo-label {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

.echo-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 10px;
    position: relative;
    z-index: 5;
}

.echo-original {
    font-size: 16px;
    color: var(--gray-light);
    text-decoration: line-through;
    margin-bottom: 10px;
    position: relative;
    z-index: 5;
}

.echo-discount {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

.echo-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    z-index: 5;
}

.echo-btn:hover {
    background: var(--primary-dark);
}

/* === Footer === */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-contact h4 i {
    color: var(--primary-light);
    margin-right: 8px;
}

.contact-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.contact-item i {
    font-size: 20px;
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* === Modal === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    font-size: 20px;
    color: var(--gray);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    font-size: 22px;
    color: var(--dark);
}

.modal-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.modal-body {
    text-align: center;
}

.qr-image {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.qr-image img {
    max-width: 200px;
    margin: 0 auto;
}

.payment-info {
    text-align: left;
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--white);
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-item i {
    font-size: 20px;
    color: var(--primary);
    width: 28px;
}

.payment-item strong {
    color: var(--dark);
}

.payment-amount strong {
    color: var(--danger);
    font-size: 18px;
}

.payment-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: #fef3c7;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    text-align: left;
}

.payment-notice i {
    font-size: 20px;
    color: var(--warning);
    flex-shrink: 0;
}

.payment-notice p {
    font-size: 14px;
    color: var(--dark);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-block {
    width: 100%;
}

/* === Loading Overlay - Beautiful Design === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.97));
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Hexagon Spinner */
.loading-hexagon {
    position: relative;
    width: 100px;
    height: 100px;
}

.loading-hexagon::before,
.loading-hexagon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.loading-hexagon::before {
    border: 4px solid transparent;
    border-top-color: #69e0ff;
    border-right-color: #69e0ff;
    animation: hexagonSpin 1.5s linear infinite;
}

.loading-hexagon::after {
    border: 4px solid transparent;
    border-bottom-color: #a855f7;
    border-left-color: #a855f7;
    animation: hexagonSpin 1.5s linear infinite reverse;
    animation-delay: 0.3s;
}

.loading-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f472b6;
    animation: hexagonSpin 1s linear infinite;
}

@keyframes hexagonSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pulse Dots Animation */
.loading-dots {
    display: flex;
    gap: 12px;
}

.loading-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
    background: #69e0ff;
    animation-delay: 0s;
}

.loading-dot:nth-child(2) {
    background: #a855f7;
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    background: #f472b6;
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Loading Text */
.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(105, 224, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(105, 224, 255, 0.8), 0 0 40px rgba(105, 224, 255, 0.4);
    }
}

/* === Toast === */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--secondary);
    color: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 4000;
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 22px;
}

/* === Skeleton Loading === */
.skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton-image {
    height: 200px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(168, 85, 247, 0.1) 50%,
        rgba(99, 102, 241, 0.1) 100%
    );
}

.skeleton-text {
    height: 16px;
    margin: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
}

.skeleton-text-sm {
    height: 12px;
    margin: 10px 20px;
    width: 60%;
    background: rgba(255, 255, 255, 0.08);
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-price {
    width: 80px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.skeleton-btn {
    width: 100px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

/* === Animation === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-card:nth-child(1) { animation-delay: 0.1s; }
.account-card:nth-child(2) { animation-delay: 0.15s; }
.account-card:nth-child(3) { animation-delay: 0.2s; }
.account-card:nth-child(4) { animation-delay: 0.25s; }
.account-card:nth-child(5) { animation-delay: 0.3s; }
.account-card:nth-child(6) { animation-delay: 0.35s; }

.echo-card:nth-child(1) { animation-delay: 0.1s; }
.echo-card:nth-child(2) { animation-delay: 0.15s; }
.echo-card:nth-child(3) { animation-delay: 0.2s; }
.echo-card:nth-child(4) { animation-delay: 0.25s; }
.echo-card:nth-child(5) { animation-delay: 0.3s; }
.echo-card:nth-child(6) { animation-delay: 0.35s; }

/* === Account Detail === */
.account-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.account-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    background: rgba(0, 0, 0, 0.1);
}

.account-detail-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.account-detail-image.sold::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.sold-badge-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    z-index: 5;
    padding: 20px 50px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: 4px solid #fff;
    border-radius: 12px;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.6);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.account-detail-info {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.account-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.account-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 25px;
}

.account-detail-attrs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.account-detail-attr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.account-detail-attr i {
    font-size: 22px;
    color: var(--primary);
    width: 28px;
}

.account-detail-attr span {
    color: var(--gray);
    font-size: 14px;
}

.account-detail-attr strong {
    color: var(--dark);
    margin-left: auto;
}

.account-detail-desc {
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.account-detail-desc h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--dark);
}

.account-detail-desc p {
    color: var(--gray);
    line-height: 1.8;
}

.buy-btn {
    padding: 16px 40px;
    font-size: 18px;
}

.buy-btn.sold {
    background: var(--gray-light);
    cursor: not-allowed;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 80px;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray);
}

/* === Card (Echoes page) === */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--light);
}

.card-header h3 {
    font-size: 18px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 20px;
}

.card-body ol {
    padding-left: 20px;
    line-height: 2;
    color: var(--dark);
}

.card-body li strong {
    color: var(--primary);
}

/* === Responsive === */
@media (max-width: 992px) {
    .account-detail {
        grid-template-columns: 1fr;
    }
    
    .echoes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 70px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .accounts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .echoes-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .contact-items {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .account-card-image {
        height: 150px;
    }
    
    .account-card-content {
        padding: 15px;
    }
    
    .account-card-title {
        margin-bottom: 10px;
    }
    
    .account-card-info {
        gap: 6px 10px;
    }
    
    .account-card-item {
        font-size: 13px;
    }
    
    .account-card-item i {
        font-size: 13px;
        width: 16px;
    }
    
    .account-card-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .account-detail-attrs {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .loading-hexagon {
        width: 80px;
        height: 80px;
    }
    
    .loading-inner {
        width: 50px;
        height: 50px;
    }
    
    .loading-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .account-card-image {
        height: 200px;
    }
    
    .echo-card {
        padding: 20px;
    }
    
    .echo-amount {
        font-size: 28px;
    }
    
    .echo-price {
        font-size: 20px;
    }
    
    .sold-overlay {
        font-size: 18px;
        padding: 12px 30px;
        letter-spacing: 2px;
    }
    
    .sold-badge-large {
        font-size: 24px;
        padding: 15px 35px;
        letter-spacing: 3px;
    }
}
/* === Image Placeholder === */
.account-card-image .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.account-card-image .image-placeholder i {
    font-size: 48px;
    color: #6366f1;
    opacity: 0.6;
}

.account-card-image .image-placeholder span {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
}

/* Account detail placeholder */
.account-detail-image .image-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.account-detail-image .image-placeholder i {
    font-size: 64px;
    color: #6366f1;
    opacity: 0.6;
}

.account-detail-image .image-placeholder span {
    font-size: 14px;
    color: #64748b;
    margin-top: 10px;
}
/* === Services Section === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: linear-gradient(90deg, rgba(228, 214, 200, 1) 0%, rgba(239, 231, 225, 1) 50%, rgba(228, 214, 200, 1) 100%);
    border: 2px solid #e6d9cd;
    box-shadow: 0 0 0 2px #bfa48e, 0 0 0 4px #e6d9cd;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
    z-index: 10;
    pointer-events: none;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.service-placeholder i {
    font-size: 48px;
    color: #6366f1;
    opacity: 0.5;
}

.service-card-title {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

/* Animation delay for service cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.15s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }

/* Responsive Services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card-image {
        height: 140px;
    }
    
    .service-card-title {
        padding: 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card-image {
        height: 180px;
    }
}
/* === Lazy Loading === */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Placeholder khi ảnh đang load */
.lazy-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lazy-placeholder::before {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* === Echo Image - Diamond Style === */
.echo-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 5;
    animation: glowPulse 2s ease-in-out infinite;
}

.echo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(168, 85, 247, 1));
    }
}

/* Fallback icon khi không có ảnh */
.echo-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    transform: rotate(45deg);
    animation: glowPulse 2s ease-in-out infinite;
}

.echo-icon i {
    font-size: 48px;
    color: #a855f7;
    transform: rotate(-45deg);
}