@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-subtle: #f1f5f9;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-ring: rgba(37, 99, 235, 0.15);
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
    --shadow-elevated: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
    --shadow-btn: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    background-image: 
        linear-gradient(180deg, rgba(248, 250, 252, 0.86) 0%, rgba(248, 250, 252, 0.93) 100%),
        url('/files/bg-fintech-diamonds.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

.fintech-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

/* Header & Logo */
.fintech-header {
    text-align: center;
    padding: 16px 0 24px;
}

.fintech-logo-wrap {
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease;
}

.fintech-logo-wrap:hover {
    transform: translateY(-2px);
}

.fintech-logo {
    max-width: 170px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.12));
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-subtle);
}

.trust-badge-pill i {
    color: var(--primary);
}

.trust-badge-pill.status-online i {
    color: var(--success);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Card Surface Styling */
.fintech-card {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.fintech-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-elevated);
}

/* Form Steps */
.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    margin: 0;
}

/* Input ID Styling */
.fintech-input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fintech-input {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s ease;
}

.fintech-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-ring);
    background: #ffffff;
}

.fintech-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.btn-check-id {
    height: 48px;
    padding: 0 18px;
    background: var(--bg-surface-subtle);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-check-id:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.id-help-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.id-help-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Player Info Card (Preview) */
.player-preview-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin-top: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: var(--radius-md);
    animation: fadeInSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.player-meta {
    flex: 1;
}

.player-nickname {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.player-uid-badge {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.player-verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #10b981;
    color: #ffffff;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

/* Payment Method Selector */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.payment-method-card {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}

.payment-method-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.method-card-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 96px;
    position: relative;
}

.method-badge-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    letter-spacing: 0.2px;
}

.method-badge-discount {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.method-badge-speed {
    background: #f1f5f9;
    color: #475569;
}

.method-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-surface-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.method-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.method-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.payment-method-card input:checked + .method-card-inner {
    border-color: var(--primary);
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.payment-method-card input:checked + .method-card-inner .method-icon-wrap {
    background: var(--primary);
    color: #ffffff;
}

.payment-method-card input:checked + .method-card-inner .method-name {
    color: var(--primary);
}

/* Package Group Tabs (Segmented Control) */
.package-tabs-segmented {
    display: flex;
    background: var(--bg-surface-subtle);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    gap: 4px;
}

.tab-segmented-item {
    flex: 1;
    position: relative;
    cursor: pointer;
    margin: 0;
}

.tab-segmented-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tab-segmented-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-segmented-item input:checked + .tab-segmented-label {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Package Grid Selection */
.fintech-package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.package-card {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.package-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.package-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 8px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    min-height: 86px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.package-card-inner:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.package-tag-badge {
    position: absolute;
    top: -8px;
    right: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
    letter-spacing: 0.3px;
}

.package-gem-icon {
    font-size: 18px;
    margin-bottom: 4px;
    line-height: 1;
}

.package-name-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.package-price-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 4px;
}

.package-card input:checked + .package-card-inner {
    border-color: var(--primary);
    background: #f0f7ff;
    box-shadow: 0 0 0 2px var(--primary), 0 6px 16px rgba(37, 99, 235, 0.15);
}

.package-card input:checked + .package-card-inner .package-name-title {
    color: var(--primary-hover);
}

/* Agreement Checkbox */
.terms-agreement-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.custom-fintech-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
}

.terms-agreement-wrap a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Luxury CTA Button */
.btn-fintech-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-btn);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.btn-fintech-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.btn-fintech-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-fintech-submit:disabled,
.btn-fintech-submit.disabled {
    background: #cbd5e1 !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.85;
}

.btn-fintech-submit:disabled::after,
.btn-fintech-submit.disabled::after {
    display: none !important;
}

.btn-fintech-submit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: rotate(25deg);
    animation: buttonShimmer 4s infinite ease-in-out;
}

@keyframes buttonShimmer {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

/* FAQ & Banner Buttons */
.fintech-faq-link {
    display: block;
    text-align: center;
    margin: 16px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.fintech-faq-link:hover {
    color: var(--primary);
}

.fintech-banner-box {
    display: block;
    text-decoration: none;
    margin: 16px 0;
}

.fintech-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    transition: all 0.2s ease;
}

.fintech-banner-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

/* Partner Sites */
.partner-sites-box {
    text-align: center;
    padding: 16px 0;
    margin: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partner-sites-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.partner-links-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.partner-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    box-shadow: var(--shadow-subtle);
    transition: all 0.2s ease;
}

.partner-link-pill:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Section Header (History & Leaderboard) */
.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.section-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-card-title i {
    color: var(--primary);
}

/* Search Box in History */
.search-input-wrap {
    position: relative;
    max-width: 160px;
}

.search-input-wrap input {
    height: 32px;
    padding: 4px 10px 4px 28px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    outline: none;
    width: 100%;
    transition: all 0.2s;
}

.search-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-ring);
}

.search-input-wrap i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-muted);
}

/* Transaction List Scrollable Container */
.tx-list {
    max-height: 290px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.25) #f1f5f9;
    -webkit-overflow-scrolling: touch;
}

.tx-list::-webkit-scrollbar {
    width: 6px;
}

.tx-list::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: var(--radius-full);
}

.tx-list::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.22);
    border-radius: var(--radius-full);
    transition: background 0.2s;
}

.tx-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Transaction List Item */
.tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: background 0.2s;
}

.tx-item:last-child {
    border-bottom: none;
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-icon-bubble {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.tx-uid {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.tx-pack {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tx-right {
    text-align: right;
}

.tx-amount {
    font-size: 13px;
    font-weight: 800;
    color: var(--success);
}

.tx-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Leaderboard Ranking Item */
.rank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-badge-num {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    background: var(--bg-surface-subtle);
}

.rank-badge-gold {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.rank-badge-silver {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
}

.rank-badge-bronze {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #9a3412;
}

.rank-user-uid {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.rank-amount {
    font-size: 13px;
    font-weight: 800;
    color: var(--success);
}

/* News Cards */
.news-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.news-item-card:hover {
    transform: translateX(4px);
}

.news-item-card:last-child {
    border-bottom: none;
}

.news-card-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.news-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-card:hover .news-card-title {
    color: var(--primary);
}

.news-card-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Footer */
.fintech-footer {
    text-align: center;
    padding: 30px 16px 20px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-support-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    box-shadow: var(--shadow-subtle);
    transition: all 0.2s ease;
}

.footer-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Floating Zalo Button */
.zalo-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 8px 16px 8px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(0, 104, 255, 0.25);
    border: 1px solid rgba(0, 104, 255, 0.2);
    text-decoration: none;
    color: #0068ff;
    font-weight: 700;
    font-size: 13px;
    z-index: 999;
    transition: all 0.25s ease;
}

.zalo-floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 104, 255, 0.35);
}

.zalo-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: #0068ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
}

/* ==============================================================
   TRANSACTION / RECEIPT PAGE (Apple / Stripe Receipt Style)
   ============================================================== */
.receipt-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
    margin-bottom: 20px;
}

.receipt-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 24px;
    text-align: center;
    position: relative;
}

.receipt-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.receipt-amount-large {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.receipt-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 4px 12px;
    background: #fef3c7;
    color: #b45309;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.receipt-status-pill.status-paid {
    background: #ecfdf5;
    color: #065f46;
}

/* QR Section */
.qr-lux-box {
    text-align: center;
    padding: 24px 20px 16px;
}

.qr-code-frame {
    display: inline-block;
    padding: 12px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qr-code-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.qr-code-frame img {
    display: block;
    max-width: 210px;
    height: auto;
    border-radius: var(--radius-sm);
}

.qr-download-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Receipt Details List */
.receipt-details-list {
    padding: 10px 24px 20px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.receipt-value-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-primary);
}

.receipt-val-highlight {
    color: var(--primary);
    font-size: 15px;
    font-family: 'Inter', monospace, sans-serif;
}

.btn-copy-pill {
    padding: 4px 10px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-pill:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-copy-pill.copied {
    background: var(--success-light);
    color: var(--success);
    border-color: var(--success);
}

/* Countdown Bar */
.countdown-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    margin: 0 24px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
}

/* Card Form in Transaction Page */
.card-pay-form {
    padding: 20px 24px;
}

.fintech-select {
    width: 100%;
    height: 44px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
}

.fintech-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

/* Toast Copy Feedback */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    animation: toastPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastPop {
    from { opacity: 0; transform: translate(-50%, 15px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* SweetAlert2 Styling */
.swal2-popup.fintech-swal {
    border-radius: 20px !important;
    padding: 24px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Responsive Rules */
@media (max-width: 576px) {
    .fintech-container {
        padding: 12px 12px 60px;
    }
    
    .fintech-card {
        padding: 18px 14px;
        border-radius: var(--radius-md);
    }
    
    .fintech-package-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .receipt-details-list {
        padding: 10px 14px 16px;
    }
    
    .receipt-amount-large {
        font-size: 26px;
    }
    
    .countdown-strip {
        margin: 0 14px 16px;
    }
    
    .zalo-floating-btn {
        bottom: 16px;
        right: 16px;
        padding: 6px 12px 6px 8px;
        font-size: 12px;
    }
}

/* Full Edge-to-Edge Table Card */
.fintech-card.card-table-full {
    padding: 0;
    overflow: hidden;
}

.fintech-card.card-table-full .section-card-header {
    padding: 20px 24px 16px;
    margin-bottom: 0;
}

.fintech-card.card-table-full .fintech-data-table thead th,
.fintech-card.card-table-full .rank-table thead th {
    padding: 10px 10px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
}

.fintech-card.card-table-full .fintech-data-table tbody td,
.fintech-card.card-table-full .rank-table tbody td {
    padding: 10px 10px;
    font-size: 12px;
}

@media (max-width: 576px) {
    .fintech-card.card-table-full .section-card-header {
        padding: 16px 16px 12px;
    }
    .fintech-card.card-table-full .fintech-data-table thead th,
    .fintech-card.card-table-full .rank-table thead th {
        padding: 9px 8px;
    }
    .fintech-card.card-table-full .fintech-data-table tbody td,
    .fintech-card.card-table-full .rank-table tbody td {
        padding: 9px 8px;
    }
}

.fintech-table-wrap {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.fintech-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fintech-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
    margin-bottom: 0;
}

.fintech-data-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 10px;
    border-bottom: 2px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
}

.fintech-data-table tbody td {
    padding: 9px 10px;
    border-bottom: 1px solid #f1f5f9;
    border-top: none;
    vertical-align: middle;
    color: #1e293b;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.fintech-data-table tbody tr:hover td {
    background: #f8fafc;
}

.fintech-data-table tbody tr:last-child td {
    border-bottom: none;
}

/* User avatar in table */
.user-avatar-pill {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Card type badge (icon only) */
.card-type-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    flex-shrink: 0;
}

/* Live blinking badge */
.badge-live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid #a7f3d0;
}

.badge-live-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 1.8s infinite;
}

/* Status Badge Pill */
.status-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
}

.status-badge-pill.status-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
}

.status-badge-pill.status-pending {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.08);
}

.status-badge-pill.status-failed {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.08);
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Rank Navigation Tabs */
.rank-tab-nav {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    gap: 4px;
}

.rank-tab-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rank-tab-btn:hover {
    color: #0f172a;
}

.rank-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Rank Leaderboard Table */
.rank-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    font-size: 12.5px;
}

.rank-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 9px 12px;
    border-bottom: 2px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
}

.rank-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    border-top: none;
    vertical-align: middle;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.rank-table tbody tr:hover td {
    background: #f8fafc;
}

.rank-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-pos-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.rank-pos-badge i {
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.25));
}

.rank-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.38);
}

.rank-silver {
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(71, 85, 105, 0.32);
}

.rank-bronze {
    background: linear-gradient(135deg, #ea580c 0%, #9a3412 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(154, 52, 18, 0.32);
}

.rank-default {
    background: #f1f5f9;
    color: #64748b;
}

.reward-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.reward-gold {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.reward-silver {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.reward-bronze {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.reward-default {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

