:root {
    --primary-color: #0d0d0d;
    --secondary-color: #250c00c0;
    --accent-color: #ff6b35;
    --accent-light: #ff8c5a;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --dark-gray: #2d2d2d;
}

/* ===================== */
/* اضافه کردن فونت دانا */
/* ===================== */

@font-face {
    font-family: 'Dana';
    src: url('../fonts/dana/eot/dana-regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/dana/woff2/dana-regular.woff2') format('woff2'),
        url('../fonts/dana/woff/dana-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('../fonts/dana/eot/dana-medium.eot?#iefix') format('embedded-opentype'),
        url('../fonts/dana/woff2/dana-medium.woff2') format('woff2'),
        url('../fonts/dana/woff/dana-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('../fonts/dana/eot/dana-demibold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/dana/woff2/dana-demibold.woff2') format('woff2'),
        url('../fonts/dana/woff/dana-demibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('../fonts/dana/eot/dana-bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/dana/woff2/dana-bold.woff2') format('woff2'),
        url('../fonts/dana/woff/dana-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('../fonts/dana/eot/dana-extrabold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/dana/woff2/dana-extrabold.woff2') format('woff2'),
        url('../fonts/dana/woff/dana-extrabold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* استفاده از فونت */
* {
    font-family: 'Dana', 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* Star Background Canvas */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Navbar */
.navbar {
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
    position: fixed;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    background: rgba(13, 13, 13, 0.98);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-color) !important;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #1f1f1f 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.btn-orange {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e55a2b 100%);
    color: white;
    padding: 15px 40px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(255, 107, 53, 0.4);
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 107, 53, 0.6);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 13px 38px;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: var(--secondary-color);
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--primary-color);
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(145deg, var(--secondary-color), #151515);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Platform Section */
.platform {
    padding: 100px 0;
    background: var(--secondary-color);
    position: relative;
    z-index: 2;
}

.platform-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.platform-list {
    list-style: none;
    padding: 0;
}

.platform-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.platform-list li i {
    color: var(--accent-color);
    margin-left: 15px;
    font-size: 1.2rem;
}

.platform-image {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-gray));
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--primary-color);
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 30px;
    margin: 15px 0;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin-left: 15px;
}

.testimonial-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.testimonial-text {
    color: var(--text-muted);
    line-height: 1.8;
}

.testimonial-stars {
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
}

.cta .btn-orange {
    background: white;
    color: var(--accent-color);
    position: relative;
}

.cta .btn-orange:hover {
    background: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background: #050505;
    padding: 60px 0 20px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.footer-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }

    .navbar-collapse {
        background: var(--secondary-color);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .btn-outline {
        margin-right: 0;
        margin-top: 15px;
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* Animation on scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Canvas برای نقاط */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ===================== */
/* Market Table Section */
/* ===================== */
.market-table {
    padding: 80px 0;
    background: url("../images/bg-5.jpg");
    position: relative;
    z-index: 2;
}

.table-container {
    background: linear-gradient(145deg, var(--primary-color), #151515);
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.15);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.market-table-inner {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}

.market-table-inner thead {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.05));
}

.market-table-inner th {
    padding: 20px 15px;
    text-align: right;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    white-space: nowrap;
}

.market-table-inner th:first-child {
    padding-right: 25px;
}

.market-table-inner th:last-child {
    text-align: center;
}

.market-table-inner tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.market-table-inner tbody tr:hover {
    background: rgba(255, 107, 53, 0.08);
}

.market-table-inner td {
    padding: 20px 15px;
    vertical-align: middle;
    color: var(--text-light);
}

/* Currency Info */
.currency-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.currency-icon.bitcoin {
    background: linear-gradient(135deg, #f7931a, #ffab40);
}

.currency-icon.ethereum {
    background: linear-gradient(135deg, #627eea, #8c9eff);
}

.currency-icon.tether {
    background: linear-gradient(135deg, #26a17b, #4ecba0);
}

.currency-icon.bnb {
    background: linear-gradient(135deg, #f3ba2f, #ffd54f);
}

.currency-icon.solana {
    background: linear-gradient(135deg, #9945ff, #14f195);
}

.currency-icon.cardano {
    background: linear-gradient(135deg, #0033ad, #3366ff);
}

.currency-icon.xrp {
    background: linear-gradient(135deg, #23292f, #4a5568);
}

.currency-icon.dogecoin {
    background: linear-gradient(135deg, #c2a633, #e5c85c);
}

.currency-name {
    font-weight: 600;
    font-size: 1rem;
}

.currency-symbol {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Price */
.price-value {
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Dana', monospace;
}

/* Change Percentage */
.change-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.change-value.positive {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.change-value.negative {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

/* Volume */
.volume-value {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Trade Button */
.trade-btn {
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.trade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.last-update {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.view-all-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.view-all-link:hover {
    color: var(--accent-light);
    transform: translateX(-5px);
    display: inline-block;
}

/* Responsive Table */
@media (max-width: 991px) {
    .table-container {
        overflow-x: scroll;
    }

    .market-table-inner {
        min-width: 700px;
    }
}

@media (max-width: 576px) {
    .market-table {
        padding: 60px 0;
    }

    .table-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ===================== */
/* Latest Articles Section */
/* ===================== */
.latest-articles {
    padding: 100px 0;
    background: var(--primary-color);
    position: relative;
    z-index: 2;
}

.article-card {
    background: linear-gradient(145deg, var(--secondary-color), #151515);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.15);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-gray), var(--secondary-color));
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 15px rgba(255, 107, 53, 0.4);
}

.article-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--text-light);
    transition: color 0.3s;
}

.article-card:hover .article-content h3 {
    color: var(--accent-color);
}

.article-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--accent-light);
    gap: 12px;
}

.read-more i {
    font-size: 0.8rem;
}

.articles-cta {
    text-align: center;
    margin-top: 50px;
}

/* Decorative Elements */
.error-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.deco-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 10%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

.deco-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    bottom: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

.deco-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    top: 50%;
    left: 5%;
    animation: float 7s ease-in-out infinite 1s;
}

/* Responsive */
@media (max-width: 991px) {
    .latest-articles {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .article-image {
        height: 180px;
    }

    .article-content {
        padding: 20px;
    }

    .article-content h3 {
        font-size: 1.05rem;
    }
}