/**
 * Verdix Network - Main Stylesheet
 * Professional Block Explorer v1.0
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Primary Colors */
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-darker: #15803d;
    --primary-light: #4ade80;
    --primary-lighter: #86efac;
    --primary-glow: rgba(34, 197, 94, 0.4);
    
    /* Background Colors */
    --bg-dark: #0a0f0d;
    --bg-darker: #060908;
    --bg-card: #111916;
    --bg-card-hover: #1a2420;
    --bg-input: #0d1411;
    
    /* Text Colors */
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    /* Border Colors */
    --border: rgba(34, 197, 94, 0.15);
    --border-light: rgba(34, 197, 94, 0.08);
    --border-strong: rgba(34, 197, 94, 0.3);
    
    /* Status Colors */
    --success: #22c55e;
    --warning: #eab308;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Spacing */
    --container-max: 1280px;
    --section-padding: 80px;
    --card-padding: 24px;
    --gap: 24px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Background Effects
   ========================================================================== */

.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 197, 94, 0.12), transparent 70%),
        radial-gradient(ellipse 50% 30% at 90% 20%, rgba(34, 197, 94, 0.08), transparent 60%),
        radial-gradient(ellipse 50% 30% at 10% 80%, rgba(34, 197, 94, 0.06), transparent 60%);
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 60%);
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-badge, .section-label, .badge-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 13, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    height: 72px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo:hover {
    color: var(--text);
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.logo-text {
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
}

.nav-link i {
    font-size: 1rem;
}

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

.lang-switch {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lang-btn {
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
}

.network-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: var(--warning);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.network-indicator.online .indicator-dot {
    background: var(--success);
}

.network-indicator.offline .indicator-dot {
    background: var(--error);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
    padding-top: 72px;
    min-height: calc(100vh - 72px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-icon:hover {
    background: var(--bg-card);
    color: var(--text);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card, .result-card, .wallet-card, .node-card, .feature-card, .tech-card, .token-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--card-padding);
    border-bottom: 1px solid var(--border);
    background: rgba(34, 197, 94, 0.05);
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-header h2 i {
    color: var(--primary);
}

.card-body {
    padding: var(--card-padding);
}

.card-nav {
    display: flex;
    gap: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.hero-stat .stat-suffix {
    font-size: 1rem;
    color: var(--primary);
}

.hero-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(34, 197, 94, 0.08);
    border-bottom: 1px solid var(--border);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warning);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-dot.offline {
    background: var(--error);
}

.hero-card .card-body {
    padding: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.stat-row .stat-label {
    color: var(--text-muted);
}

.stat-row .stat-value {
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.stats-ticker {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.stats-ticker .stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-ticker .stat-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
}

.stats-ticker .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-ticker .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.feature-card {
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    border-radius: var(--radius);
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.step-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   Network Section
   ========================================================================== */

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap);
}

.node-card {
    padding: 24px;
    position: relative;
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.node-info h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.node-region {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.node-region i {
    margin-right: 4px;
}

.node-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.node-status.online {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.node-status.offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.node-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.node-stat {
    text-align: center;
}

.node-stat .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.node-stat .value {
    font-weight: 600;
    font-family: var(--font-mono);
}

.node-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

/* ==========================================================================
   Roadmap Section
   ========================================================================== */

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    font-weight: 700;
    color: var(--text-muted);
}

.timeline-item.active .timeline-marker {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.timeline-content h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--text-muted);
}

.timeline-content li i {
    color: var(--primary);
    font-size: 0.75rem;
}

.timeline-item.active .timeline-content li i {
    color: var(--success);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(34, 197, 94, 0.05) 100%);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==========================================================================
   Explorer Page
   ========================================================================== */

.explorer-header {
    padding: 100px 0 40px;
    text-align: center;
}

.explorer-title h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.explorer-title h1 i {
    color: var(--primary);
    margin-right: 12px;
}

.explorer-title p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.explorer-search {
    max-width: 800px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    gap: 12px;
}

.search-wrapper i {
    padding-left: 12px;
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-dark);
}

.search-hints {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.search-hints span {
    margin-right: 8px;
}

.search-hints a {
    margin: 0 8px;
    color: var(--text-muted);
    text-decoration: underline;
}

.search-hints a:hover {
    color: var(--primary);
}

/* Explorer Stats */
.explorer-stats {
    padding: 24px 0;
}

.explorer-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 1.25rem;
}

.stat-card .stat-content .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.stat-card .stat-content .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Explorer Content */
.explorer-content {
    padding: 24px 0 80px;
}

.result-card {
    margin-bottom: 24px;
}

.detail-grid {
    display: grid;
    gap: 0;
}

.detail-row {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.detail-label {
    width: 200px;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    flex: 1;
    font-family: var(--font-mono);
    word-break: break-all;
}

.detail-value a {
    color: var(--primary);
}

.hash-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hash-value code {
    flex: 1;
    font-size: 0.875rem;
    word-break: break-all;
}

.copy-btn {
    padding: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(34, 197, 94, 0.05);
}

.data-table td {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

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

.data-table .amount {
    color: var(--primary);
    font-weight: 600;
}

.block-height {
    font-weight: 600;
    color: var(--primary);
}

.hash-link {
    color: var(--text-secondary);
}

.time-cell {
    color: var(--text-muted);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.badge-primary, .badge.badge-primary {
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary);
}

.badge-success, .badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.15);
    color: var(--warning);
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

/* Block Transactions */
.block-transactions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.block-transactions h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.tx-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.tx-hash {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.tx-io {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tx-io i {
    color: var(--primary);
}

/* Address Details */
.address-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.address-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-input);
    border-radius: var(--radius);
    flex: 1;
}

.address-display code {
    font-size: 1rem;
    word-break: break-all;
}

.balance-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.balance-card {
    padding: 24px;
    background: var(--bg-input);
    border-radius: var(--radius);
    text-align: center;
}

.balance-card .balance-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.balance-card .balance-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.balance-card .currency {
    font-size: 1rem;
    color: var(--primary);
}

.utxo-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.alert i {
    font-size: 1.25rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--warning);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info);
}

.empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ==========================================================================
   Wallet Page
   ========================================================================== */

.wallet-header {
    padding: 100px 0 40px;
    text-align: center;
}

.wallet-title h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.wallet-title h1 i {
    color: var(--primary);
}

.wallet-title p {
    color: var(--text-muted);
}

.wallet-notice {
    padding: 0 0 24px;
}

.notice-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius);
}

.notice-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 1.5rem;
    border-radius: var(--radius-sm);
}

.notice-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.notice-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.wallet-interface {
    padding-bottom: 80px;
}

/* Wallet Tabs */
.wallet-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.wallet-card {
    max-width: 600px;
    margin: 0 auto;
}

.wallet-card .card-header {
    text-align: center;
    display: block;
}

.wallet-card .card-header h2 {
    display: block;
    margin-bottom: 8px;
}

.wallet-card .card-header p {
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input::placeholder {
    color: var(--text-dark);
    font-family: var(--font-main);
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group .form-input {
    flex: 1;
}

/* Wallet Result */
.wallet-result {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.result-section {
    margin-bottom: 20px;
}

.result-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.value-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.value-box code {
    flex: 1;
    font-size: 0.875rem;
    word-break: break-all;
}

.value-box.danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.result-section.danger label {
    color: var(--error);
}

.result-section.success label {
    color: var(--success);
}

.help-text {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-dark);
}

.warning-box {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    color: var(--error);
}

.warning-box i {
    font-size: 1.25rem;
}

.warning-box strong {
    display: block;
    margin-bottom: 4px;
}

.warning-box p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.backup-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.create-actions {
    text-align: center;
    padding: 20px 0;
}

/* Balance Display */
.balance-display {
    text-align: center;
    padding: 32px;
    background: var(--bg-input);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.balance-main {
    margin-bottom: 8px;
}

.balance-main .balance-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.balance-main .balance-currency {
    font-size: 1.5rem;
    color: var(--primary);
    margin-left: 8px;
}

.balance-secondary {
    color: var(--text-muted);
}

/* Fee Estimate */
.fee-estimate {
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.875rem;
}

.fee-row.total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 16px;
    font-weight: 600;
}

/* ==========================================================================
   API Documentation Page
   ========================================================================== */

.api-header {
    padding: 100px 0 40px;
    text-align: center;
}

.api-title h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.api-title h1 i {
    color: var(--primary);
}

.api-title p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.api-quick-info {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.api-quick-info .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-quick-info .info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.api-quick-info .info-value {
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.api-content {
    padding-bottom: 80px;
}

.api-docs {
    max-width: 900px;
    margin: 0 auto;
}

.doc-section {
    margin-bottom: 48px;
    padding-top: 24px;
}

.doc-section h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.doc-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.doc-section h4 {
    font-size: 1rem;
    margin: 20px 0 12px;
    color: var(--text);
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.info-box i {
    color: var(--info);
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    color: var(--text-secondary);
}

.param-list {
    list-style: none;
    margin: 16px 0;
}

.param-list li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.param-list li strong {
    color: var(--text);
}

/* Endpoint Cards */
.endpoint-card {
    margin: 24px 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.method {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.method.get {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.method.post {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.method.put {
    background: rgba(234, 179, 8, 0.15);
    color: var(--warning);
}

.method.delete {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.endpoint-path {
    font-family: var(--font-mono);
    font-size: 1rem;
}

.endpoint-desc {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Code Examples */
.code-example {
    margin: 16px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.code-header {
    padding: 8px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.code-example pre {
    margin: 0;
    padding: 16px;
    background: var(--bg-input);
    overflow-x: auto;
}

.code-example code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* API Table */
.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.api-table th,
.api-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.api-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    background: rgba(34, 197, 94, 0.05);
}

.api-table code {
    padding: 2px 6px;
    background: var(--bg-input);
    border-radius: 4px;
    font-size: 0.8125rem;
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-header {
    padding: 100px 0 60px;
    text-align: center;
}

.about-intro h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.about-intro .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text .section-label {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.content-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.content-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
}

.feature-list li i {
    color: var(--primary);
}

.visual-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

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

.compare-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compare-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.compare-bar {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.compare-bar.bitcoin {
    background: linear-gradient(90deg, rgba(247, 147, 26, 0.3), rgba(247, 147, 26, 0.1));
    border: 1px solid rgba(247, 147, 26, 0.3);
    color: #f7931a;
}

.compare-bar.verdix {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--primary);
    width: 30%;
    min-width: fit-content;
}

.compare-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-dark);
}

/* Tech Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.tech-card {
    padding: 32px;
}

.tech-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary);
    font-size: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.tech-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Tokenomics Section */
.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.token-card {
    padding: 24px;
}

.token-card.wide {
    grid-column: span 3;
}

.token-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.token-header i {
    color: var(--primary);
    font-size: 1.25rem;
}

.token-header h3 {
    font-size: 1.125rem;
}

.token-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.token-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.token-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary);
}

.token-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.token-content p {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Phases Timeline */
.phases-timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.phase {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-input);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.phase.active {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.05);
}

.phase-marker {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.phase.active .phase-marker {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.phase-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.phase-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.phase-status {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    background: var(--border);
    color: var(--text-muted);
}

.phase.active .phase-status {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Specs Table */
.specs-table {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

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

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.footer-logo:hover {
    color: var(--text);
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

.footer-info {
    list-style: none;
}

.footer-info li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.875rem;
}

.footer-info .info-label {
    color: var(--text-muted);
}

.footer-info .info-value {
    font-family: var(--font-mono);
    color: var(--text);
}

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

.footer-version {
    font-family: var(--font-mono);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tokenomics-grid {
        grid-template-columns: 1fr;
    }
    
    .token-card.wide {
        grid-column: span 1;
    }
    
    .phases-timeline {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        flex-direction: column;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .stats-ticker {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .stats-ticker .stat-item {
        flex: 1 1 45%;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .explorer-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wallet-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 45%;
    }
    
    .balance-cards {
        grid-template-columns: 1fr;
    }
    
    .api-quick-info {
        flex-direction: column;
        gap: 16px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-label {
        width: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .explorer-stats .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        flex: 1 1 100%;
    }
    
    .backup-actions {
        flex-direction: column;
    }
}
