/* Metafastest Riders Club - Premium Web3 DApp Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #060b19;
    --bg-sidebar: #050814;
    --bg-card: #0c152e;
    --bg-card-hover: #101c3d;
    --bg-card-header: #0e1938;
    --border-card: rgba(38, 70, 140, 0.35);
    --border-gold: rgba(212, 175, 55, 0.4);
    
    --gold-primary: #ffd700;
    --gold-secondary: #d4af37;
    --gold-light: #fbe8a6;
    --gold-dark: #997a15;
    --gold-gradient: linear-gradient(135deg, #ffe57f 0%, #ffd700 40%, #b8860b 100%);
    --gold-btn-gradient: linear-gradient(180deg, #ffe259 0%, #ffa751 100%);
    
    --text-primary: #ffffff;
    --text-secondary: #9aa8c7;
    --text-muted: #64748b;
    --text-gold: #f5d77f;
    
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-sidebar);
}
::-webkit-scrollbar-thumb {
    background: var(--border-gold);
    border-radius: 4px;
}

/* App Container Layout */
.app-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    z-index: 100;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
    object-fit: cover;
    background: #000;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.2;
}

.brand-title span {
    color: var(--gold-primary);
    font-size: 11px;
    display: block;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold-light);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.03) 100%);
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
    font-weight: 600;
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-banner {
    margin-top: 20px;
    background: linear-gradient(180deg, rgba(12, 21, 46, 0.8) 0%, rgba(5, 8, 20, 0.95) 100%), url('assets/ahr-coin-double.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-banner img {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
}

.banner-slogan {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: radial-gradient(circle at 80% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
}

/* Top Header Bar */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(8, 14, 32, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 90;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-title {
    font-size: 16px;
    color: var(--text-secondary);
}

.user-name {
    font-weight: 700;
    color: var(--text-primary);
}

.vip-badge {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #050814;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Stats Ribbon in Top Bar */
.top-stats-ribbon {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(12, 21, 46, 0.8);
    border: 1px solid var(--border-card);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
}

.stat-chip-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stat-chip-icon.ahr {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.stat-chip-icon.usdt {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.stat-chip-info span {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    letter-spacing: 0.5px;
}

.stat-chip-info strong {
    font-size: 14px;
    color: #fff;
    font-family: var(--font-heading);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.icon-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold-primary);
    border-color: var(--border-gold);
}

.icon-btn .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #050814;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
    transition: all 0.25s ease;
}

.btn-gold.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-gold:disabled, .btn-outline-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-outline-gold {
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: #050814;
}

/* Dashboard Body View Grid */
.dashboard-content {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Grid Layout matching the mockup image */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: 20px;
}

.grid-col-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid-col-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Styling */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    font-size: 16px;
    color: var(--gold-primary);
}

/* Member Profile Card */
.profile-card-header {
    text-align: center;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-gold);
    margin: 0 auto 12px;
    object-fit: cover;
    background: #000;
}

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-info-item label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-info-item p {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    word-break: break-all;
}

.copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
}

.copy-btn:hover {
    color: var(--gold-light);
}

/* Packages Card List */
.package-item {
    background: rgba(8, 14, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.package-item:last-child {
    margin-bottom: 0;
}

.package-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.package-details {
    flex: 1;
    margin: 0 16px;
}

.package-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.package-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-primary);
    margin: 2px 0;
}

.package-yield {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 3px;
}

/* Wallet Balance Card */
.balance-display-main {
    text-align: center;
    padding: 12px 0;
}

.balance-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.balance-value-big {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-primary);
    margin: 4px 0 16px;
}

.wallet-sub-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.wallet-sub-row span {
    color: var(--text-secondary);
}

.wallet-sub-row strong {
    color: #fff;
}

.wallet-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.btn-claim-big {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: var(--gold-gradient);
    color: #050814;
    font-weight: 800;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Rankings Card */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.ranking-item.active {
    background: rgba(255, 215, 0, 0.12);
    border-color: var(--gold-primary);
}

.ranking-icon {
    font-size: 20px;
}

.ranking-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

/* Referral Overview */
.qr-code-box {
    background: #fff;
    padding: 10px;
    border-radius: var(--radius-md);
    width: 120px;
    height: 120px;
    margin: 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-box img {
    width: 100%;
    height: 100%;
}

.referral-stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.ref-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.ref-stat-row strong {
    color: var(--gold-light);
}

/* Quick Actions 6-Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 20px;
    color: var(--gold-primary);
}

/* NFT Horse System Section */
.nft-horses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 1200px) {
    .nft-horses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nft-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nft-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 22px rgba(212, 175, 55, 0.25);
    border-color: var(--gold-primary);
}

.tier-card-common { border-color: rgba(59, 130, 246, 0.4); }
.tier-card-rare { border-color: rgba(245, 158, 11, 0.4); }
.tier-card-epic { border-color: rgba(168, 85, 247, 0.4); }
.tier-card-legendary { border-color: rgba(255, 215, 0, 0.6); box-shadow: 0 0 15px rgba(255, 215, 0, 0.15); }

.tier-card-common:hover { border-color: #3b82f6; box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35); }
.tier-card-rare:hover { border-color: #f59e0b; box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35); }
.tier-card-epic:hover { border-color: #a855f7; box-shadow: 0 12px 30px rgba(168, 85, 247, 0.4); }
.tier-card-legendary:hover { border-color: #ffd700; box-shadow: 0 16px 40px rgba(255, 215, 0, 0.5); }

.nft-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(5, 8, 20, 0.85);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.nft-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.nft-price-tag {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.nft-yield-tag {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 14px;
}

/* Revenue Breakdown Chart Box */
.revenue-breakdown-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.rev-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.rev-percent {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--gold-primary);
}

.rev-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Modal Popup Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 20, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.form-control:focus {
    border-color: var(--gold-primary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    color: #fff;
    font-size: 13px;
    box-shadow: var(--shadow-gold);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        width: 80px;
        padding: 16px 8px;
    }
    .brand-title, .nav-item span, .sidebar-banner {
        display: none;
    }
    .nav-item {
        justify-content: center;
    }
}

/* ==========================================================
   ENHANCED DESIGN SYSTEM: TABLES, BADGES, TABS, WIDGETS
   ========================================================== */

/* Data Table Styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    margin-top: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.data-table th {
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #fff;
}

.data-table tr:hover td {
    background: rgba(255, 215, 0, 0.03);
}

/* Badge Pills */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-gold {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Secondary Filter / Sub-Nav Tabs */
.sub-tabs-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.sub-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sub-tab-btn:hover {
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold-light);
    border-color: var(--gold-primary);
}

.sub-tab-btn.active {
    background: var(--gold-gradient);
    color: #050814;
    border-color: transparent;
    font-weight: 700;
}

/* Package Catalog Grid */
.packages-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.package-catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-catalog-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.package-catalog-card.featured {
    border: 2px solid var(--gold-primary);
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.08) 0%, var(--bg-card) 70%);
}

.pkg-header-badge {
    position: absolute;
    top: 16px;
    right: 16px;
}

.pkg-header-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.pkg-header-price {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.pkg-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 24px;
}

.pkg-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pkg-feature-item i {
    color: var(--accent-green);
    font-size: 14px;
}

/* DeFi Swap Widget */
.swap-widget-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.swap-input-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.swap-input-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.swap-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.swap-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    outline: none;
}

.swap-token-select {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.swap-divider-btn {
    width: 40px;
    height: 40px;
    margin: -6px auto 6px;
    border-radius: 50%;
    background: var(--bg-card-header);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.swap-divider-btn:hover {
    transform: rotate(180deg);
    background: var(--gold-primary);
    color: #050814;
}

/* Stables Horse Cards */
.stables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.stable-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.stable-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.stable-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease;
    display: block;
}

.stable-card:hover .stable-card-img {
    transform: scale(1.04);
}

.stable-card-body {
    padding: 16px;
}

.attribute-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.attribute-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.attribute-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 3px;
}

/* Rankings Progression Steps */
.ranking-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 32px 0 24px;
}

.ranking-track::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.ranking-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.ranking-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}

.ranking-step.completed .ranking-step-circle {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.ranking-step.current .ranking-step-circle {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
    color: #050814;
    box-shadow: var(--shadow-gold);
    transform: scale(1.15);
}

.ranking-step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.ranking-step.current .ranking-step-label {
    color: var(--gold-primary);
}

/* Admin Dashboard Widgets */
.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px;
}

.admin-metric-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.admin-metric-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--gold-primary);
}

/* Profile Form Grid */
.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   METAFASTEST PUBLIC LANDING PAGE (HOMEPAGE BEFORE WALLET CONNECT)
   ========================================================== */

.landing-page-wrapper {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle at 50% 15%, #151f38 0%, #080d1a 45%, #03060d 100%);
    color: var(--text-primary);
    overflow-x: hidden !important;
    overflow: hidden;
}

.landing-ambient-glow {
    position: absolute;
    width: 500px;
    max-width: 80vw;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(59, 130, 246, 0.08) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}
.landing-ambient-glow.top-left { top: -100px; left: 0; }
.landing-ambient-glow.mid-right { top: 35%; right: 0; background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(212, 175, 55, 0.08) 50%, transparent 70%); }
.landing-ambient-glow.bottom-center { bottom: 5%; left: 20%; }

.landing-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* 1. Public Top Navigation */
.landing-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 13, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 14px 0;
}

.landing-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.landing-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
    object-fit: cover;
}

.landing-brand-text {
    display: flex;
    flex-direction: column;
}

.landing-brand-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.landing-brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.landing-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.landing-nav-links a:hover {
    color: var(--gold-primary);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 2. Hero Section */
.landing-hero {
    padding: 60px 0 40px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-light);
    width: fit-content;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.hero-title .gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 580px;
}

.hero-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.hero-highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #e2e8f0;
}

.hero-highlight-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 11px;
    flex-shrink: 0;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* VIP Gateway Connect Card */
.landing-gateway-card {
    background: rgba(14, 21, 38, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 24px;
    padding: 36px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.18);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-gateway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.gateway-card-header {
    margin-bottom: 20px;
}

.gateway-medallion-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
    margin-bottom: 12px;
    object-fit: cover;
    display: inline-block;
    transition: transform 0.3s ease;
}

.gateway-medallion-logo:hover {
    transform: scale(1.06) rotate(6deg);
}

.gateway-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.gateway-card-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.login-referral-banner {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-weight: 600;
}

.gateway-form-body {
    display: flex;
    flex-direction: column;
}

.gateway-connect-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
    transition: all 0.25s ease;
}

.gateway-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.gateway-divider {
    display: flex;
    align-items: center;
    margin: 18px 0 14px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gateway-divider::before,
.gateway-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.gateway-divider span {
    padding: 0 10px;
}

.gateway-input-group {
    text-align: left;
    margin-bottom: 10px;
}

.gateway-input-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.gateway-input-group label i {
    color: var(--gold-primary);
    margin-right: 4px;
}

.gateway-input-group .form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    outline: none;
    transition: all 0.2s ease;
}

.gateway-input-group .form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.gateway-manual-btn {
    width: 100%;
    padding: 12px;
    font-weight: 700;
    margin-top: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gateway-manual-btn:hover {
    background: var(--gold-primary);
    color: #000;
}

.gateway-status-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.4;
}

.gateway-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: var(--text-muted);
}

/* 3. Live Stats Ribbon */
.landing-stats-ribbon {
    margin: 40px 0;
    background: rgba(14, 21, 38, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 18px;
    padding: 24px 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.landing-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.landing-stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.stat-box-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-box-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.stat-box-value.gold {
    color: var(--gold-primary);
}

.stat-box-sub {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 600;
    margin-top: 2px;
}

/* 4. Section Standard Styles */
.landing-section {
    padding: 70px 0;
    position: relative;
}

.landing-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-pill-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-main-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-main-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 5. Ecosystem Features Grid */
.ecosystem-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.eco-card {
    background: rgba(12, 21, 46, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(38, 70, 140, 0.4);
    border-radius: 18px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.eco-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eco-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
}

.eco-card:hover::before {
    opacity: 1;
}

.eco-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.eco-card-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.eco-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
}

/* 6. NFT Thoroughbreds Showcase */
.nft-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nft-horse-card {
    background: rgba(12, 21, 46, 0.8);
    border: 1px solid rgba(38, 70, 140, 0.5);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.nft-horse-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.2);
}

.nft-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 260px;
    position: relative;
    overflow: hidden;
    background: #040714;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nft-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.nft-card:hover .nft-card-img,
.nft-horse-card:hover .nft-card-img {
    transform: scale(1.08);
}

.nft-tier-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.nft-tier-pill.tier-common { background: rgba(59, 130, 246, 0.7); color: #fff; }
.nft-tier-pill.tier-rare { background: rgba(245, 158, 11, 0.7); color: #fff; }
.nft-tier-pill.tier-epic { background: rgba(139, 92, 246, 0.7); color: #fff; }
.nft-tier-pill.tier-legendary { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; }

.nft-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.nft-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nft-horse-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.nft-horse-price {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-primary);
}

.nft-stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
}

.nft-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
}

.nft-stat-row strong {
    color: #fff;
}

.nft-stat-bar-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 3px;
}

.nft-stat-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 4px;
}

.nft-card-action-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: auto;
}

/* 7. Staking Packages Grid */
.packages-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.package-preview-card {
    background: rgba(12, 21, 46, 0.7);
    border: 1px solid rgba(38, 70, 140, 0.4);
    border-radius: 20px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.package-preview-card.featured {
    border-color: var(--gold-primary);
    background: rgba(16, 26, 56, 0.85);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.2);
}

.package-preview-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-primary);
}

.pkg-featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pkg-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pkg-icon-sphere {
    font-size: 28px;
}

.pkg-name-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.pkg-price-tag {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.pkg-price-tag span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pkg-perks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    flex: 1;
}

.pkg-perk-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pkg-perk-item i {
    color: var(--accent-green);
    font-size: 12px;
}

/* 8. Unilevel Rewards Section */
.unilevel-tier-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.unilevel-tier-card {
    background: rgba(12, 21, 46, 0.7);
    border: 1px solid rgba(38, 70, 140, 0.4);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.unilevel-tier-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    background: rgba(16, 28, 60, 0.85);
}

.tier-badge-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-primary);
}

.tier-rate-pct {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.tier-title-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* 9. How It Works Steps */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
}

.how-step-card {
    background: rgba(12, 21, 46, 0.65);
    border: 1px solid rgba(38, 70, 140, 0.4);
    border-radius: 20px;
    padding: 36px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    position: relative;
    transition: all 0.3s ease;
}

.how-step-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-primary);
}

.how-step-num {
    position: absolute;
    top: -16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #000;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.how-icon-box {
    font-size: 36px;
    color: var(--gold-primary);
    margin-top: 6px;
}

.how-step-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.how-step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 10. FAQ Accordion */
.faq-accordion-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-accordion-item {
    background: rgba(12, 21, 46, 0.65);
    border: 1px solid rgba(38, 70, 140, 0.35);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-accordion-item.active {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(16, 26, 56, 0.85);
}

.faq-question-btn {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    gap: 16px;
}

.faq-question-btn i {
    font-size: 14px;
    color: var(--gold-primary);
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-question-btn i {
    transform: rotate(180deg);
}

.faq-answer-panel {
    display: none;
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-accordion-item.active .faq-answer-panel {
    display: block;
}

/* 11. Public Footer */
.landing-footer {
    background: rgba(5, 8, 16, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 50px 0 30px;
    margin-top: 40px;
}

.landing-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 320px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--gold-primary);
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE SYSTEM
   ========================================================== */

/* Universal word wrap & address overflow protection */
code, .copy-box, .wallet-address, .address-display, pre, .break-all {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
}

.copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.copy-box span {
    word-break: break-all;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.4;
    min-width: 0;
    flex: 1 1 auto;
    color: #fff;
}

.copy-box .copy-btn {
    flex-shrink: 0;
    padding: 6px 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-box .copy-btn:hover {
    background: var(--gold-primary);
    color: #000;
}

/* Laptop/Tablet Navigation Breakpoint (max-width: 1200px) */
@media (max-width: 1200px) {
    .landing-nav-links {
        display: none !important;
    }
    .landing-nav-content {
        justify-content: space-between;
    }
}

/* Tablet Breakpoint (max-width: 1100px) */
@media (max-width: 1100px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .landing-stats-ribbon {
        grid-template-columns: repeat(3, 1fr);
    }
    .ecosystem-features-grid,
    .nft-showcase-grid,
    .packages-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .unilevel-tier-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .landing-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .top-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    .top-stats-ribbon {
        order: 3;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. App Container & Mobile Navigation */
    .app-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-gold);
        padding: 10px 14px;
        flex-direction: column;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(5, 8, 20, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .brand-header {
        padding-bottom: 6px;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-title {
        font-size: 14px;
    }

    .brand-title span {
        display: block !important;
        font-size: 10px;
    }

    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0 6px 0;
    }

    .nav-menu::-webkit-scrollbar {
        height: 3px;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: var(--gold-primary);
        border-radius: 3px;
    }

    .nav-item {
        padding: 6px 10px;
        font-size: 12px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border-radius: var(--radius-sm);
    }

    .nav-item span {
        display: inline-block !important;
    }

    .nav-item.active {
        border-left: none;
        border-bottom: 2px solid var(--gold-primary);
    }

    .sidebar-banner {
        display: none;
    }

    /* 2. Main Wrapper & Header */
    .main-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .top-header {
        padding: 10px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        position: relative;
    }

    .user-welcome {
        flex-wrap: wrap;
        gap: 6px;
    }

    .welcome-title {
        font-size: 13px;
    }

    .top-stats-ribbon {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
    }

    .top-stat-item {
        padding: 6px 8px;
        min-width: 0;
    }

    .top-stat-val {
        font-size: 11px;
    }

    .header-right {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .network-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* 3. Content Area & Grids */
    .content-area {
        padding: 12px 10px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .page-title {
        font-size: 20px;
    }

    .dashboard-grid,
    .stats-grid,
    .packages-grid,
    .nft-grid,
    .wallet-overview-grid,
    .profile-grid,
    .ecosystem-features-grid,
    .nft-showcase-grid,
    .packages-preview-grid,
    .how-it-works-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100%;
    }

    .unilevel-tier-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .card {
        padding: 14px 12px;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .card-title {
        font-size: 14px;
    }

    .dash-balance-hero {
        padding: 16px 12px;
    }

    .dash-main-amount {
        font-size: 24px;
        word-break: break-all;
    }

    .dash-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .dash-hero-actions .btn-gold,
    .dash-hero-actions .btn-outline-gold {
        width: 100%;
        justify-content: center;
    }

    /* 4. Tokenomics & Address Cards */
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    [style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    [style*="justify-content: space-between"] > div:last-child {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    [style*="justify-content: space-between"] > div:last-child button,
    [style*="justify-content: space-between"] > div:last-child a {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    /* 5. Responsive Tables */
    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 8px;
        display: block;
        border-radius: var(--radius-sm);
    }

    .data-table {
        min-width: 540px;
        width: 100%;
        font-size: 11px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    /* 6. Modals on Mobile */
    .modal-box {
        width: 92% !important;
        max-width: 440px !important;
        padding: 18px 14px !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        box-sizing: border-box;
    }

    /* 7. Public Landing Page */
    .landing-nav {
        padding: 10px 14px;
    }

    .landing-nav-links {
        display: none;
    }

    .landing-brand-title {
        font-size: 15px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-cta-group .btn-gold,
    .hero-cta-group .btn-outline-gold {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .landing-stats-ribbon {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .landing-stat-box:not(:last-child)::after {
        display: none;
    }

    .landing-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 12px;
        padding: 10px 14px;
    }
}

/* ==========================================================
   LUCKY PICK & MASTER PACKAGES ENHANCEMENTS
   ========================================================== */
.lucky-ball-input-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lucky-ball-input-box label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lucky-number-input {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffe066, #d4af37 60%, #997a15 100%);
    color: #0c152e;
    font-size: 26px;
    font-weight: 900;
    text-align: center;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    outline: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    -moz-appearance: textfield;
}

.lucky-number-input::-webkit-outer-spin-button,
.lucky-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lucky-number-input:focus {
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.85), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.pkg-header-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
}

/* ==========================================================
   INTERACTIVE 1 TO 12 LUCKY PICK NUMBER SELECTOR
   ========================================================== */
.lucky-12-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-width: 480px;
    margin: 16px auto 20px auto;
    padding: 14px;
    background: rgba(10, 13, 22, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
}

@media (max-width: 540px) {
    .lucky-12-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

.lucky-select-ball {
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a2035, #101423);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #cbd5e1;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.lucky-select-ball::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 8px;
    width: 35%;
    height: 35%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lucky-select-ball:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: var(--gold-primary);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.lucky-select-ball.selected {
    background: radial-gradient(circle at 35% 35%, #ffe066, #d4af37 60%, #997a15 100%);
    color: #0c152e;
    border-color: #ffffff;
    font-weight: 900;
    transform: translateY(-4px) scale(1.14);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.85), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    animation: luckyPulse 1.8s infinite alternate;
}

@keyframes luckyPulse {
    0% { box-shadow: 0 0 12px rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 0 24px rgba(255, 215, 0, 0.95); }
}

/* ==========================================================
   PWA (PROGRESSIVE WEB APP) STYLING
   ========================================================== */
.btn-pwa-install {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-pwa-install:hover {
    background: rgba(255, 215, 0, 0.18);
    border-color: var(--gold-primary);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

#mobile-pwa-floating-bar {
    animation: slideUpFloat 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@media (max-width: 768px) {
    .btn-pwa-install span {
        display: none;
    }
    .btn-pwa-install {
        padding: 8px 10px;
    }
}

.hero-pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-primary);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: var(--radius-full);
    cursor: pointer;
    width: fit-content;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 215, 0, 0.2);
    transition: all 0.25s ease;
    text-decoration: none;
    margin-bottom: -6px;
}

.hero-pwa-install-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(212, 175, 55, 0.14));
    border-color: var(--gold-primary);
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.35);
    transform: translateY(-2px);
}

.hero-pwa-install-btn span {
    display: inline !important;
}




