*{
    box-sizing:border-box
}
html,body{
    margin:0;
    padding:0
}
body{
    font-family:Arial,sans-serif;
    background:#e9e4e4;
    color:#222;
    line-height:1.6
}
html[lang="ar"] body,
body.rtl{
    font-family:'Cairo',Arial,sans-serif
}
html[lang="ar"] .nav-link,
html[lang="ar"] .lang-btn,
html[lang="ar"] .nav-drop-menu a,
html[lang="ar"] .hero-copy h1,
html[lang="ar"] .hero-copy p,
html[lang="ar"] .page-heading h1,
html[lang="ar"] .page-heading p,
html[lang="ar"] .currency-link-card,
html[lang="ar"] .seo-block h2,
html[lang="ar"] .seo-block p,
html[lang="ar"] .currency-select-card label,
html[lang="ar"] .amount-box label,
html[lang="ar"] .result-box label,
html[lang="ar"] .btn,
body.rtl .nav-link,
body.rtl .lang-btn,
body.rtl .nav-drop-menu a,
body.rtl .hero-copy h1,
body.rtl .hero-copy p,
body.rtl .page-heading h1,
body.rtl .page-heading p,
body.rtl .currency-link-card,
body.rtl .seo-block h2,
body.rtl .seo-block p,
body.rtl .currency-select-card label,
body.rtl .amount-box label,
body.rtl .result-box label,
body.rtl .btn{
    font-family:'Cairo',Arial,sans-serif
}
.converter-actions .btn-primary{border:3px dashed rgb(46, 46, 76);}
a{
    text-decoration:none;
    color:inherit
}
img{
    max-width:100%;
    display:block
}
.container{
    width:min(1180px,calc(100% - 32px));
    margin:0 auto
}
.site-body.rtl{
    direction:rtl
}
.site-body.ltr{
    direction:ltr
}
.site-header{
    padding:20px 0 10px
}
.header-inner{
    background:#f8f6f6;
    border-radius:28px;
    padding:18px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    box-shadow:0 8px 30px rgba(0,0,0,.04)
}
.logo-box{
    width:110px;
    min-width:110px;
    border-radius:22px;
    overflow:hidden;
    background:#fff
}
.main-nav{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    flex:1
}
.nav-link{
    background:#eee7e7;
    padding:15px 20px;
    border-radius:16px;
    font-weight:700;
    transition:.2s ease
}
.nav-link:hover,
.nav-link.active{
    background:#0d2d7a;
    color:#fff
}
.nav-dropdown{
    position:relative;
    padding-bottom:14px
}
.nav-drop-toggle{
    border:0;
    cursor:pointer
}
.nav-drop-menu{
    position:absolute;
    top:100%;
    left:0;
    min-width:260px;
    background:#fff;
    border-radius:18px;
    padding:10px;
    box-shadow:0 20px 45px rgba(0,0,0,.08);
    display:none;
    z-index:50;
    margin-top:0
}
.rtl .nav-drop-menu{
    left:auto;
    right:0
}
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu{
    display:block
}
.nav-drop-menu a{
    display:block;
    padding:12px 14px;
    border-radius:12px;
    font-weight:600
}
.nav-drop-menu a:hover{
    background:#f2eeee
}
.lang-switch{
    display:flex;
    gap:10px
}
.lang-btn{
    background:#eee7e7;
    color:#7a4a36;
    padding:14px 18px;
    border-radius:16px;
    font-weight:700
}
.lang-btn.active{
    background:#0d2d7a;
    color:#fff
}
.main-content{
    padding:18px 0 32px
}
.hero-card,
.currencies-page{
    background:#f8f6f6;
    border-radius:34px;
    padding:48px 42px;
    box-shadow:0 8px 30px rgba(0,0,0,.04)
}
.hero-copy{
    text-align:center;
    margin-bottom:26px
}
.hero-copy h1,
.page-heading h1{
    margin:0 0 10px;
    font-size:clamp(34px,5vw,58px);
    line-height:1.1;
    font-weight:900
}
.hero-copy p,
.page-heading p{
    margin:0;
    color:#5d6270;
    font-size:22px
}
.converter-card{
    background:#eef1f9;
    border-radius:30px;
    padding:22px;
    border:2px dashed #3a6ef6
}
.converter-form{
    display:flex;
    flex-direction:column;
    gap:20px
}
.converter-top{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    gap:20px;
    align-items:end
}
.currency-select-card{
    background:#fff;
    border:1px solid #d8d8d8;
    border-radius:22px;
    padding:18px
}
.currency-select-card label,
.amount-box label,
.result-box label{
    display:block;
    font-size:14px;
    color:#666;
    margin-bottom:8px;
    font-weight:700
}
.select-large,
.amount-input{
    height:62px;
    font-size:20px;
    border-radius:18px
}
.swap-btn{
    width:58px;
    height:58px;
    border-radius:50%;
    border:0;
    background:#edf6ef;
    color:#177a3e;
    font-size:28px;
    cursor:pointer;
    align-self:center;
    margin-top:20px;
    box-shadow:0 8px 20px rgba(0,0,0,.04)
}
.converter-bottom{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px
}
.amount-box,
.result-box{
    background:#fff;
    border-radius:22px;
    padding:18px;
    border:1px solid #d8d8d8
}
.result-value{
    min-height:62px;
    display:flex;
    align-items:center;
    font-size:42px;
    font-weight:800;
    color:#222
}
.converter-actions{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap
}
.seo-block{
    margin-top:20px;
    text-align:center
}
.seo-block h2{
    margin:0 0 8px;
    font-size:28px
}
.seo-block p{
    margin:0;
    color:#444;
    font-size:18px
}
.page-heading{
    text-align:center;
    margin-bottom:28px
}
.currency-groups{
    display:flex;
    flex-direction:column;
    gap:26px
}
.currency-group{
    padding-bottom:24px;
    border-bottom:1px solid #ddd4d4
}
.currency-group:last-child{
    border-bottom:0;
    padding-bottom:0
}
.currency-group-head h2{
    margin:0 0 14px;
    font-size:28px
}
.currency-links-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:14px
}
.currency-link-card{
    background:#fff;
    border-radius:18px;
    padding:18px;
    font-weight:700;
    border:1px solid #e2dddd;
    transition:.2s ease
}
.currency-link-card:hover{
    transform:translateY(-2px);
    background:#0d2d7a;
    color:#fff
}
.site-footer{
    padding:0 0 40px
}
.footer-grid{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:24px;
    background:#f8f6f6;
    border-radius:28px;
    padding:28px
}
.footer-col h3{
    margin-top:0
}
.footer-sitemap{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:10px
}
.footer-sitemap a{
    background:#fff;
    border-radius:14px;
    padding:10px 12px;
    border:1px solid #e6dfdf;
    font-size:14px
}
.form-control{
    width:100%;
    border:1px solid #d5d5d5;
    background:#fff;
    padding:0 16px;
    outline:none
}
.btn{
    border:0;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:14px 22px;
    border-radius:16px;
    font-weight:800;
    transition:.2s ease;
    font-size: 23px;
}
.btn-primary{
background: #1f9492;
background: linear-gradient(90deg, rgba(31, 148, 146, 1) 0%, rgba(97, 139, 207, 1) 100%);
    color:#fff
}
.btn-light{
    background:#eee7e7;
    color:#6c3f31
}
.btn-danger{
    background:#b63131;
    color:#fff
}
.btn-sm{
    padding:8px 12px;
    border-radius:12px;
    font-size:13px
}
.btn-full{
    width:100%
}
.panel-body{
    background:#efeaea;
    min-height:100vh
}
.panel-login-wrap{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px
}
.panel-login-card{
    width:min(430px,100%);
    background:#fff;
    border-radius:26px;
    padding:28px;
    box-shadow:0 10px 35px rgba(0,0,0,.06)
}
.panel-login-card h1{
    margin-top:0
}
.alert{
    padding:14px 16px;
    border-radius:14px;
    margin:12px 0;
    font-weight:700
}
.alert-success{
    background:#e6f7eb;
    color:#156738
}
.alert-error{
    background:#fde8e8;
    color:#a32828
}
.panel-layout{
    display:grid;
    grid-template-columns:260px 1fr;
    min-height:100vh
}
.panel-sidebar{
    background:#0d2d7a;
    color:#fff;
    padding:22px;
    display:flex;
    flex-direction:column;
    gap:12px
}
.panel-brand{
    font-size:26px;
    font-weight:900;
    margin-bottom:10px
}
.panel-nav-link{
    padding:14px 16px;
    border-radius:14px;
    background:rgba(255,255,255,.08);
    font-weight:700
}
.panel-nav-link.active,
.panel-nav-link:hover{
    background:#fff;
    color:#0d2d7a
}
.panel-main{
    padding:26px
}
.panel-section{
    background:#fff;
    border-radius:24px;
    padding:22px;
    margin-bottom:20px;
    box-shadow:0 8px 28px rgba(0,0,0,.04)
}
.panel-header-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px
}
.panel-header-row h1,
.panel-header-row h2{
    margin:0
}
.panel-form-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px
}
.panel-form-grid label{
    display:block;
    margin-bottom:8px;
    font-weight:700
}
.panel-form-grid .form-control{
    height:54px;
    border-radius:14px
}
.panel-form-actions{
    display:flex;
    gap:12px;
    align-items:end
}
.table-wrap{
    overflow:auto
}
.panel-table{
    width:100%;
    border-collapse:collapse;
    min-width:900px
}
.panel-table th,
.panel-table td{
    padding:14px 12px;
    border-bottom:1px solid #ece7e7;
    text-align:left
}
.rtl .panel-table th,
.rtl .panel-table td{
    text-align:right
}
.status-badge{
    display:inline-block;
    padding:6px 10px;
    border-radius:99px;
    background:#e8f4ec;
    color:#126737;
    font-weight:800
}
.table-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap
}
.stats-card{
    background:#f4f6fc;
    border-radius:22px;
    padding:24px;
    margin-bottom:18px
}
.stats-number{
    font-size:48px;
    font-weight:900;
    color:#0d2d7a;
    line-height:1
}
.stats-label{
    margin-top:8px;
    color:#5b6470;
    font-weight:700
}
@media (max-width: 980px){
    .header-inner{
        flex-wrap:wrap
    }
    .main-nav{
        order:3;
        width:100%
    }
    .converter-top{
        grid-template-columns:1fr
    }
    .swap-btn{
        margin:0 auto
    }
    .converter-bottom{
        grid-template-columns:1fr
    }
    .footer-grid{
        grid-template-columns:1fr
    }
    .panel-layout{
        grid-template-columns:1fr
    }
    .panel-sidebar{
        flex-direction:row;
        flex-wrap:wrap
    }
    .panel-form-grid{
        grid-template-columns:1fr
    }
}
@media (max-width: 640px){
    .hero-card,
    .currencies-page{
        padding:24px 18px
    }
    .hero-copy p,
    .page-heading p{
        font-size:18px
    }
    .result-value{
        font-size:30px
    }
    .nav-link,
    .lang-btn{
        padding:12px 14px
    }
}
.currency-search-input{
    height:48px;
    border-radius:16px;
    margin-bottom:12px;
    font-size:16px
}
.searchable-select{
    height:120px;
    padding:10px 12px
}
.searchable-select option{
    padding:10px
}