:root {
    --primary-black: #000000;
    --secondary-black: #0f0f0f;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #333333;
    --primary-yellow: #ffd700;
    --secondary-yellow: #ffeb3b;
    --hover-yellow: #ffc107;
    --accent-yellow: #fff59d;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --text-light-gray: #888888;
    --border-gray: #333333;
    --success-green: #4caf50;
    --error-red: #f44336;
    --warning-orange: #ff9800;
    --info-blue: #2196f3;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-black);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles - Match KTXChain.com */
.header {
    background: var(--primary-black);
    border-bottom: 2px solid var(--primary-yellow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.brand h1 {
    color: var(--primary-yellow);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.brand .chain-text {
    color: var(--text-white);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-menu a:hover {
    color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section - Price Display */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--dark-gray) 100%);
    padding: 40px 0;
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
}

.price-display {
    text-align: center;
    margin-bottom: 30px;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 8px;
}

.price-change {
    font-size: 1.1rem;
    color: var(--success-green);
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--medium-gray);
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stat-value {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Explorer Section */
.explorer-section {
    padding: 40px 0;
}

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

.section-header h2 {
    color: var(--primary-yellow);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Table Styles */
.table-container {
    background: var(--dark-gray);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.table-header {
    background: var(--medium-gray);
    padding: 20px;
    border-bottom: 2px solid var(--primary-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-header i {
    color: var(--primary-yellow);
}

.view-all {
    color: var(--primary-yellow);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--hover-yellow);
}

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

.table th {
    background: var(--medium-gray);
    color: var(--text-gray);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-white);
    font-size: 0.9rem;
}

.table tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

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

/* Hash Links */
.hash-link {
    color: var(--primary-yellow);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.hash-link:hover {
    color: var(--hover-yellow);
    text-decoration: underline;
}

/* Value Display */
.value-display {
    color: var(--text-white);
    font-weight: 500;
}

.ktx-amount {
    color: var(--primary-yellow);
    font-weight: 600;
}

/* Status Badges */
.status-success {
    background: var(--success-green);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Fee Cards */
.fee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.fee-card {
    background: var(--dark-gray);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-gray);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
    border-color: var(--primary-yellow);
}

.fee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s;
}

.fee-card:hover::before {
    left: 100%;
}

.fee-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-yellow), var(--secondary-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--primary-black);
    position: relative;
    z-index: 1;
}

.fee-content h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.fee-amount {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-yellow), var(--secondary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fee-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 1rem;
}

.fee-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid var(--border-gray);
}

.fee-stats span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Network Information */
.network-info-section {
    max-width: 1200px;
    margin: 40px auto;
    background: var(--dark-gray);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.network-info-section h2 {
    color: var(--primary-yellow);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.network-info-section h2 i {
    color: var(--primary-yellow);
}

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

.network-item {
    background: var(--medium-gray);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.network-item:hover {
    background: var(--light-gray);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
}

.network-label {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 1rem;
}

.network-value {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    text-align: right;
    word-break: break-all;
}

/* Footer */
.footer {
    background: var(--secondary-black);
    border-top: 2px solid var(--primary-yellow);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-brand {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-description {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-section h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    border-top: 1px solid var(--border-gray);
    padding-top: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

.loading i {
    font-size: 2rem;
    color: var(--primary-yellow);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fee-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .network-grid {
        grid-template-columns: 1fr;
    }
    
    .network-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .network-value {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .price-main {
        font-size: 2rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th, .table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .fee-card {
        padding: 20px;
    }
    
    .fee-amount {
        font-size: 1.8rem;
    }
    
    .network-info-section {
        padding: 20px;
    }
    
    .table th, .table td {
        padding: 8px 5px;
        font-size: 0.75rem;
    }
    
    .hash-link {
        font-size: 0.7rem;
    }
}
