/* Font Face Declarations */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh-VF.ttf') format('truetype');
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

/* Inter font - using local file for better reliability */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables - Color Theme */
:root {
    /* Primary Colors */
    --primary-50: #F4F1FF;
    --primary-100: #EAE4FF;
    --primary-200: #D9CCFF;
    --primary-300: #C2B1FF;
    --primary-400: #A389FF;
    --primary-500: #735BF2;
    --primary-600: #6A4FD9;
    --primary-700: #5A42B8;
    --primary-800: #4A3399;
    --primary-900: #3A2680;
    
    /* Secondary Colors */
    --secondary-500: #DE496E;
    --secondary-600: #C84466;
    
    /* Gray Colors */
    --gray-50: #F6FBFF;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #B4BFD0;
    --gray-500: #94A3B8;
    --gray-600: #78829B;
    --gray-700: #5C6F84;
    --gray-800: #3F5266;
    --gray-900: #1E293B;
    --gray-950: #0F172A;
    
    /* Semantic Colors */
    --success: #00B383;
    --error: #F25B65;
    --warning: #F59E0B;
    --info: #0095FF;
    
    /* Neutral */
    --white: #FFFFFF;
    --black: #000000;
    
    /* Brand Colors */
    --brand-main: var(--primary-500);
    --cnt-neutral-main: var(--gray-900);
    --cnt-neutral-secondary: var(--gray-700);
    --cnt-neutral-tertiary: var(--gray-600);
    --cnt-neutral-fourth: var(--gray-500);
    --bg-default-main: #FFFFFF;
    --border-default-main: var(--gray-300);
    
    /* Typography */
    --font-persian: 'YekanBakh', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-english: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-s: 8px;
    --spacing-m: 16px;
    --spacing-l: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Border Radius */
    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    background: radial-gradient(125.96% 101.55% at 50% -1.55%, rgba(115, 91, 242, 0.02) 31.17%, rgba(115, 91, 242, 0.11) 100%), #FEFBFB;
    background-attachment: fixed;
    background-color: var(--bg-default-main);
    background-repeat: no-repeat;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
}

/* Home page - add bg.png image on top of gradient */
html:not(:has(.page-content))::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/bg.png');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
}

body {
    width: 100%;
    font-family: var(--font-persian);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: transparent;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
}

/* Body Content */
.body-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    margin-top: 128px; /* Space for fixed header */
    padding: 96px 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* Pages (not home) - padding 48px top/bottom, 0 left/right */
body:has(.page-content) .body-content {
    margin-top: 128px; /* Space for fixed header */
    padding: 48px 0; /* Top/bottom: 48px, Left/right: 0 */
}

/* Pages (not home) - gradient from top to bottom */
html:has(.page-content) {
    background: linear-gradient(to bottom, rgba(115, 91, 242, 0.08) 0%, rgba(115, 91, 242, 0) 100%), #FEFBFB;
    background-attachment: fixed;
    background-size: 100% 100%;
    background-position: top center;
    background-repeat: no-repeat;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-m);
}

/* Header */
.header {
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 48px 0 0 0;
}

.header .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    background-color: transparent;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    padding: 20px;
    padding-left: 24px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

html[dir="rtl"] .header-content {
    padding-left: 20px;
    padding-right: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-s);
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.logo img {
    width: 100px;
    height: 32px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--cnt-neutral-secondary);
    text-decoration: none;
    font-size: 15px;
    line-height: 18px;
    letter-spacing: -0.007em;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0;
    overflow: visible;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 36px;
    height: 4px;
    background-color: var(--brand-main);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateX(-50%);
}

.nav-link.active::after {
    opacity: 1;
}

html[lang="en"] .nav-link {
    font-family: var(--font-english);
    font-weight: 500; /* Medium */
}

html[lang="fa"] .nav-link {
    font-family: var(--font-persian);
    font-weight: 400; /* Regular */
    letter-spacing: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cnt-neutral-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-m);
    flex-shrink: 0;
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    position: relative;
}

.btn-lang {
    background-color: transparent;
    color: var(--cnt-neutral-main);
    border: 1.5px solid var(--border-default-main);
    padding: 0;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[lang="en"] .btn-lang {
    font-family: var(--font-english);
}

html[lang="en"] .btn-lang span[data-lang="en"] {
    font-family: var(--font-persian);
}

html[lang="fa"] .btn-lang {
    font-family: var(--font-persian);
}

.btn-lang:hover {
    background-color: var(--primary-500);
    color: var(--white);
}

.btn-donation {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    border: none;
    padding: var(--spacing-s) var(--spacing-l);
    border-radius: var(--radius-m);
    font-family: var(--font-persian);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    text-decoration: none;
}

.btn-donation:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-donation.active {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}


/* Content Section */
.content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 96px;
    box-sizing: border-box;
}

/* Actions Section */
.actions-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
}

/* Decorative Shapes */
.decorative-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    opacity: 0.4;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.shape-left {
    bottom: -150px;
    left: -150px;
}

.shape-right {
    bottom: -150px;
    right: -150px;
}

/* Home Title */
.home-title {
    font-size: 100px;
    line-height: 120%;
    letter-spacing: -0.03em;
    color: var(--cnt-neutral-main);
    text-align: center;
    margin: 0;
    z-index: 1;
    position: relative;
    max-width: 100%;
    font-weight: 700; /* Bold for Persian */
}

html[lang="en"] .home-title {
    font-family: var(--font-english);
    font-weight: 600; /* Semi-bold for English */
}

html[lang="fa"] .home-title {
    font-family: var(--font-persian);
    font-weight: 700; /* Bold for Persian */
}

/* Download Section */
.download-section {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: relative;
    margin: 0 0 12px 0;
    flex-wrap: wrap;
}

/* Home page download buttons - no background */
.home-main .download-btn,
.download-section .download-btn {
    display: inline-block;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    box-shadow: none !important;
    color: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    min-width: auto !important;
}

.home-main .download-btn:hover,
.download-section .download-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: none !important;
}

.store-image {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

.direct-download {
    color: var(--cnt-neutral-tertiary);
    text-decoration: none;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.7px;
    padding: 14px 24px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
    transition: color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
}

.direct-download:hover {
    color: var(--primary-500);
}

/* Screenshots Section */
.screenshots-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Screenshots Container */
.screenshots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 960px;
    z-index: 1;
    position: relative;
}

.screenshots-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.phone-screenshot {
    flex: 0 0 auto;
}

.phone-frame {
    width: 280px;
    height: 600px;
    background: var(--white);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    transition: transform 0.3s ease;
}

.phone-frame:hover {
    transform: translateY(-10px);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: var(--black);
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.phone-content {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Placeholder gradients for screenshots */
.screenshot-1 {
    background: linear-gradient(135deg, var(--primary-200), var(--primary-300));
}

.screenshot-2 {
    background: linear-gradient(135deg, var(--primary-300), var(--primary-400));
}

.screenshot-3 {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
}

/* Hero Section - Keep for other pages */
.hero {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    align-items: center;
    text-align: center;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-m);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-l);
    opacity: 0.95;
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.hero-banner {
    width: 100%;
    max-width: 1200px;
    margin-top: var(--spacing-xl);
}

.banner-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: var(--radius-l);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-m) var(--spacing-xl);
    border-radius: var(--radius-m);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-persian);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-500);
}

.btn-primary:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-500);
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
    background-color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--gray-900);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background-color: var(--gray-100);
    padding: var(--spacing-xl);
    border-radius: var(--radius-l);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-m);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-m);
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-700);
    line-height: 1.7;
}

/* Mission Section */
.mission {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
}

.mission-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-l);
    color: var(--gray-900);
}

.mission-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-m);
    color: var(--gray-800);
    font-weight: 500;
}

/* Download Section */
.download {
    padding: var(--spacing-2xl) 0;
    background-color: var(--white);
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-l);
    flex-wrap: wrap;
}

/* Download Section - Other pages */
.download /* This is for other pages, not home page */
.download .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-l) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-l);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 200px;
}

.download .download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact {
    padding: var(--spacing-2xl) 0;
    background-color: var(--gray-100);
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: var(--spacing-m);
    color: var(--gray-700);
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-2xl) 0 var(--spacing-l);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-l);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
}

.footer-bottom p {
    margin-bottom: var(--spacing-s);
}

/* Modal Styles */

/* Page Styles */
.page-content {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    padding-left: 0; /* Remove left padding */
    padding-right: 0; /* Remove right padding */
}

.page-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 24px;
    backdrop-filter: blur(20px);
}

.page-title {
    font-size: 24px;
    line-height: 140%;
    letter-spacing: -0.02em; /* -2% of font-size */
    font-weight: 700;
    color: var(--cnt-neutral-main);
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    margin-bottom: 0;
}

.page-title-icon {
    display: block;
    margin-bottom: 0;
}

.page-title-text {
    display: block;
    margin-top: 0;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--cnt-neutral-tertiary);
    line-height: 1.7;
}

.badge-group {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cnt-neutral-main);
    background-color: var(--primary-50);
}

.badge.secondary {
    background-color: rgba(115, 91, 242, 0.12);
    color: var(--primary-700);
}

/* Donation page specific badge styles */
.donation-wallet-section .badge-group {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    vertical-align: middle;
}

.donation-wallet-section .badge-group .tether-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-block;
}

.donation-wallet-section .badge-group .tether-icon path {
    fill: #27A17C !important;
}

.donation-wallet-section .badge-group .tether-icon {
    color: #27A17C;
}

.donation-wallet-section .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.02em; /* -2% */
    font-weight: 600; /* Semi-bold */
    color: var(--cnt-neutral-main);
    background-color: transparent;
    vertical-align: middle;
}

.donation-wallet-section .badge.secondary {
    background-color: rgba(30, 41, 59, 0.08); /* gray-900 with 8% opacity */
    border-radius: 6px;
    padding: 4px 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    line-height: 1;
    letter-spacing: -0.02em; /* -2% */
    font-weight: 400; /* Regular */
    color: var(--cnt-neutral-tertiary);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.qr-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.qr-wrapper img {
    width: 220px;
    height: 220px;
    border-radius: 24px;
    background-color: var(--white);
    padding: 16px;
    box-shadow: none;
}

.address-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', monospace;
    font-size: 0.95rem;
    color: var(--cnt-neutral-fourth);
    text-align: center;
    word-break: break-all;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.address-row:hover {
    color: var(--cnt-neutral-secondary);
}

.address-text {
    color: inherit;
}

.address-copy-btn {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cnt-neutral-fourth);
    transition: color 0.2s ease;
    flex-shrink: 0;
    line-height: 0;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
}

.address-row:hover .address-copy-btn {
    color: var(--cnt-neutral-secondary);
}

.copy-icon {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    background: none !important;
    background-color: transparent !important;
    color: var(--cnt-neutral-fourth);
    opacity: 1;
    fill: currentColor;
}

.copy-icon path {
    fill: currentColor !important;
    stroke: none !important;
}

.address-copy-btn .copy-icon {
    color: var(--cnt-neutral-fourth);
}

.address-row:hover .address-copy-btn .copy-icon {
    color: var(--cnt-neutral-secondary);
}

.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 12px;
    background-color: var(--gray-900);
    color: var(--white);
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(-4px);
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--gray-900);
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.action-icons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.action-button {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background-color: rgba(248, 249, 252, 0.9);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cnt-neutral-main);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.action-button:hover {
    transform: translateY(-2px);
    border-color: var(--primary-200);
}

.alert-card {
    border-radius: 20px;
    background-color: #FFF6E5;
    padding: 20px;
    border: 1px solid rgba(255, 175, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alert-card-title {
    display: flex;
    align-items: center;
    gap: 4px;
}

.alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #EB9606;
}

.alert-icon path {
    fill: currentColor !important;
}

.alert-card-title strong {
    font-size: 15px;
    line-height: 140%;
    letter-spacing: -0.02em; /* -2% */
    font-weight: 600; /* Semi-bold */
    color: var(--cnt-neutral-main);
    margin: 0;
}

.alert-card-description {
    font-size: 14px;
    line-height: 160%;
    letter-spacing: -0.007em; /* -0.7% */
    font-weight: 400; /* Regular */
    color: var(--cnt-neutral-secondary);
    margin: 0 !important;
    margin-bottom: 0 !important;
}

.alert-card-description strong {
    font-weight: 600; /* Bold for USDT, TRON, TRC20 */
    color: var(--cnt-neutral-secondary);
}

/* Donation Wallet Section */
.donation-wallet-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin: 0 auto;
}

.content-section-context .donation-wallet-section {
    align-items: center;
    text-align: center;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resource-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 249, 252, 0.65);
    align-items: flex-start;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.resource-item:hover {
    border-color: var(--primary-200);
    transform: translateY(-2px);
}

.resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.resource-meta {
    flex: 1;
}

.resource-meta h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--cnt-neutral-main);
    display: flex;
    gap: 8px;
    align-items: center;
}

.resource-meta p {
    margin: 0;
    color: var(--cnt-neutral-tertiary);
    line-height: 1.7;
}

.quote-card {
    border-left: 4px solid var(--primary-400);
    padding-left: 16px;
    font-size: 1rem;
    color: var(--cnt-neutral-main);
    line-height: 1.7;
    background: rgba(115, 91, 242, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
}

.policy-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.policy-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cnt-neutral-main);
    display: flex;
    gap: 8px;
    align-items: center;
}

.policy-list {
    list-style: disc inside;
    color: var(--cnt-neutral-tertiary);
    padding-left: 20px;
}

.policy-list li {
    margin-bottom: 6px;
}

.page-content h1 {
    font-size: 24px;
    margin-bottom: var(--spacing-l);
    color: var(--gray-900);
}

.page-content h1.page-title {
    font-size: 24px;
    line-height: 140%;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.page-content h2:not(.content-section-title) {
    font-size: 2rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-m);
    color: var(--gray-900);
}

.page-content h3 {
    font-size: 1.5rem;
    margin-top: var(--spacing-l);
    margin-bottom: var(--spacing-m);
    color: var(--gray-800);
}

.page-content p {
    margin-bottom: var(--spacing-m);
    line-height: 1.8;
    color: var(--gray-700);
}

.page-content p.page-update-date {
    margin-bottom: 0 !important; /* Remove margin-bottom for update date */
    color: var(--cnt-neutral-fourth);
}

.page-content ul,
.page-content ol {
    margin-bottom: var(--spacing-m);
    color: var(--gray-700);
}

.page-content li {
    margin-bottom: var(--spacing-s);
    line-height: 1.8;
}

.page-content a {
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 600;
}

.page-content a:hover {
    text-decoration: underline;
}

/* Terms Page Specific Styles */
/* Page Headline Container */
.page-headline {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0; /* Gap handled by content-sections-container margin-top */
}

.page-update-date {
    font-size: 14px;
    line-height: 140%;
    letter-spacing: -0.007em; /* -0.7% of font-size */
    font-weight: 400; /* Regular */
    color: var(--cnt-neutral-fourth);
    margin-top: 6px;
    margin-bottom: 0; /* No margin bottom */
}

.terms-section {
    margin-bottom: var(--spacing-2xl);
}

.terms-section.terms-contact {
    margin-bottom: 0 !important; /* Remove margin-bottom for contact section */
}

.terms-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cnt-neutral-main);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-m);
}

.terms-section:first-of-type h2 {
    margin-top: 0;
}

.terms-section p {
    line-height: 1.8;
    color: var(--cnt-neutral-main);
    margin-bottom: var(--spacing-m);
}

.terms-note {
    background-color: rgba(115, 91, 242, 0.08);
    border-left: 4px solid var(--primary-500);
    padding: var(--spacing-m) var(--spacing-l);
    border-radius: 12px;
    margin-top: var(--spacing-l);
    margin-bottom: var(--spacing-m);
}

html[dir="rtl"] .terms-note {
    border-left: none;
    border-right: 4px solid var(--primary-500);
    padding-right: var(--spacing-l);
    padding-left: var(--spacing-m);
}

html[dir="ltr"] .terms-note {
    border-left: 4px solid var(--primary-500);
    border-right: none;
    padding-left: var(--spacing-l);
    padding-right: var(--spacing-m);
}

.terms-note strong {
    color: var(--cnt-neutral-main);
    display: block;
    margin-bottom: var(--spacing-s);
}

.terms-note span {
    color: var(--cnt-neutral-main);
    line-height: 1.7;
}

/* Content Sections Container */
.content-sections-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px; /* 20px gap between sections */
    margin-top: 32px; /* 32px gap between headline and sections */
    margin-bottom: 32px; /* 32px gap between sections and Questions and comments */
}

/* About page specific: 16px gap between sections */
body.page-about .content-sections-container {
    gap: 12px;
}

/* Content Section Component */
content-section {
    display: block;
    width: 100%;
    margin: 0; /* Remove all margins, gap handled by container */
}

.content-section {
    width: 100%;
    margin-bottom: 0; /* Remove 48px margin */
    padding-left: 0; /* Remove left padding */
    padding-right: 0; /* Remove right padding */
    display: flex;
    flex-direction: column;
}

.content-section-title {
    width: 100%;
    font-size: 18px !important; /* Override .page-content h2 */
    line-height: 140%;
    letter-spacing: -0.02em; /* -2% */
    font-weight: 600; /* Semi-bold */
    color: var(--cnt-neutral-main);
    margin-bottom: 0;
    margin-top: 0;
    text-align: left; /* Default LTR */
}

/* Fixed width for section numbers */
.content-section-title .section-number {
    display: inline-block;
    width: 22px;
    text-align: left;
}

html[lang="fa"] .content-section-title .section-number {
    text-align: right;
}

/* Style for "coming soon" text in parentheses */
.content-section-title .coming-soon {
    color: var(--cnt-neutral-fourth);
    font-weight: 400; /* Regular */
}

html[lang="fa"] .content-section-title {
    font-weight: 500; /* Medium for Persian */
    text-align: right;
}

html[lang="en"] .content-section-title {
    font-family: var(--font-english);
    font-weight: 600; /* Semi-bold for English */
    text-align: left;
}

.content-section-context {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px; /* Gap between title and context */
    margin-bottom: 0; /* No margin at bottom */
    padding-left: 0;
}

html[dir="rtl"] .content-section-context {
    padding-left: 0;
    padding-right: 0;
}

html[dir="ltr"] .content-section-context {
    padding-left: 0;
    padding-right: 0;
}

/* Add padding only when section has a title */
.content-section:has(.content-section-title) .content-section-context {
    padding-left: 22px;
}

html[dir="rtl"] .content-section:has(.content-section-title) .content-section-context {
    padding-left: 0;
    padding-right: 22px;
}

html[dir="ltr"] .content-section:has(.content-section-title) .content-section-context {
    padding-left: 22px;
    padding-right: 0;
}

.content-section-description {
    width: 100%;
    font-size: 15px;
    line-height: 160%;
    letter-spacing: -0.007em; /* -0.7% */
    font-weight: 400; /* Regular */
    color: var(--cnt-neutral-secondary);
    margin: 0 !important; /* Override .page-content p margin-bottom */
    text-align: left; /* Default LTR */
}

.content-section-description > div[data-lang] {
    width: 100%;
}

.content-section-description ul,
.content-section-description ol {
    margin: 0;
    padding: 0;
    list-style-position: outside;
}

html[lang="en"] .content-section-description ul,
html[lang="en"] .content-section-description ol {
    padding-left: var(--spacing-l);
    padding-right: 0;
}

html[lang="fa"] .content-section-description ul,
html[lang="fa"] .content-section-description ol {
    padding-right: var(--spacing-l);
    padding-left: 0;
}

.content-section-description li {
    margin-bottom: var(--spacing-s);
    line-height: 160%;
}

/* Style for heritage text */
.content-section-description .heritage-text {
    color: var(--cnt-neutral-tertiary);
}

/* Style for muted sections (developer credit) */
content-section[data-muted="true"] .content-section-description {
    color: var(--cnt-neutral-tertiary);
    opacity: 0.8;
}

content-section[data-muted="true"] .content-section-description strong,
content-section[data-muted="true"] .content-section-description b {
    font-weight: 400;
}

html[lang="fa"] .content-section-description {
    text-align: right;
}

html[lang="en"] .content-section-description {
    font-family: var(--font-english);
    text-align: left;
}

.content-section-note {
    width: 100%;
    border: none;
    border-left: 3px solid var(--brand-main); /* Only left border, brand color */
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch; /* Border height matches content */
}

html[dir="rtl"] .content-section-note {
    border-left: none;
    border-right: 3px solid var(--brand-main); /* Right border for RTL */
    padding: 0;
    padding-right: 12px; /* 12px gap between border and text */
    padding-left: 0;
}

html[dir="ltr"] .content-section-note {
    border-left: 3px solid var(--brand-main);
    border-right: none;
    border-top: none;
    border-bottom: none;
    padding: 0;
    padding-left: 12px; /* 12px gap between border and text */
    padding-right: 0;
}

.content-section-note p {
    font-size: 15px;
    line-height: 160%;
    letter-spacing: -0.007em; /* -0.7% */
    font-weight: 400; /* Regular */
    color: var(--cnt-neutral-secondary);
    margin: 0;
    padding: 0;
    text-align: left; /* Default LTR */
    flex: 1; /* Take available space */
}

.content-section-note .note-link {
    color: var(--brand-main);
    text-decoration: none;
    font-weight: 400; /* Regular */
    transition: opacity 0.2s ease;
}

.content-section-note .note-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

html[lang="fa"] .content-section-note p {
    text-align: right;
}

html[lang="en"] .content-section-note p {
    font-family: var(--font-english);
    text-align: left;
}

/* Contact and Social Wrapper */
.contact-social-wrapper {
    margin-top: 0; /* Gap handled by content-sections-container margin-bottom */
    margin-bottom: 0 !important;
    padding: 20px 24px; /* Top/bottom: 20px, Left/right: 24px */
    background-color: rgba(115, 91, 242, 0.08); /* brandMain with 8% opacity */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px; /* 16px gap between contact and social sections */
}

.terms-contact {
    margin-top: 0;
    margin-bottom: 0 !important;
    padding: 0; /* Remove padding, handled by wrapper */
    background-color: transparent; /* Remove background, handled by wrapper */
    border-radius: 0; /* Remove border-radius, handled by wrapper */
    border-top: none;
}

.terms-contact h2 {
    width: 100%;
    font-size: 18px !important; /* Same as content-section-title */
    line-height: 140%;
    letter-spacing: -0.02em; /* -2% */
    font-weight: 600; /* Semi-bold */
    color: var(--cnt-neutral-main);
    margin-bottom: 0 !important; /* Override .page-content h2 margin-bottom */
    margin-top: 0;
    text-align: left; /* Default LTR */
}

html[lang="fa"] .terms-contact h2 {
    font-weight: 500; /* Medium for Persian */
    text-align: right;
}

html[lang="en"] .terms-contact h2 {
    font-family: var(--font-english);
    font-weight: 600; /* Semi-bold for English */
    text-align: left;
}

.terms-contact p {
    width: 100%;
    font-size: 15px;
    line-height: 160%;
    letter-spacing: -0.007em; /* -0.7% */
    font-weight: 400; /* Regular */
    color: var(--cnt-neutral-tertiary); /* Different color from content-section-description */
    margin: 0 !important; /* Override .terms-section p margin-bottom */
    text-align: left; /* Default LTR */
}

html[lang="fa"] .terms-contact p {
    text-align: right;
}

html[lang="en"] .terms-contact p {
    font-family: var(--font-english);
    text-align: left;
}

.terms-contact p:first-of-type {
    margin-top: 8px; /* 8px gap between title and description */
}

.terms-contact a {
    color: var(--brand-main);
    font-weight: 400; /* Regular */
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.terms-contact a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Social Media Section */
.terms-social {
    margin-top: 0; /* Gap handled by wrapper */
    margin-bottom: 0 !important;
    padding: 0; /* Remove padding, handled by wrapper */
    background-color: transparent; /* Remove background, handled by wrapper */
    border-radius: 0; /* Remove border-radius, handled by wrapper */
    border-top: none;
}

.terms-social .social-title {
    width: 100%;
    font-size: 16px !important;
    line-height: 140%;
    letter-spacing: -0.02em; /* -2% */
    font-weight: 600; /* Semi-bold */
    color: var(--cnt-neutral-main);
    margin-bottom: 0 !important;
    margin-top: 0 !important; /* Override .page-content h2 margin-top */
    text-align: left; /* Default LTR */
}

html[lang="fa"] .terms-social .social-title {
    font-weight: 500; /* Medium for Persian */
    text-align: right;
}

html[lang="en"] .terms-social .social-title {
    font-family: var(--font-english);
    font-weight: 600; /* Semi-bold for English */
    text-align: left;
}

.social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px; /* 8px gap between title and buttons */
    align-items: center;
}

html[lang="fa"] .social-buttons {
    flex-direction: row;
}

html[lang="en"] .social-buttons {
    flex-direction: row;
}

.social-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-default-main);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-button img {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

/* Set SVG fill color using filter */
.social-button img[src$=".svg"] {
    filter: brightness(0) saturate(100%) invert(27%) sepia(8%) saturate(1000%) hue-rotate(180deg) brightness(95%) contrast(85%);
}

.social-button:hover img[src$=".svg"] {
    filter: brightness(0) saturate(100%) invert(8%) sepia(4%) saturate(1000%) hue-rotate(180deg) brightness(95%) contrast(95%);
}

.page-title-icon {
    flex-shrink: 0;
    display: block;
}

/* Language Toggle Styles */
[data-lang="en"] {
    font-family: var(--font-english);
}

html[lang="en"] {
    direction: ltr;
    text-align: left;
}

html[lang="en"] .page-content {
    font-family: var(--font-english);
    text-align: left;
    direction: ltr;
}

html[lang="fa"] .page-content {
    text-align: right;
    direction: rtl;
}

html[lang="en"] .page-content ul,
html[lang="en"] .page-content ol {
    padding-left: var(--spacing-l);
    padding-right: 0;
}

html[lang="fa"] .page-content ul,
html[lang="fa"] .page-content ol {
    padding-right: var(--spacing-l);
    padding-left: 0;
}

html[lang="en"] .header-content {
    flex-direction: row-reverse;
    justify-content: space-between;
}

html[lang="en"] .logo {
    order: 0;
    flex-shrink: 0;
}

html[lang="en"] .header-nav {
    order: 1;
    flex: 1;
    justify-content: center;
    display: flex;
}

/* Reverse order for English navigation links */
html[lang="en"] .nav-donation {
    order: 5;
}

html[lang="en"] .nav-resources {
    order: 4;
}

html[lang="en"] .nav-about {
    order: 3;
}

html[lang="en"] .nav-policy {
    order: 2;
}

html[lang="en"] .nav-terms {
    order: 1;
}

html[lang="en"] .header-actions {
    order: 2;
    justify-content: flex-end;
}

html[lang="en"] .header-actions .btn-lang {
    margin-left: auto;
    margin-right: 0;
}

html[lang="fa"] {
    direction: rtl;
    text-align: right;
}

html[lang="fa"] .header-content {
    flex-direction: row;
    justify-content: space-between;
}

html[lang="fa"] .logo {
    order: 0;
    flex-shrink: 0;
}

html[lang="fa"] .header-nav {
    order: 1;
    flex: 1;
    justify-content: center;
    display: flex;
}

html[lang="fa"] .header-actions {
    order: 2;
    margin-inline-end: auto;
    margin-inline-start: 0;
}

html[lang="en"] .footer-links {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .home-title {
        font-size: 3.5rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 515px;
    }
}

@media (max-width: 1024px) {
    .header-nav {
        gap: var(--spacing-m);
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .home-title {
        font-size: 3rem;
    }
    
    .phone-frame {
        width: 220px;
        height: 470px;
    }
    
    .screenshots-container {
        gap: var(--spacing-l);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 24px 0 0 0;
    }
    
    .header .container {
        padding: 0 24px;
    }
    
    .header-content {
        padding: 16px;
        gap: var(--spacing-m);
    }
    
    .logo img {
        width: 70px;
        height: 24px;
    }
    
    .header-nav {
        display: none; /* Can add hamburger menu later */
    }
    
    .btn-lang {
        min-width: 70px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .home-title {
        font-size: 2.5rem;
        margin: var(--spacing-l) 0 var(--spacing-m) 0;
    }
    
    .download-section {
        flex-direction: column;
        gap: var(--spacing-m);
        width: 100%;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .screenshots-container {
        gap: var(--spacing-m);
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: var(--spacing-l);
    }
    
    .phone-frame {
        width: 180px;
        height: 380px;
    }
    
    .decorative-shape {
        width: 250px;
        height: 250px;
    }
    
    .shape-left {
        bottom: -100px;
        left: -100px;
    }
    
    .shape-right {
        bottom: -100px;
        right: -100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 60vh;
        padding: var(--spacing-xl) 0;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-m);
        align-items: center;
    }

    .header-actions {
        gap: var(--spacing-s);
    }

    .btn-donation,
    .btn-lang {
        padding: var(--spacing-s) var(--spacing-m);
        font-size: 0.85rem;
    }

}

@media (max-width: 480px) {
    .home-title {
        font-size: 2rem;
    }
    
    .phone-frame {
        width: 150px;
        height: 320px;
        padding: 8px;
    }
    
    .phone-frame::before {
        width: 80px;
        height: 20px;
        top: 15px;
    }
    
    .screenshots-container {
        gap: var(--spacing-s);
    }
    
    .download-btn {
        padding: var(--spacing-s) var(--spacing-l);
        min-width: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .banner-placeholder {
        font-size: 1rem;
    }
}

/* Prevent body scroll on home page */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Donation Page Styles */
.donation-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-l);
    background-color: var(--gray-100);
    border-radius: var(--radius-l);
}

.donation-section h3 {
    margin-bottom: var(--spacing-m);
    color: var(--gray-900);
}

@media (max-width: 768px) {
    
    .page-card {
        padding: 28px;
        border-radius: 26px;
    }
    
    .page-title {
        font-size: 24px;
    }
}

