:root {
    --bg-dark: #0f172a;
    --bg-gradient: radial-gradient(circle at top right, #1e293b, #0f172a);
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: 1px solid rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #475569;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --ltc-color: #345d9d;
    --btc-color: #f7931a;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utils */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: var(--card-border);
    z-index: 100;
    display: flex;
    justify-content: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Main Container */
.container {
    margin-top: 80px;
    /* Space for header */
    padding: 20px;
    width: 100%;
    max-width: 800px;
    /* Central column max width */
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 80px);
}

/* Cards */
.card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

/* Auth Views */
.auth-card {
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
}

.landing-content {
    text-align: center;
    margin-top: 100px;
}

.landing-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.landing-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Inputs */
.input-group {
    margin-bottom: 16px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: var(--card-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    border: none;
    border-radius: var(--radius);
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    font-size: 0.95rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-ltc {
    background: var(--ltc-color);
    color: white;
}

.btn-link {
    background: none;
    color: var(--text-secondary);
    text-decoration: underline;
    margin-top: 10px;
    cursor: pointer;
    border: none;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-icon-danger {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: var(--danger-color);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.action-bar {
    display: flex;
    gap: 10px;
}

.wallet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.wallet-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.btc-badge {
    background: rgba(247, 147, 26, 0.2);
    color: var(--btc-color);
}

.ltc-badge {
    background: rgba(52, 93, 157, 0.2);
    color: var(--ltc-color);
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.wallet-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.wallet-balance {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 5px;
    color: var(--text-primary);
}

/* Wallet Details */
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.balance-card {
    text-align: center;
    margin-bottom: 30px;
}

.balance-card h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.address-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: var(--card-border);
}

.address-box label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 5px;
}

.copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.transactions-section h4 {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.tx-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tx-item:last-child {
    border-bottom: none;
}

.tx-amount {
    font-weight: 600;
    font-family: monospace;
}

.tx-in {
    color: var(--success-color);
}

.tx-out {
    color: var(--text-primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    width: 90%;
    max-width: 400px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Landing Page New Styles */
.landing-hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.gradient-text {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: -100px;
    /* Overlap hero */
    margin-bottom: 50px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Responsive Grid */
@media (min-width: 768px) {
    .wallet-grid {
        grid-template-columns: 1fr 1fr;
    }

    .landing-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-bar {
        width: 100%;
    }

    .action-bar button {
        flex: 1;
    }

    .landing-actions {
        flex-direction: column;
    }
}

/* Market Overview Responsive */
@media (max-width: 768px) {
    .market-overview {
        grid-template-columns: 1fr !important;
    }

    .card {
        padding: 15px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    header {
        height: auto;
        padding: 10px 0;
    }

    #nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .wallet-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* =========================================
   Revamped Landing Page Styles
   ========================================= */

.landing-revamp {
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

/* Background Effects */
.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 0;
}

/* Floating Crypto Icons */
.floating-coin {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
    color: var(--text-secondary);
    font-size: 3rem;
}

.coin-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    font-size: 4rem;
    color: var(--btc-color);
    opacity: 0.2;
}

.coin-2 {
    top: 60%;
    right: 10%;
    animation-delay: 1s;
    font-size: 3.5rem;
    color: var(--ltc-color);
    opacity: 0.2;
}

.coin-3 {
    top: 15%;
    right: 20%;
    animation-delay: 2s;
    font-size: 2.5rem;
}

.coin-4 {
    bottom: 20%;
    left: 10%;
    animation-delay: 3s;
    font-size: 3rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Hero Content */
.hero-content-revamp {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn-group-hero {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Stats Strip */
.stats-strip {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin-top: 2rem;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {

    /* Reset layout issues */
    /* Reset layout issues */
    .container {
        padding: 15px;
        margin-top: 180px;
    }

    /* Hero Fixes */
    .hero-section {
        min-height: auto;
        padding: 180px 20px 60px;
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 2.5rem;
        /* Smaller title */
        margin-top: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Stack buttons properly */
    .btn-group-hero {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-bottom: 3rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        display: block;
        /* Ensure full width clickable area */
        padding: 14px 20px;
    }

    /* Stats Strip Mobile */
    .stats-strip {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 20px;
    }

    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 10px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .stat-val {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Fix Floating Coins positions on mobile to avoid overlap */
    .coin-1 {
        font-size: 2.5rem;
        top: 15%;
        left: 5%;
        opacity: 0.15;
    }

    .coin-2 {
        font-size: 2rem;
        top: 70%;
        right: 5%;
        opacity: 0.15;
    }

    .coin-3 {
        display: none;
    }

    /* Hide less important ones */
    .coin-4 {
        display: none;
    }

    /* Features Grid */
    .features-section {
        padding: 50px 15px !important;
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
    }
}