@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Base Colors - Dark Mode (Default) */
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --bg-dark: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-lighter: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #22d3ee;
    --danger: #f43f5e;
    --success: #10b981;
    --warning: #f59e0b;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(15, 23, 42, 0.6);
    --sidebar-width: 280px;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-dark: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-surface-lighter: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.9);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface-lighter);
    border-radius: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Landing Page Components */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px var(--primary-glow);
    background: #4f46e5;
}

.btn-outline {
    border-color: var(--border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Global Utilities */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Professional Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-dark);
}

.cp-sidebar {
    width: var(--sidebar-width);
    background: #0a0f1d;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.25rem;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.cp-sidebar .logo {
    margin-bottom: 3rem;
    padding: 0 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: left;
    background: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cp-side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.cp-side-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.25rem;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.75rem;
    border: 1px solid transparent;
}

.cp-side-link .icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.cp-side-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff !important;
    transform: translateX(4px);
}

.cp-side-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Specific Style for Pill-Button look requested */
.cp-side-link.cta-style {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    border-radius: 999px;
    color: #ffffff !important;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.cp-side-link.cta-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
}

.cp-side-link.logout {
    margin-top: auto;
    color: #f43f5e !important;
}

.cp-side-link.logout:hover {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e !important;
}

.cp-side-link.switch-btn {
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #22d3ee !important;
}

.cp-side-link.switch-btn:hover {
    background: rgba(34, 211, 238, 0.05);
}

/* Theme Toggle as a Button Link */
.theme-toggle-btn {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    width: 100%;
    margin: 1rem 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}


/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 3rem 4rem;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.03), transparent 30%);
}

.main-content h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* Updated Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-surface);
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.stat-card h4 {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

/* Global Card Refinement */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


/* Tables */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    text-align: left;
    padding: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-paid,
.status-active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.05);
}

.status-pending {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.status-expired,
.status-failed {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
}

/* Page Header & Dashboard Specifics */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.page-header h2 {
    margin-bottom: 0.25rem;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
}

.search-box {
    flex: 1;
}

.search-box input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.filters select {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    min-width: 150px;
}

.stats-mini {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Modern Table Enhancements */
.table-card {
    padding: 0 !important;
    overflow: hidden;
}

.modern-table {
    margin-top: 0;
}

.modern-table th {
    background: rgba(255, 255, 255, 0.01);
    padding: 1.25rem 1.5rem;
}

.modern-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

.payment-id-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.id-tag {
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.ref-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.amount-value,
.amount-total {
    font-weight: 600;
    color: var(--text-main);
}

.amount-total {
    color: var(--accent);
}

.currency {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-left: 0.2rem;
}

.tx-link {
    text-decoration: none;
    color: var(--primary);
    font-family: monospace;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tx-link:hover {
    color: var(--accent);
}

.date-cell {
    display: flex;
    flex-direction: column;
}

.time-muted {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.email-tag {
    font-size: 0.85rem;
    color: var(--text-main);
    opacity: 0.9;
}

.action-btns {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--bg-surface-lighter);
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem !important;
}

.empty-illustrations {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.page-info {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-form {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Hero Section & Landing Features */
.hero {
    text-align: center;
    padding: 10rem 0 6rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.floating {
    animation: float 8s ease-in-out infinite;
}

/* Professional Checkout Page */
.checkout-body {
    background: radial-gradient(circle at top left, #1e1b4b, #0f172a);
    min-height: 100vh;
}

.checkout-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.amount-container {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: transform 0.3s ease;
    text-align: center;
}

.amount-display {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    margin: 0.5rem 0;
}

.qr-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto 2.5rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.qr-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.address-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.address-box {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.address-box input {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-main);
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* Status Loading Animation */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
    font-weight: 600;
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* On-Chain Activity Styling */
.amount-in {
    color: #10b981;
    font-weight: 700;
}

.amount-out {
    color: #f43f5e;
    font-weight: 700;
}

.tx-link-large {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 6px;
    transition: background 0.2s;
}

.tx-link-large:hover {
    background: rgba(99, 102, 241, 0.15);
}