:root {
    --primary: #2A4B8C;
    --primary-dark: #1E3A6C;
    --secondary: #00A896;
    --accent: #FF6B6B;
    --dark: #0F1421;
    --dark-light: #1A2238;
    --text: #E2E8F0;
    --text-light: #94A3B8;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background: rgba(15, 20, 33, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
}

.logo-img {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

[dir="rtl"] nav a::after {
    right: 0;
}

[dir="ltr"] nav a::after {
    left: 0;
}

nav a:hover {
    color: var(--secondary);
}

nav a:hover::after {
    width: 100%;
}

.nav-btns {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-switcher {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 75, 140, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
background: radial-gradient(circle at 20% 50%, rgb(42 75 140 / 15%) 0%, #00000000 50%), radial-gradient(circle at 80% 20%, rgb(0 168 150 / 13%) 0%, transparent 50%);    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1660051046408-5b8f06849109?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1968') no-repeat center center/cover;
    opacity: 0.05;
    z-index: -1;
}

[dir="rtl"] .hero::before {
    right: 0;
}

[dir="ltr"] .hero::before {
    left: 0;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(42, 75, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(42, 75, 140, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--dark-light);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.8rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-visual {
    position: relative;
    height: 450px;
    background: rgba(15, 20, 33, 0.5);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--box-shadow);
}

.visual-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

/* Crypto Prices */
.crypto-prices {
    padding: 100px 0;
    background: var(--dark);
}

.prices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 20px;
}

.prices-container {
    background: var(--dark-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--box-shadow);
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
}

.crypto-table th {
    background: rgba(15, 20, 33, 0.8);
    padding: 20px;
    font-weight: 700;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[dir="rtl"] .crypto-table th {
    text-align: right;
}

[dir="ltr"] .crypto-table th {
    text-align: left;
}

.crypto-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.crypto-table tr:last-child td {
    border-bottom: none;
}

.crypto-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.crypto-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    display: inline-block;
}

.crypto-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg,#f5f5f7,#e6e6e9);
    color: #111;
    font-weight: 700;
    margin-right: 8px;
    font-family: system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.crypto-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

[dir="rtl"] .crypto-icon {
    margin-left: 15px;
}

[dir="ltr"] .crypto-icon {
    margin-right: 15px;
}

.price-up {
    color: var(--success);
    font-weight: 600;
}

.price-down {
    color: var(--danger);
    font-weight: 600;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--dark-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--dark);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: rgba(42, 75, 140, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--dark);
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps::before {
    content: '';
    position: absolute;
    top: 60px;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

[dir="rtl"] .steps::before {
    right: 0;
}

[dir="ltr"] .steps::before {
    left: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0 15px;
}

.step-number {
    width: 120px;
    height: 120px;
    background: var(--dark-light);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    transition: var(--transition);
}

.step:hover .step-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: scale(1.1);
}

.step h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.step p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--dark);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
}

.footer-about p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}

[dir="ltr"] .footer-links a:hover {
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

[dir="ltr"] .modal {
    right: auto;
    left: 0;
}

.modal-content {
    background: var(--dark-light);
    margin: 50px auto;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalFade 0.3s;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent);
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
.form-container {
    max-width: 100%;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-title p {
    color: var(--text-light);
}

.wallet-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
}

.wallet-option {
    background: rgba(15, 20, 33, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.wallet-option:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.wallet-option.selected {
    border-color: var(--secondary);
    background: rgba(0, 168, 150, 0.1);
}

.wallet-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(15, 20, 33, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 75, 140, 0.2);
}

.file-upload {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(42, 75, 140, 0.05);
}

.file-upload i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.file-upload p {
    color: var(--text-light);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.checkbox-group input {
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
    line-height: 1.6;
}

.checkbox-group a {
    color: var(--secondary);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(42, 75, 140, 0.4);
}

/* Language Content */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation for prices */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}