:root {
    --primary: #1e3a8a;
    --secondary: #10b981;
    --dark: #0f172a;
    --light: #f8fafc;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--light); direction: rtl; margin: 0; color: var(--dark); }
.container { max-width: 1100px; margin: auto; padding: 20px; }

header { text-align: center; margin-bottom: 30px; padding: 30px; background: var(--primary); color: white; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
header h1 { margin: 10px 0; font-size: 24px; }
.logo i { font-size: 40px; color: var(--secondary); }

#toggleBtn { background: var(--secondary); color: white; border: none; padding: 12px 25px; cursor: pointer; border-radius: 50px; font-weight: bold; transition: 0.3s; }
#toggleBtn:hover { background: #059669; transform: scale(1.05); }

.converter-card { background: white; padding: 25px; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 25px; }
.inputs { display: flex; gap: 15px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.input-group { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 150px; }
.input-group label { font-size: 13px; font-weight: bold; color: #64748b; }
input, select { padding: 12px; border-radius: 10px; border: 1px solid #e2e8f0; font-size: 16px; width: 100%; }

.result { margin-top: 20px; font-size: 1.5em; color: var(--secondary); font-weight: bold; border-top: 1px solid #eee; padding-top: 15px; }

.search-box { position: relative; margin-bottom: 25px; }
.search-box i { position: absolute; right: 20px; top: 15px; color: #94a3b8; }
#searchInput { padding-right: 50px; border-radius: 50px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }

.currency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: white; padding: 20px; border-radius: 15px; text-align: center; transition: 0.3s; position: relative; border: 1px solid #f1f5f9; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.flag-img { width: 60px; height: 40px; object-fit: cover; border-radius: 6px; margin-bottom: 12px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.price { font-size: 1.8em; font-weight: 800; color: var(--dark); margin: 5px 0; }
.symbol { color: #64748b; font-size: 14px; font-weight: 500; }

footer { text-align: center; margin-top: 50px; padding: 20px; color: #94a3b8; }
/* بانگکرنا فۆنتێ کوردی */
* {
    font-family: 'Vazirmatn', sans-serif;
    box-sizing: border-box;
}

body { 
    background: #f8fafc; 
    direction: rtl; 
    margin: 0; 
    padding: 20px;
}

/* ستایلێ ئایکۆنێ ئینستاگرامێ ل دەستپێکێ */
.top-nav {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.insta-link {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.insta-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

header { 
    text-align: center; 
    padding: 40px; 
    background: #1e3a8a; 
    color: white; 
    border-radius: 20px; 
    margin-bottom: 30px;
}

.currency-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: 20px; 
}

.card { 
    background: white; 
    padding: 20px; 
    border-radius: 15px; 
    text-align: center; 
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.flag-img { width: 60px; border-radius: 5px; margin-bottom: 10px; }
.price { font-size: 1.8em; font-weight: bold; color: #1e293b; }
* {
    font-family: 'Vazirmatn', sans-serif;
    box-sizing: border-box;
}

body { 
    background: #f1f5f9; 
    direction: rtl; 
    margin: 0; 
    padding: 20px;
}

.container { max-width: 1100px; margin: auto; }

header { 
    text-align: center; 
    padding: 40px; 
    background: #1e3a8a; 
    color: white; 
    border-radius: 20px; 
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.2);
}

.currency-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px; 
}

.card { 
    background: white; 
    padding: 20px; 
    border-radius: 15px; 
    text-align: center; 
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.flag-img { width: 55px; border-radius: 4px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.price { font-size: 1.6em; font-weight: bold; color: #0f172a; }

/* ستایلێ فووتەرێ ل بنی */
footer {
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.footer-content p {
    margin: 0;
    font-size: 16px;
    color: #475569;
}

.insta-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    text-decoration: none;
    color: white;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.insta-footer:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(188, 24, 136, 0.3);
}