/* Fonts */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif; /* Default to Vazirmatn for Persian */
    line-height: 1.6;
    color: #333;
    direction: rtl;
    background: #FFFFFF;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure Rubik is used for English text where explicitly needed, or implicitly through a language-specific class */
.english-font {
    font-family: 'Rubik', sans-serif;
}

/* Header */
.header {
    background: #030321;
    padding: 1.5rem 0;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 40px rgba(30, 4, 114, 0.15);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

/* Mobile layout changes */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1rem;
        gap: 0;
    }
    
    .logo {
        flex: 1;
        display: flex;
        justify-content: center;
        margin: 0;
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: auto;
    }
    
    .auth-btn {
        margin: 0;
        padding: 10px 10px;
        font-size: 13px;
        font-family: 'Vazirmatn', sans-serif;
        background: #7C3AED;
        border-radius: 6px;
        min-width: auto;
    }
    
    .mobile-menu-toggle {
        margin: 0;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 300;
}

.hamburger-line {
    width: 16px;
    height: 2px;
    background-color: #7C3AED;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle:hover .hamburger-line {
    opacity: 0.8;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make icon white */
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #E5E7EB;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}   

.mobile-menu-logo .logo-icon {
    /* width: 40px;
    height: 40px; */
    z-index: 500;
    background: url('../images/logo-white.png') no-repeat center center;
    background-size: contain;
    filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(7151%) hue-rotate(248deg) brightness(95%) contrast(118%);
}

.mobile-menu-logo .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #1F2937;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6B7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: #374151;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #F3F4F6;
}

.mobile-menu-item:hover {
    background: #F8FAFC;
    color: #7C3AED;
}

.mobile-menu-item.active {
    background: #F3E8FF;
    color: #7C3AED;
    border-right: 4px solid #7C3AED;
}

.mobile-menu-auth {
    padding: 2rem;
    border-top: 1px solid #E5E7EB;
}

.mobile-auth-btn {
    width: 100%;
    background: #7C3AED;
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-auth-btn:hover {
    background: #6D28D9;
    transform: translateY(-2px);
}

.mobile-menu-contact {
    padding: 1.5rem 2rem;
    border-top: 1px solid #E5E7EB;
}

.mobile-menu-contact h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.mobile-menu-contact p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.mobile-menu-social {
    padding: 1.5rem 2rem;
    border-top: 1px solid #E5E7EB;
}

.mobile-menu-social h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
    justify-content: center;
    text-align: center;
}

.mobile-social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.mobile-social-icons .social-icon {
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* size SVGs inside circular buttons */
.mobile-social-icons .social-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.mobile-social-icons .social-icon:hover {
    transform: translateY(-2px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 209px;
    height: 44px;
    background: url('../images/logo-white.png') no-repeat center center;
    background-size: contain;
    border-radius: 8px;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: #7C3AED;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #7C3AED;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.dropdown::after {
    content: '▼';
    margin-right: 0.5rem;
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-menu a.dropdown:hover::after {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #7C3AED;
}

/* Footer social icons */
.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-social-icons a {
    color: #9CA3AF;
    font-size: 24px;
    transition: color 0.3s ease;
}

.footer-social-icons a:hover {
    color: #7C3AED;
}

/* Ensure SVG icons display at a consistent size */
.footer-social-icons img {
    width: 24px;
    height: 24px;
    display: block;
}

.auth-btn {
    background: #7C3AED;
    color: #fff;
    padding: 16px 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}


/* Responsive adjustments for auth button */
@media (max-width: 640px) {
    .auth-btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* Galaxy S21 Ultra portrait (~412px) and nearby widths */
@media screen and (min-width: 380px) and (max-width: 430px) {
    .auth-btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* Galaxy S24 family portrait (~384px to 480px) */
@media screen and (min-width: 430px) and (max-width: 500px) {
    .auth-btn {
        padding: 10px;
        font-size: 14px;
    }
}

.auth-btn:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* User Panel Button Styles */
.user-panel-btn {
    background: #000000;
    color: #FFFFFF;
    padding: 12px 20px;
    border: 2px solid #FFFFFF;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-panel-btn .panel-text {
    order: 1;
}

.user-panel-btn .panel-icon {
    order: 2;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 4px;
}

.user-panel-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-panel-btn:active {
    transform: translateY(0);
}

/* Mobile User Panel Button */
.mobile-panel-btn {
    width: 100%;
    justify-content: center;
}

/* User Panel Card */
.user-panel-trigger { position: relative; display: inline-block; }
.user-panel-card {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 143px;
    height: 303px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 12px 10px;
    z-index: 2000;
    display: none;
}
.user-panel-card.show { display: block; }

.user-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #E8E8E8; }
.user-level { font-family: 'Vazirmatn', sans-serif; font-weight: 500; font-size: 10px; line-height: 15px; color: #121212; }
.user-shield { width: 26px; height: 30px; border-radius: 8px; background: linear-gradient(180deg,#A6BFFF,#FFFFFF); box-shadow: 0 1px 6px rgba(0,72,255,0.7); }

.user-panel-menu { list-style: none; padding: 0; margin: 0; }
.user-panel-menu li { border-bottom: 1px solid #E8E8E8; }
.user-panel-menu li:last-child { border-bottom: 1px solid #E8E8E8; }
.user-panel-menu a { display: block; padding: 12px 6px; text-decoration: none; font-family: 'Vazirmatn', sans-serif; font-weight: 400; font-size: 16px; line-height: 25px; color: #1E2AC2; text-align: right; }
.user-panel-menu a:hover { background: #F8FAFC; }

.user-panel-logout { display: block; padding: 12px 6px; text-decoration: none; font-family: 'Vazirmatn', sans-serif; font-weight: 400; font-size: 16px; line-height: 25px; color: #FB4E4E; text-align: right; margin-top: 6px; }
.user-panel-logout:hover { background: #FFF5F5; }

/* Responsive adjustments for user panel button */
@media (max-width: 640px) {
    .user-panel-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .user-panel-btn .panel-icon {
        font-size: 16px;
        width: 20px;
        height: 20px;
    }
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-btn {
    background: #7C3AED;
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.user-btn:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.07);
    width: 143px;
    min-width: 143px;
    display: none;
    margin-top: 8px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
}

.user-menu-list {
    list-style: none;
    padding: 18px 0 0 0;
    margin: 0;
}

.user-menu-list li {
    border-bottom: 1px solid #E8E8E8;
}

.user-menu-list li:last-child {
    border-bottom: none;
}

.menu-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #1E2AC2;
    font-family: 'Yekan Bakh FaNum';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
    transition: background-color 0.3s ease;
}

.menu-item:hover {
    background-color: #F5F5F5;
}

.menu-item.logout {
    color: #FB4E4E;
}

.user-name {
    font-size: 14px;
}

.dropdown-arrow {
    font-size: 10px;
}

/* Mobile User Info */
.mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.mobile-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #1E2AC2;
}

.mobile-logout-btn {
    background: #FB4E4E;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.mobile-logout-btn:hover {
    background: #e63939;
}

/* Hero Section with Banner */
.hero {
    background: url('/static/images/banner2.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 651px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    /* Ensure background covers the full height between header and ticker */
    background-color: #0b0b1a;
}

/* Fix white strip on mobile by ensuring full coverage between header and ticker */
@media (max-width: 640px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        padding: 120px 0 0;
        /* Cover full viewport height to reach ticker */
        background: url('/static/images/banner2.png') repeat fixed center;
        background-size: cover;
        background-position: center;
        /* Remove any margin that might create gap */
        margin: 0;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 150px;
    align-items: center;
    width: 100%;
    /* height: 100%; */
}

.hero-text {
    text-align: right;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: #fff;
    margin-bottom: 3rem;
    margin-right: 0;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
 
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.hero-btn {
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn.primary {
    background: #7C3AED;
    color: #fff;
}

.hero-btn.primary:hover {
    background: #6D28D9;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.hero-visual {
    position: relative;
    height: 600px;
    width: 100%;
    z-index: 2;
}

.rocket {
    position: absolute;
    width: 342.65px;
    height: 547.23px;
    left: 80px;
    top: 40px;
    background: url('/static/images/rocket.png') no-repeat center center;
    background-size: contain;
    transform: rotate(-7.51deg);
    animation: rocketFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 60px rgba(124, 58, 237, 0.4));
    z-index: 2;
}

.rocket-shadow {
    position: absolute;
    width: 413.2px;
    height: 593.81px;
    left: 50px;
    top: 40px;
    background: url('/static/images/shadowRocket.png') no-repeat center center;
    background-size: contain;
    filter: blur(20px);
    transform: rotate(-7.51deg);
    animation: shadowPulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes rocketFloat {
    0% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-25px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(-2deg); 
    }
    100% { 
        transform: translateY(0px) rotate(0deg); 
    }
}

@keyframes shadowPulse {
    0% { 
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
    25% { 
        opacity: 0.5;
        transform: translateX(-50%) scale(1.05);
    }
    50% { 
        opacity: 0.7;
        transform: translateX(-50%) scale(1.1);
    }
    75% { 
        opacity: 0.5;
        transform: translateX(-50%) scale(1.05);
    }
    100% { 
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
}

/* Cloud and Coin Elements */
.cloud {
    position: absolute;
    z-index: 3;
    animation: cloudFloat 6s ease-in-out infinite;
}

.cloud img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cloud-1 {
    width: 190px;
    height: 190px;
    left: 60px;
    top: 95px;
    animation-delay: 0s;
   
}

.cloud-2 {
    width: 224px;
    height: 130px;
    left: 300px;
    top: 300px;
    animation-delay: 2s;
}

.cloud-3 {
    width: 300px;
    height: 150px;
    left: -80px;
    top: 400px;
    animation-delay: 4s;
}

.coin {
    position: absolute;
    z-index: 2;
    animation: coinFloat 4s ease-in-out infinite;
}

.coin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.coin-btc {
    width: 118px;
    height: 118px;
    left: 100px;
    top: 50px;
    animation-delay: 0.5s;
}

.coin-ada {
    width: 100px;
    height: 100px;
    left: 380px;
    top: 260px;
    animation-delay: 2.5s;
}

.coin-eth {
    width: 114px;
    height: 114px;
    left: 20px;
    top: 350px;
    animation-delay: 4.5s;
}


@keyframes cloudFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(2deg); 
    }
}

@keyframes coinFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-8px) rotate(5deg); 
    }
}

.crypto-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.crypto-icon.bitcoin {
    background: #F59E0B;
}

.crypto-icon.ethereum {
    background: #3B82F6;
}

.crypto-icon.cardano {
    background: #10B981;
}

.crypto-icon.avalanche {
    background: #EF4444;
}

.crypto-icon.binance {
    background: #F59E0B;
}

.crypto-icon.tron {
    background: #8B5CF6;
}

.crypto-icon.shiba {
    background: #F59E0B;
}

.crypto-icon.dash {
    background: #3B82F6;
}

.crypto-icon.launch {
    background: #10B981;
}
 /* Market Ticker */
:root {
    --ticker-duration: 30s; /* overridden by JS */
    --scroll-distance: 1000px; /* default; JS sets precise value */
}
  
.ticker-wrapper {
overflow: hidden;
width: 100%;
box-sizing: border-box;
border-top: 1px solid rgba(255,255,255,0.02);
border-bottom: 1px solid rgba(255,255,255,0.02);
padding: 6px 0;
background: linear-gradient(90deg, rgba(10,18,35,0.9), rgba(7,16,41,0.95));
}

.ticker-track {
display: flex;
align-items: center;
white-space: nowrap;
will-change: transform;
animation: ticker-scroll var(--ticker-duration) linear infinite;
flex-wrap: nowrap;            /* prevent wrapping */
direction: ltr;               /* neutralize page RTL for layout */
}

.ticker-sequence {
display: inline-flex;
flex: 0 0 auto;              /* don't shrink, keep intrinsic width */
}

.ticker-item {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 0 18px;
font-size: 14px;
color: #E6EEF8;
white-space: nowrap;
box-sizing: border-box;
}

.ticker-icon-img {
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
flex: 0 0 24px;
}

.ticker-change.positive { color: #34D399; margin-inline-start: 8px; }
.ticker-change.negative { color: #FB7185; margin-inline-start: 8px; }
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * var(--scroll-distance))); }
  }
  
/* @media (max-width:600px){
    .ticker-item { padding: 0 12px; font-size: 13px; }
  }
  */

    /* Exchange Widget */
.exchange-section {
    padding: 64px 0;
    background: #fff;
}

/* Live conversion animation */
.form-input.converting {
    animation: pulse 0.5s ease-in-out;
}

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

.exchange-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

.exchange-card {
    background: #FFFFFF;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 32px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    width: 500px;
    min-height: 378px;
}

.exchange-tabs {
    display: flex;
    margin-bottom: 32px;
    gap: 16px;
    justify-content: center;
}

.exchange-tab {
    padding: 16px;
    border: none;
    background: #D9D9FF;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 31px;
    color: #0000FF;
    border-radius: 15px;
    transition: all 0.3s ease;
    width: 214px;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exchange-tab.active {
    background: #0000FF;
    color: #FFFFFF;
}

.exchange-tab:not(.active) {
    background: #D9D9FF;
    color: #0000FF;
}

.exchange-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* Primitive Design Currency Cards */
.form-group {
    position: relative;
    width: 452px;
    height: 66px;
    background: #F7F7FF;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}


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

.currency-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-group:hover .currency-info {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.02);
}

.currency-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.currency-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.currency-name {
    font-family: 'Vazirmatn', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #050E56;
}

.currency-code {
    font-family: 'Vazirmatn', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #6B7280;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.separator {
    width: 1px;
    height: 40px;
    background: #D1D5DB;
    margin: 0 8px;
}

.form-input {
    background: transparent;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 25px;
    color: #050E56;
    width: 100%;
    padding: 2px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.form-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.form-currency-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 16px;
    border-left: 2px solid #050E56;
    height: 32px;
    min-width: 143px;
}

.currency-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.currency-code {
    font-family: 'Vazirmatn', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 25px;
    color: #050E56;
}

.currency-name {
    font-family: 'Vazirmatn', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 25px;
    color: #050E56;
}

.currency-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.currency-icon.iran-flag {
    background: linear-gradient(to bottom, #4CAF50 33%, #FFFFFF 33% 66%, #F44336 66%);
    position: relative;
}

.currency-icon.iran-flag::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #D32F2F;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.currency-icon.bitcoin {
    background: #F59E0B;
    color: #fff;
}

.swap-button {
    display: flex;
    justify-content: center;
    margin: 0.8px 0;
}

.swap-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #7C3AED;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
    position: relative;
    z-index: 10;
}

.swap-btn:hover {
    background: #6D28D9;
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.swap-btn svg {
    width: 24px;
    height: 24px;
}

.swap-btn svg path {
    stroke: white;
    stroke-width: 2.5;
}

.exchange-btn {
    background: #7C3AED;
    color: white;
    padding: 20px;
    border: none;
    border-radius: 15px;
    font-family: 'Vazirmatn', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 31px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 71px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.exchange-btn:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* Market Overview */
.market-overview {
    padding: 32px 0;
    background: #F8FAFC;
}

.overview-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px; /* Space between title and cards */
}

.overview-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 0; /* Managed by gap in overview-container */
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted for larger, more flexible cards */
    gap: 24px; /* Gap between cards as per Figma */
    max-width: 1200px; /* Slightly increased max-width */
    width: 100%; /* Ensure it takes full width up to max-width */
    margin: 0 auto; /* Center the grid */
}

.overview-card {
    background: #fff;
    padding: 28px; /* Adjusted padding for internal elements */
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* Enhanced shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 160px; /* Increased minimum height */
    box-sizing: border-box; /* Include padding in width/height */
    justify-content: space-between; /* Distribute space between header, content, and numeric value */
}

.overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-title {
    font-family: 'Vazirmatn', sans-serif; /* From Figma */
    font-weight: 700; /* From Figma */
    font-size: 24px; /* Increased from 20px */
    line-height: 31px; /* From Figma */
    color: #121212; /* From Figma */
    mix-blend-mode: hard-light; /* From Figma */
    margin: 0;
}

.card-change {
    font-family: 'Vazirmatn', sans-serif; /* From Figma */
    font-style: normal;
    font-weight: 400;
    font-size: 16px; /* Increased from 14px */
    line-height: 22px; /* From Figma */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: right;
    text-transform: capitalize;
    color: #FFFFFF; /* From Figma */
    padding: 4px 12px; /* Adjusted padding */
    border-radius: 15px; /* From Figma */
    height: auto; /* Allow height to adjust */
    min-width: 80px; /* Increased min-width */
}

.card-change.positive {
    background: #2AC769; /* From Figma */
}

.card-change.negative {
    background: #FB4E4E; /* From Figma */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-currency-info {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between currency details and icon */
}

.currency-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.currency-name {
    font-family: 'Vazirmatn', sans-serif; /* From Figma */
    font-style: normal;
    font-weight: 500;
    font-size: 16px; /* Increased from 14px */
    line-height: 22px; /* From Figma */
    color: #121212; /* From Figma */
    text-align: right;
}

.currency-code {
    font-family: 'Vazirmatn', sans-serif; /* From Figma */
    font-style: normal;
    font-weight: 500;
    font-size: 12px; /* Increased from 10px */
    line-height: 15px; /* From Figma */
    color: rgba(18, 18, 18, 0.5); /* From Figma */
    text-align: right;
}

.crypto-icon-img {
    width: 48px; /* Increased from 40px */
    height: 48px; /* Increased from 40px */
    border-radius: 50%; /* Make it circular as per Figma */
    object-fit: cover;
    filter: drop-shadow(0px 0px 30px rgba(0, 0, 0, 0.15)); /* From Figma */
}

.card-value-numeric {
    font-family: 'Vazirmatn', sans-serif;
    font-style: normal;
    font-weight: 600; /* Increased from 400 */
    font-size: 18px; /* Increased from 14px */
    line-height: 22px;
    display: flex;
    align-items: center;
    text-align: right;
    text-transform: capitalize;
    color: #121212;
}

/* Live Price Table */

.load-more-btn {
    background: #7C3AED;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 2rem;
}

.load-more-btn:hover {
    background: #6D28D9;
}

/* Live Price Table */
.live-prices {
    padding: 4rem 0;
    background: #fff;
}

.prices-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prices-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 3rem;
}

.prices-table-header,
.prices-table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr 0.8fr 107px; /* Adjusted for 5 columns + 107px for button */
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Max width for the table */
}

.prices-table-header {
    background: #F8FAFC; /* Light background for header */
    padding: 1rem 1.5rem;
    border-radius: 12px; /* Rounded corners for header */
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-item {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #4B5563;
    text-align: right; /* Align header text to right */
}

.prices-table-body {
    width: 100%;
    max-width: 1200px;
}

.prices-table-row {
    background: #FFFFFF;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.prices-table-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.crypto-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.crypto-name {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #1F2937;
}

.price,
.buy-price,
.sell-price,
.change-percentage {
    font-family: 'Rubik', sans-serif; /* Rubik for numeric values */
    font-weight: 500;
    font-size: 16px;
    color: #374151;
    text-align: right;
}

.change-percentage.positive {
    color: #10B981; /* Green for positive change */
}

.change-percentage.negative {
    color: #EF4444; /* Red for negative change */
}

.trade-button-container {
    display: flex;
    justify-content: center; /* Center the button within its grid cell */
}

.trade-button {
    background: #fff; /* Default white background */
    color: #7C3AED; /* Default purple text color */
    padding: 0;
    border: 1px solid #7C3AED; /* Purple border */
    border-radius: 15px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 107px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trade-button:hover {
    background: #0000FF; /* Hover to blue background */
    color: #fff; /* Hover to white text color */
    transform: translateY(-1px);
}

/* Responsive adjustments for the live price table */
@media (max-width: 1024px) {
    .prices-table-header,
    .prices-table-row {
        grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr 0.8fr 100px; /* Adjusted for 6 columns on medium screens */
        padding: 0.8rem 1rem;
    }

    .header-item,
    .crypto-name,
    .price,
    .buy-price,
    .sell-price,
    .change-percentage {
        font-size: 14px;
    }

    .trade-button {
        padding: 0.5rem 1rem;
        font-size: 12px;
        width: 90px; /* Adjusted width for medium screens */
        height: 32px; /* Adjusted height for medium screens */
    }
}


@media (max-width: 480px) {
    .prices-table-header,
    .prices-table-row {
        grid-template-columns: 1fr 1fr 1fr 1fr; /* Further simplify columns */
        padding: 0.5rem;
    }

    .header-item,
    .crypto-name,
    .price,
    .buy-price,
    .sell-price,
    .change-percentage {
        font-size: 12px;
    }

    .crypto-icon-small {
        width: 24px;
        height: 24px;
    }
}

/* Features Section - Figma based */
.features {
    position: relative;
    padding: 64px 0; /* aligns with top ~2085 in flow */
    color: #FFFFFF;
    background: url('/static/images/FeaturesSection.png') center/cover no-repeat, #0B0F3A; /* fallback */
}

.features::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.0);
}

.features-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    
}

.features-title {
    font-family: 'Vazirmatn', sans-serif; /* use Vazir/Vazirmatn */
    font-weight: 700;
    font-size: 48px;
    line-height: 67px;
    mix-blend-mode: hard-light;
    margin-bottom: 12px;
}

.features-lead {
    max-width: 626px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
    text-align: justify;
    color: #FFFFFF;
    margin-bottom: 40px;
}

.features-grid-figma {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 100%;
    width: 50%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.feature-card {
    width: 100%;
    max-width: 306px;
    min-height: 214px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px 24px;
    color: #121212;
    box-sizing: border-box;
    margin: 0 auto;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(180deg, #0E2AE3 0%, #12175F 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: inherit; /* place at left in RTL card header */
}

.icon-img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }

.feature-card .card-title {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 31px;
    text-align: right;
    color: #121212;
    mix-blend-mode: hard-light;
    margin-top: 12px;
}

.feature-card .card-desc {
    margin-top: 10px;
    width: 258px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    text-align: justify;
    color: #1E2AC2;
}
.feature-card-header {
    display: flex;
    align-items: center;

    gap: 10px;
}
/* Build Your Own Section */
.build-section {
    padding: 4rem 0;
    background: #F8FAFC;
}

.build-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.build-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 1rem;
}

.build-desc {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.star {
    color: #F59E0B;
    font-size: 2rem;
}

.build-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.build-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.build-feature-icon {
    width: 80px;
    height: 80px;
    background: #7C3AED;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
}

.build-feature-text {
    font-size: 14px;
    color: #374151;
    max-width: 120px;
}

/* Download App Section */
.download-app {
    padding: 4rem 0;
    background: #fff;
}

.download-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 1rem;
}

.download-content p {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    padding: 1rem 2rem;
    border: 2px solid #7C3AED;
    border-radius: 12px;
    background: transparent;
    color: #7C3AED;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #7C3AED;
    color: #fff;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
}

.qr-text {
    font-size: 14px;
    color: #6B7280;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: #F8FAFC;
}

.faq-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 3rem;
}

.faq {
    background: #F1F5FE;
    padding: 2rem 0;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem 2rem;
}

.faq-title {
    grid-column: 1 / -1;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 800;
    color: #0F1EA8; /* سایت آبی */
    text-align: center;
    margin-bottom: .75rem;
    position: relative;
}

.faq-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 100%;
    height: 3px;
    background: #A6BFFF;
    border-radius: 2px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #E2E8F0;
}

.faq-question:hover {
    background: #F8FAFC;
}

.faq-answer {
    padding: 1.5rem;
    color: #6B7280;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    transition: transform 0.3s ease;
}

.faq-toggle.active {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: #1E2AC2; /* آبی برند */
    background: #EEF2FF;
}

/* Desktop two columns */
@media (min-width: 992px) {
    .faq-container {
        grid-template-columns: 1fr 1fr;
    }

    .faq-title {
        grid-column: 1 / -1;
    }
}

/* Footer */
.footer {
    background: #030321;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #7C3AED;
}

.footer-section p,
.footer-section a {
    color: #E5E7EB;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: #7C3AED;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #7C3AED;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #6D28D9;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show hamburger menu, hide desktop nav */
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hero section mobile optimization - preserving visual hierarchy */
    .hero {
        width: 100%;
        height: auto;
        min-height: 700px;
        padding: 100px 0 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-visual {
        order: 1;
        height: 350px;
        width: 100%;
        position: relative;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-text {
        order: 1;
        text-align: center;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin: 0 auto 2rem;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    }
    
    /* Rocket mobile optimization - centered and scaled */
    .rocket {
        width: 200px;
        height: 320px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(-7.51deg);
        animation: rocketFloat 4s ease-in-out infinite;
    }
    
    .rocket-shadow {
        width: 220px;
        height: 300px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(-7.51deg);
        background-size: contain;
        filter: blur(15px);
        animation: shadowPulse 4s ease-in-out infinite;
    }
    
    /* Clouds repositioned for mobile - maintaining relative positions */
    .cloud-1 {
        width: 80px;
        height: 50px;
        left: 15%;
        top: 20%;
        animation-delay: 0s;
    }
    
    .cloud-2 {
        width: 100px;
        height: 60px;
        left: 70%;
        top: 60%;
        animation-delay: 2s;
    }
    
    .cloud-3 {
        width: 70px;
        height: 45px;
        left: 10%;
        top: 75%;
        animation-delay: 4s;
    }
    
    /* Coins repositioned for mobile - maintaining relative positions */
    .coin-btc {
        width: 50px;
        height: 50px;
        left: 20%;
        top: 30%;
        animation-delay: 0.5s;
    }
    
    .coin-ada {
        width: 40px;
        height: 40px;
        left: 75%;
        top: 50%;
        animation-delay: 2.5s;
    }
    
    .coin-eth {
        width: 45px;
        height: 45px;
        left: 15%;
        top: 65%;
        animation-delay: 4.5s;
    }
    
    /* Other sections mobile optimization */
    .exchange-card {
        padding: 24px;
        width: 100%;
        max-width: none;
    }
    
    .features-container,
    .download-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .build-features {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Prices table mobile optimization */
    .prices-table-header,
    .prices-table-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 0.8fr; /* 5 columns (no operations column) */
        padding: 0.7rem 0.8rem;
    }

    .header-item:last-child,
    .trade-button-container {
        display: none; /* Hide the 'عملیات' column and button on small screens */
    }

    .prices-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Features section mobile optimization */
    .features-wrapper {
        padding: 0 64px;
    }
    
    .features-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .features-lead {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .features-grid-figma {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        width: 100%;
        margin: 0 auto;
    }
    
    .feature-card {
        max-width: none;
        width: 100%;
        padding: 1.5rem;
        min-height: auto;
        margin: 0 auto;
    }
    
    .feature-card .card-title {
        font-size: 18px;
        line-height: 1.3;
        margin-top: 0.75rem;
    }
    
    .feature-card .card-desc {
        font-size: 13px;
        line-height: 1.4;
        width: 100%;
        margin-top: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Mobile menu adjustments for small screens */
    .mobile-menu-panel {
        width: 90%;
    }
    
    .mobile-menu-header {
        padding: 1rem 1.5rem;
    }
    
    .mobile-menu-item {
        padding: 0.75rem 1.5rem;
        font-size: 15px;
    }
    
    .mobile-menu-auth {
        padding: 1.5rem;
    }
    
    .mobile-menu-contact,
    .mobile-menu-social {
        padding: 1rem 1.5rem;
    }
    
    /* Hero section small mobile optimization - maintaining structure */
    .hero {
        width: 100%;
        height: auto;
        min-height: 600px;
        padding: 80px 0 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-visual {
        order: 2;
        height: 280px;
        width: 100%;
        position: relative;
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-text {
        order: 1;
        text-align: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto 1.5rem;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-btn {
        padding: 0.875rem 1.5rem;
        font-size: 15px;
        width: 50%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-visual {
        height: 250px;
        margin-bottom: 1.5rem;
    }
    
    /* Rocket further optimized for small screens - maintaining animations */
    .rocket {
        width: 300px;   
        height: 320px;
        left: 10%;
        top: 0%;
        transform: translate(-50%, -50%) rotate(-7.51deg);
        animation: rocketFloat 4s ease-in-out infinite;
    }
    
    .rocket-shadow {
        width: 500px;
        height: 500px;
        left: 30%;
        top: 10%;
        transform: translate(-50%, -50%) rotate(-7.51deg);
        background-size: contain;
        filter: blur(12px);
        animation: shadowPulse 4s ease-in-out infinite;
    }
    
    /* Clouds further repositioned for small screens */
    .cloud-1 {
        width: 100px;
        height: 100px;
        left: 13%;
        top: 25%;
        animation-delay: 0s;
    }
    
    .cloud-2 {
        width: 90px;
        height: 90px;
        left: 70%;
        top: 60%;
        animation-delay: 2s;
    }
    
    .cloud-3 {
        width: 90px;
        height: 90px;
        left: 8%;
        top: 80%;
        animation-delay: 4s;
    }
    
    /* Coins further repositioned for small screens */
    .coin-btc {
        width: 60px;
        height: 60px;
        left: 18%;
        top: 14%;
        animation-delay: 0.5s;
    }
    
    .coin-ada {
        width: 55px;
        height: 55px;
        left: 75%;
        top: 55%;
        animation-delay: 2.5s;
    }
    
    .coin-eth {
        width: 45px;
        height: 45px;
        left: 15%;
        top: 78%;
        animation-delay: 4.5s;
    }
    
    /* Other mobile adjustments */
    .exchange-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .exchange-tab {
        width: 100%;
        height: 50px;
        font-size: 18px;
    }
    
    .form-group {
        width: 100%;
        max-width: none;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-icon {
        width: 150px;
        height: 32px;
    }
    
    .prices-table {
        font-size: 14px;
    }
    
    .prices-table th,
    .prices-table td {
        padding: 1rem 0.5rem;
    }
    
    .ticker-container {
        padding: 0 1rem;
    }
    
    .ticker-item {
        padding: 0.25rem 0.5rem;
        font-size: 12px;
    }
    
    /* Features section small mobile optimization */
    .features-wrapper {
        padding: 0 64px;
    }
    
    .features-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .features-lead {
        font-size: 13px;
        margin-bottom: 1.5rem;
    }
    
    .features-grid-figma {
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card .card-title {
        font-size: 16px;
    }
    
    .feature-card .card-desc {
        font-size: 12px;
        text-align: center;
    }
}

/* Currency Selector Modal */
.currency-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.currency-selector-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.currency-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.currency-selector-header h3 {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 18px;
    color: #050E56;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #000;
}

.currency-selector-content {
    padding: 20px;
}

.currency-search {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    direction: rtl;
}

.search-input:focus {
    outline: none;
    border-color: #7C3AED;
}

.currency-list {
    max-height: 400px;
    overflow-y: auto;
}

.currency-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 5px;
}

.currency-item:hover {
    background-color: #f8f9fa;
}

.currency-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 12px;
}

.currency-item-info {
    display: flex;
    flex-direction: column;
}

.currency-item-name {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #050E56;
}

.currency-item-code {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Modern Currency Display Box */
.currency-info {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
}

.currency-info:hover {
    background-color: #F8FAFC;
    border-color: #7C3AED;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
    transform: translateY(-1px);
}

.currency-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.currency-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.currency-name {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #050E56;
    line-height: 1.2;
}

.currency-code {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
    line-height: 1.2;
}
