/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 76px; /* Add padding to account for fixed navbar */
}

/* Main Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff !important;
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.navbar-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.nav-link {
    color: rgba(255,255,255,.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.2s ease;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.nav-link:hover i {
    opacity: 1;
}

/* Dropdown styles */
.dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.dropdown-item i {
    font-size: 1rem;
    color: #64748b;
}

.dropdown-item:hover i {
    color: #0ea5e9;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e2e8f0;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.card-body {
    display: flex;
    flex-direction: column;
}

.card-body-home {
    display: flex;
    flex-direction: column;
    max-height: 40vh;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 2rem;
    color: #0ea5e9;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0.5rem 0;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.balance-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.balance-card .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    width: 100%;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.balance-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Transaction History */
.transaction-history {
    margin-top: 20px;
}

.transaction-history .card-body {
    padding: 0;
    max-height: 50vh;
    overflow-y: auto;
}

.transaction-history table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-history th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    position: sticky;
    top: 0;
    z-index: 1;
}

.transaction-history td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.transaction-history tr:hover {
    background-color: #f8f9fa;
}

/* Màu sắc cho số tiền */
.transaction-history td:nth-child(2) {
    font-weight: 500;
}

td.amount-negative {
    color: #ef4444 !important;
    font-weight: 500;
}

td.amount-positive {
    color: #10b981 !important;
    font-weight: 500;
}

/* Số dư */
.transaction-history td:nth-child(3) {
    color: #8b5cf6;
    font-weight: 500;
}

/* Nội dung giao dịch */
.transaction-content {
    color: #000000 !important;
    font-weight: normal;
}

/* Mã giao dịch */
.transaction-history td:nth-child(5) {
    color: #3b82f6;
    font-weight: 500;
}

/* Thời gian */
.transaction-history td:nth-child(1) {
    color: #64748b;
}

/* Scrollbar */
.transaction-history .card-body::-webkit-scrollbar {
    width: 6px;
}

.transaction-history .card-body::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.transaction-history .card-body::-webkit-scrollbar-thumb {
    background-color: #0ea5e9;
    border-radius: 3px;
}

/* Main Content Container */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 30px;
    margin-top: 1rem;
    padding: 2rem 1rem;
}

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .transaction-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Payment Method Cards */
.payment-method-card {
    text-align: center;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-card:hover, .payment-method-card.active {
    border-color: #1a237e;
    background-color: rgba(26,35,126,.05);
}

.payment-icon {
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 1rem;
}

/* QR Code Section */
.qr-section {
    text-align: center;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.qr-container {
    background: #fff;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    max-width: 100%;
    display: inline-block;
}

.qr-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.qr-container img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    object-fit: contain;
}

.qr-wrapper {
    text-align: center;
}

.qr-wrapper p {
    margin: 0.5rem 0 0;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Bank Info */
.bank-info {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid rgba(0,0,0,.1);
    height: calc(100% - 2rem); /* Đảm bảo chiều cao bằng với phần lịch sử */
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: #0ea5e9;
    margin-right: 1rem;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.info-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Card Headers */
.card-header h5 {
    font-size: 1rem;
}

/* Transaction List */
.transaction-list-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.transaction-list {
    flex: 1;
    height: calc(100vh - 300px);
    max-height: 500px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.1);
}

.transaction-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.transaction-item:hover {
    background-color: #f8f9fa;
}

.transaction-time {
    font-size: 0.85rem;
    color: #666;
}

.transaction-amount {
    font-weight: 600;
    color: #0ea5e9;
}

.transaction-balance {
    font-size: 0.9rem;
    color: #666;
}

.transaction-id {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6, #0ea5e9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .qr-container {
        margin: 0.5rem 0;
    }
    
    .card-body {
        padding: 1rem;
        max-height: 70vh;
    }
    
    .transaction-list {
        max-height: 50vh;
    }

    .main-navbar {
        padding: 0.5rem;
    }

    .main-navbar .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }

    .main-footer .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-footer .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-footer .footer-payment {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    min-height: 100vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-icon {
    font-size: 3rem;
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.login-card .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.login-card .form-control:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

.login-card .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.login-card .btn-primary {
    padding: 0.75rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

.login-card .alert {
    border-radius: 8px;
    border: none;
}

/* Remove unused styles */
.payment-method-card,
.payment-icon {
    display: none;
}

/* API Documentation Styles */
.api-docs-sidebar {
    background: #0ea5e9 !important;
    width: 250px;
    position: fixed;
    top: 76px;
    bottom: 0;
    left: 0;
    z-index: 1030;
    overflow-y: auto;
    padding: 20px 0;
    height: calc(100vh - 76px);
}

.api-docs-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.api-docs-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.api-docs-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-right: 3px solid white;
}

.api-docs-sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.api-key-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
}

.api-key-box code {
    font-size: 1rem;
    color: #1a237e;
}

.copy-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.endpoint-item {
    margin-bottom: 2rem;
}

.endpoint-item:last-child {
    margin-bottom: 0;
}

.endpoint-item h5 {
    color: #1a237e;
    margin-bottom: 1rem;
}

.endpoint-item h6 {
    color: #666;
    margin: 1.5rem 0 0.5rem;
}

.code-example {
    margin-bottom: 2rem;
}

.code-example:last-child {
    margin-bottom: 0;
}

.code-example h5 {
    color: #1a237e;
    margin-bottom: 1rem;
}

pre {
    background: #1a1a1a;
    border-radius: 8px;
    margin: 0;
}

pre code {
    font-size: 0.875rem;
}

.alert-info {
    background-color: rgba(14, 165, 233, 0.1);
    border: none;
    color: #0ea5e9;
}

.alert-info code {
    color: #0ea5e9;
    background: rgba(255,255,255,0.5);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* Brand Text Container */
.brand-container {
    margin: -20px -20px 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
}

/* Ultra Modern Brand Text Styling */
.brand-text-dark {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 2.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    background: linear-gradient(120deg, #0ea5e9, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    padding: 0.1em 0;
    filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.3));
}

/* Lightning Effects */
.brand-container::before,
.brand-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.brand-container::before {
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
                rgba(14, 165, 233, 0.1) 0%,
                transparent 50%);
    animation: lightning 3s infinite;
}

.brand-container::after {
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L55 50 L60 25 L65 45 L70 0' stroke='%230ea5e9' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
    background-size: 200% 200%;
    opacity: 0;
    mix-blend-mode: screen;
    animation: flash 3s infinite;
}

@keyframes lightning {
    0%, 100% {
        opacity: 0;
    }
    45%, 55% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@keyframes flash {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) scale(1);
    }
    10% {
        opacity: 0.5;
        transform: translateX(50%) scale(1.2);
    }
    50% {
        opacity: 0.2;
        transform: translateX(-30%) scale(0.9);
    }
}

/* Electric field effect */
.brand-container {
    position: relative;
}

.brand-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    filter: blur(10px);
    animation: electricField 4s infinite;
}

@keyframes electricField {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Lightning bolt particles */
.brand-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, #0ea5e9 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, #8b5cf6 1px, transparent 1px);
    background-size: 10px 10px;
    animation: particles 2s infinite;
    opacity: 0;
}

@keyframes particles {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-2px);
    }
}

/* Hover effect */
.brand-text-dark:hover {
    cursor: pointer;
}

.brand-text-dark:hover + .brand-container::before {
    animation: intenseLightning 1s;
}

@keyframes intenseLightning {
    0%, 100% {
        opacity: 0;
    }
    45%, 55% {
        opacity: 1;
    }
}

/* Login page brand */
.login-brand {
    display: inline-block;
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
}

.login-brand::before {
    content: 'X';
    font-weight: 800;
    font-size: 1.2em;
    margin-right: 0.2em;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Main Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: #fff;
    padding: 0.8rem 0;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 1031;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .footer-links {
        gap: 1rem;
    }
    
    .footer-link {
        font-size: 0.8rem;
    }
}

/* Ensure the footer stays at the bottom */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* Policy Pages Styles */
.terms-content,
.payment-policy-content,
.privacy-policy-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.policy-header {
    margin-bottom: 3rem;
    text-align: center;
}

.policy-header h1 {
    font-size: 2.5rem;
    color: #1a202c;
    margin-top: 2rem;
    font-weight: 600;
}

.policy-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h5 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.policy-section h5::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.25rem;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    margin-right: 0.75rem;
    border-radius: 2px;
}

.policy-section p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-section ul {
    color: #4a5568;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    position: relative;
}

.policy-section li::before {
    content: '•';
    color: #0ea5e9;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* Contact Page Styles */
.contact-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.3s ease;
    margin-top: 2rem;
}

.contact-container:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 136, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.contact-title {
    color: #1a1f2e;
    font-weight: 600;
}

.telegram-link {
    background: #0088cc;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.telegram-link:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.response-time {
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.response-time i {
    color: #10b981;
}

/* Common styles */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.navbar-dark .navbar-brand {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.4rem;
}

.navbar .dropdown-menu {
    background: #ffffff;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    color: #6b7280;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.navbar .dropdown-item i {
    margin-right: 0.5rem;
    color: #9ca3af;
}

/* Main content styles */
.main-content {
    margin-top: 2rem;
}

/* Card styles */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 10px;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.card-header i {
    margin-right: 0.5rem;
    color: #6366f1;
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    transform: translateY(-1px);
}

/* Table styles */
.table {
    margin-bottom: 0;
}

.table th {
    background: #f9fafb;
    color: #4b5563;
    font-weight: 500;
    border-bottom: 2px solid #e5e7eb;
}

.table td {
    color: #6b7280;
    vertical-align: middle;
}

/* Form styles */
.form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Custom logo */
.x-logo {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Payment Page Specific Styles */
.payment-page .row {
    display: flex;
    flex-wrap: wrap;
}

.payment-page .col-md-6:first-child {
    flex: 0 0 auto;
    width: 70%;
}

.payment-page .col-md-6:last-child {
    flex: 0 0 auto;
    width: 30%;
}

.payment-page .payment-info-container {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.payment-page .qr-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.payment-page .qr-wrapper {
    text-align: center;
}

.payment-page .qr-container {
    background: white;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: inline-block;
}

.payment-page .qr-container img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: 8px;
}

.payment-page .qr-wrapper p {
    margin-top: 0.75rem;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 500;
}

.payment-page .bank-info {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 0;
}

.payment-page .info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.payment-page .info-item:hover {
    transform: translateX(5px);
}

.payment-page .info-item:last-child {
    margin-bottom: 0;
}

.payment-page .info-item i {
    font-size: 1.1rem;
    color: #0ea5e9;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.payment-page .info-item span {
    color: #1f2937;
    font-weight: 500;
}

/* History section styles */
.payment-page .history-section {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    height: 100%;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
}

.payment-page .history-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-weight: 500;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.payment-page .history-header i {
    color: #0ea5e9;
}

.payment-page .history-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    max-height: 690px;
}

.payment-page .history-item {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.payment-page .history-item:hover {
    background-color: #f8f9fa;
}

.payment-page .history-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Scrollbar styles for history list */
.payment-page .history-list::-webkit-scrollbar {
    width: 6px;
}

.payment-page .history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.payment-page .history-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.payment-page .history-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .payment-page .col-md-6:first-child,
    .payment-page .col-md-6:last-child {
        width: 100%;
    }
    
    .payment-page .qr-container img {
        width: 180px;
        height: 180px;
    }
    
    .payment-page .history-list {
        max-height: 300px;
    }
}

.payment-page .history-time {
    color: #94a3b8;
    font-size: 0.75rem;
}

.payment-page .history-amount {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.payment-page .history-balance {
    color: #6366f1;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.payment-page .history-id {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Pricing Page Styles */
.pricing-page {
    padding-top: 1rem;
    background: #f8f9fa;
}

.pricing-page .row {
    display: flex;
    flex-wrap: wrap;
}

.pricing-page .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 1rem;
}

.pricing-card {
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #0ea5e9;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.pricing-header i {
    font-size: 2rem;
    color: #0ea5e9;
    margin-bottom: 1rem;
    display: block;
}

.pricing-header h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.pricing-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.price {
    text-align: center;
    color: #0ea5e9;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
}

.price .unit {
    color: #64748b;
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.features li {
    color: #475569;
    font-size: 1rem;
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.features li:last-child {
    margin-bottom: 0;
}

.features li i {
    color: #0ea5e9;
    font-size: 1.1rem;
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.demo-images {
    margin: 1.5rem 0;
}

.demo-images h6 {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: center;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.demo-grid img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    padding: 0.25rem;
    background: #f8f9fa;
    transition: transform 0.2s ease;
}

.demo-grid img:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .pricing-page .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .pricing-page .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .price .amount {
        font-size: 2.5rem;
    }
}

/* Balance Card Styles */
.balance-info {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0ea5e9;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1;
}

.deposit-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deposit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, #0284c7, #4f46e5);
}

.deposit-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .balance-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .deposit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Transaction History Styles */
.transaction-history {
    margin-top: 1.5rem;
}

.transaction-history .card-header {
    background: #ffffff;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
}

.transaction-history .card-header i {
    color: #0ea5e9;
    margin-right: 0.5rem;
}

.transaction-history .card-body {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.transaction-history table {
    margin: 0;
}

.transaction-history th {
    background: #f8f9fa;
    color: #4b5563;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.transaction-history td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

.transaction-time {
    color: #64748b !important;
    font-size: 0.9rem;
}

.amount-negative {
    color: #ef4444 !important;
    font-weight: 600;
}

.amount-positive {
    color: #10b981 !important;
    font-weight: 600;
}

.transaction-content {
    color: #1f2937 !important;
}

/* Card Header Styles */
.card-header {
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-header i {
    color: #0ea5e9;
    margin-right: 0.5rem;
}

/* API Key Styles */
.api-key-container {
    padding: 1.5rem;
}

.api-key-label {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.api-key-input {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    font-family: monospace;
    font-size: 1rem;
    color: #1f2937;
    padding: 0.75rem;
    border-radius: 8px 0 0 8px;
}

.copy-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border: none;
    font-weight: 500;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #0284c7, #4f46e5);
}

.copy-btn.btn-success {
    background: #10b981;
}

/* Scrollbar Styles */
.transaction-history .card-body::-webkit-scrollbar {
    width: 6px;
}

.transaction-history .card-body::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.transaction-history .card-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.transaction-history .card-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .balance-amount {
        font-size: 2.5rem;
    }
    
    .transaction-history td {
        padding: 0.75rem;
    }
    
    .transaction-history th {
        padding: 0.75rem;
    }
    
    .api-key-container {
        padding: 1rem;
    }
}

/* Thông báo hướng dẫn QR */
.qr-guide {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #212529;
}

.qr-guide i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Specific fixes for API docs page */
.docs-wrapper {
    min-height: calc(100vh - 76px);
}

/* Info Card Styles - Gọn gàng, nhỏ, responsive */
.info-card {
    background: #f4faff;
    border: 1px solid #b6e0fe;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem auto 0 auto;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.05);
    max-width: 900px;
    font-size: 0.97rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: box-shadow 0.2s;
}

.info-card h4 {
    color: #0369a1;
    font-size: 0.97rem;
    font-weight: 400;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5;
}

.info-card h4 i {
    color: #0ea5e9;
    font-size: 1.1rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .info-card {
        font-size: 0.92rem;
        padding: 0.75rem 0.5rem;
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }
    .info-card h4 {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.92rem;
    }
}

