body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1e88e5;
    text-decoration: none;
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    position: relative;
    cursor: pointer;
    padding: 8px 15px;
    background-color: #f1f5f9;
    border-radius: 4px;
    font-weight: 500;
    margin-left: auto;
    user-select: none;
}

.support-button {
    background-color: #1e88e5;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.support-button:hover {
    background-color: #1565c0;
}

main {
    padding: 30px 0;
}

section {
    margin-bottom: 40px;
}

.hero {
    text-align: center;
    background: linear-gradient(135deg, #2979ff 0%, #1e88e5 100%);
    padding: 60px 0;
    color: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero h2 {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-weight: 500;
}

.announcement {
    background-color: #fff3cd;
    color: #664d03;
    padding: 15px 20px;
    border-radius: 6px;
    text-align: left;
    margin: 20px auto;
    max-width: 90%;
    line-height: 1.7;
    border-left: 4px solid #ffda6a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.energy-exchange .exchange-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.exchange-box h3 {
    color: #1e88e5;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.exchange-box ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.exchange-box li {
    margin-bottom: 10px;
}

.exchange-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 25px;
    gap: 20px;
}

.form-step {
    flex: 1;
    min-width: 280px;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 8px;
    background-color: #f9f9f9;
    position: relative;
}

.form-step h4 {
    color: #1565c0;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
}

.form-step h4::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    background-color: #1e88e5;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    margin-right: 10px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-group input {
    width: 80px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1.1rem;
    text-align: center;
}

.input-group input:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30,136,229,0.2);
}

.input-group span {
    margin-left: 10px;
    color: #555;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e53935;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discount {
    background-color: #ff9800;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
    vertical-align: middle;
    font-weight: 400;
}

.wallet-address {
    background-color: #e8f0fe;
    padding: 12px;
    border-radius: 6px;
    font-family: monospace;
    border: 1px solid #c5d9f8;
    font-size: 1.1rem;
    word-break: break-all;
    position: relative;
}

.currency-exchange, .platform-intro, .faq {
    background-color: #fff;
    margin-top: 40px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.currency-exchange h2, .platform-intro h2, .faq h2 {
    color: #1e88e5;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.currency-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 30px 0;
    background-color: #f5f9ff;
    padding: 20px;
    border-radius: 8px;
    flex-wrap: wrap;
    position: relative;
}

.currency-input {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    overflow: hidden;
    width: 220px;
}

.currency-input input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 1.1rem;
}

.currency-input span {
    padding: 12px 15px;
    background-color: #e8f0fe;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    border-left: 1px solid #ddd;
}

.currency-form i {
    font-size: 1.5rem;
    color: #1e88e5;
}

/* Add styles for the rate display */
.currency-rate {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    background-color: #e8f0fe;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: normal;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    margin: 30px 0;
}

.feature {
    flex: 1;
    min-width: 280px;
    margin: 15px;
    padding: 25px;
    background-color: #f5f9ff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.feature h3 {
    font-size: 1.4rem;
    color: #1e88e5;
    margin-bottom: 15px;
}

.platform-intro p {
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
    line-height: 1.8;
}

.platform-intro ul {
    max-width: 600px;
    margin: 30px auto;
    padding-left: 0;
    list-style-type: none;
}

.platform-intro li {
    padding: 12px 0 12px 35px;
    position: relative;
    margin-bottom: 15px;
}

.platform-intro li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    cursor: pointer;
}

.faq-item h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    position: relative;
    padding-right: 30px;
}

.faq-item h4::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    color: #1e88e5;
}

.faq-item p {
    margin-top: 15px;
    display: none;
    color: #666;
    line-height: 1.7;
    padding-left: 20px;
}

.faq-item.active h4::after {
    content: "-";
}

.faq-item.active p {
    display: block;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    background-color: #1565c0;
    color: #fff;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .exchange-form {
        flex-direction: column;
    }
    
    .form-step {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
}

/* Additional styles for new elements */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 130px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    margin-top: 5px;
    z-index: 1000;
    overflow: hidden;
    display: none;
}

.language-selector.open .language-dropdown {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.language-dropdown a:hover {
    background-color: #f5f5f5;
}

.language-dropdown a.active {
    background-color: #e3f2fd;
    color: #1565c0;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1639322537504-7c02736cf323?q=80&w=1000') center/cover;
    opacity: 0.08;
    border-radius: 8px;
    z-index: -1;
}

.announcement i {
    font-size: 1.5rem;
    color: #ff9800;
    margin-right: 15px;
    float: left;
}

.input-with-controls {
    display: flex;
    align-items: center;
}

.decrease-btn, .increase-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

.decrease-btn:hover, .increase-btn:hover {
    background-color: #e9ecef;
}

.decrease-btn {
    border-radius: 6px 0 0 6px;
}

.increase-btn {
    border-radius: 0 6px 6px 0;
}

.input-with-controls input {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    text-align: center;
}

.highlight {
    color: #1e88e5;
    font-weight: 700;
}

.info {
    font-size: 0.9rem;
    color: #666;
}

.payment-details {
    margin-bottom: 20px;
}

.payment-details .label {
    background-color: #e8f0fe;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1e88e5;
    margin-left: 10px;
}

.wallet-info {
    margin-top: 25px;
}

.wallet-address {
    position: relative;
    padding-right: 40px;
}

.copy-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background-color: transparent;
    color: #1e88e5;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: #0d47a1;
}

.copy-btn.copied {
    color: #4caf50;
}

.qr-code {
    margin-top: 20px;
    text-align: center;
}

.qr-code img {
    max-width: 150px;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
}

/* Style for qrcode.js generated code */
.qr-code > div {
    margin: 0 auto;
    padding: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
}

.qr-code p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.centered {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.exchange-notice {
    margin-top: 20px;
    background-color: #e8f0fe;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #1e88e5;
}

.transactions {
    margin-top: 30px;
}

.transactions h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    max-width: 800px;
}

.transaction-table th, 
.transaction-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.transaction-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.transaction-table tr:hover {
    background-color: #f5f9ff;
}

.feature-icon {
    font-size: 2.5rem;
    color: #1e88e5;
    margin-bottom: 15px;
}

.advantages {
    counter-reset: advantages;
}

.advantages li {
    position: relative;
    background-color: #f5f9ff;
    margin-bottom: 10px;
    padding: 15px 15px 15px 50px;
    border-radius: 6px;
    transition: transform 0.2s;
}

.advantages li:hover {
    transform: translateX(5px);
}

.advantages li::before {
    counter-increment: advantages;
    content: counter(advantages);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-color: #1e88e5;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    font-weight: bold;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 15px 0;
    max-height: 500px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-left: 10px;
    transition: background-color 0.2s;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.2);
    text-decoration: none;
}

.copyright {
    margin-top: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.float-support {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.float-btn {
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, background-color 0.2s;
}

.float-btn:hover {
    transform: translateY(-3px);
    background-color: #1976d2;
}

.float-btn i {
    margin-right: 8px;
}

/* Enhance responsive design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .social-links {
        margin-top: 20px;
    }
    
    .currency-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .features {
        flex-direction: column;
    }
    
    .feature {
        margin-bottom: 20px;
    }
    
    .float-btn span {
        display: none;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    
    .float-btn i {
        margin: 0;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .currency-input {
        width: 100%;
    }
}

/* RTL support - Arabic */
html[dir="rtl"] body {
    font-family: 'Tahoma', 'Arial', sans-serif;
}

html[dir="rtl"] .logo,
html[dir="rtl"] .hero,
html[dir="rtl"] .hero h1,
html[dir="rtl"] .hero h2,
html[dir="rtl"] .exchange-box h3,
html[dir="rtl"] .form-step h4,
html[dir="rtl"] .currency-exchange h2,
html[dir="rtl"] .platform-intro h2,
html[dir="rtl"] .faq h2 {
    text-align: right;
}

html[dir="rtl"] .hero {
    text-align: center;
}

html[dir="rtl"] .announcement {
    text-align: right;
    border-left: none;
    border-right: 4px solid #ffda6a;
    padding-right: 20px;
}

html[dir="rtl"] .exchange-box ul {
    padding-left: 0;
    padding-right: 20px;
}

html[dir="rtl"] .input-group span {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="rtl"] .form-step h4::before {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .price .discount {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="rtl"] .advantages li::before {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .faq-item h4::after {
    right: auto;
    left: 15px;
}

html[dir="rtl"] .copy-btn {
    right: auto;
    left: 5px;
}

html[dir="rtl"] .language-selector .current-lang {
    padding-right: 0;
    padding-left: 24px;
}

html[dir="rtl"] .language-selector i {
    right: auto;
    left: 8px;
}

html[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
    text-align: right;
}

/* Add additional language-related styles */
.current-lang {
    padding-right: 24px;
}

.language-selector i {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

.language-selector.open i {
    transform: translateY(-50%) rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 130px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    margin-top: 5px;
    z-index: 1000;
    overflow: hidden;
    display: none;
}

.language-selector.open .language-dropdown {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.language-dropdown a:hover {
    background-color: #f5f5f5;
}

.language-dropdown a.active {
    background-color: #e3f2fd;
    color: #1565c0;
}

.telegram-premium {
    background-color: #fff;
    margin-top: 40px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.telegram-premium-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.telegram-premium-box h2 {
    color: #229ED9;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.premium-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
}
.premium-list li {
    margin-bottom: 8px;
    font-weight: 500;
}

.premium-instructions {
    background: #e3f2fd;
    color: #1565c0;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.premium-requirements, .premium-safety {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 18px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.premium-requirements h3, .premium-safety h3 {
    color: #1e88e5;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.premium-requirements ul, .premium-safety ul {
    margin: 0;
    padding-left: 20px;
    font-size: 1rem;
}
.premium-requirements li, .premium-safety li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .telegram-premium-box {
        padding: 0 5px;
    }
    .premium-requirements, .premium-safety {
        padding: 12px 8px;
    }
} 