/* ===================================
GOOGLE FONT
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===================================
RESET
=================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{

font-family:'Poppins',sans-serif;

background:#070b17;

color:#ffffff;

overflow-x:hidden;

min-height:100vh;

position:relative;

}

/* ===================================
BACKGROUND
=================================== */

.background-blur{

position:fixed;

border-radius:50%;

filter:blur(130px);

opacity:.45;

z-index:-1;

}

.blur1{

width:380px;

height:380px;

background:#00d084;

top:-120px;

left:-120px;

}

.blur2{

width:350px;

height:350px;

background:#0ea5e9;

bottom:-120px;

right:-120px;

}

/* ===================================
WRAPPER
=================================== */

.converter-wrapper{

max-width:1300px;

margin:auto;

padding:50px 20px;

}

/* ===================================
MAIN CARD
=================================== */

.converter-card{

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.10);

backdrop-filter:blur(20px);

border-radius:30px;

padding:40px;

box-shadow:

0 20px 60px rgba(0,0,0,.35);

}

/* ===================================
HEADER
=================================== */

.header{

display:flex;

justify-content:space-between;

align-items:center;

flex-wrap:wrap;

gap:30px;

margin-bottom:45px;

}

.header h1{

display:flex;

align-items:center;

gap:15px;

font-size:2.3rem;

font-weight:700;

}

.header h1 i{

color:#00d084;

}

.header p{

margin-top:10px;

color:#cbd5e1;

line-height:1.7;

max-width:650px;

}

/* ===================================
HOME BUTTON
=================================== */

.home-btn{

display:flex;

align-items:center;

gap:10px;

text-decoration:none;

color:#fff;

padding:13px 24px;

border-radius:14px;

background:

linear-gradient(135deg,#00d084,#0ea5e9);

font-weight:600;

transition:.35s;

box-shadow:

0 10px 30px rgba(0,208,132,.35);

}

.home-btn:hover{

transform:translateY(-4px);

box-shadow:

0 18px 40px rgba(0,208,132,.45);

}

/* ===================================
CONVERTER GRID
=================================== */

.converter-grid{

display:grid;

grid-template-columns:

repeat(auto-fit,minmax(250px,1fr));

gap:25px;

margin-bottom:45px;

}

/* ===================================
INPUT CARD
=================================== */

.input-card{

display:flex;

flex-direction:column;

gap:10px;

}

.input-card label{

font-weight:600;

color:#dbe4f0;

}

.input-card input,

.input-card select{

height:58px;

padding:0 18px;

background:rgba(255,255,255,.06);

border:1px solid rgba(255,255,255,.12);

border-radius:14px;

color:#fff;

font-size:15px;

outline:none;

transition:.3s;

}

.input-card input:focus,

.input-card select:focus{

border-color:#00d084;

box-shadow:

0 0 18px rgba(0,208,132,.35);

}

/* ===================================
SELECT OPTION
=================================== */

.input-card select option{

background:#0f172a;

color:#ffffff;

}

/* ===================================
SWAP BUTTON
=================================== */

.swap-container{

display:flex;

justify-content:center;

align-items:end;

}

.swap-btn{

width:60px;

height:60px;

border:none;

border-radius:50%;

cursor:pointer;

font-size:20px;

color:#fff;

background:

linear-gradient(135deg,#00d084,#0ea5e9);

transition:.35s;

box-shadow:

0 15px 35px rgba(0,208,132,.30);

}

.swap-btn:hover{

transform:rotate(180deg) scale(1.08);

}

/* ===================================
CONVERT BUTTON
=================================== */

.convert-btn{

height:58px;

border:none;

border-radius:14px;

background:

linear-gradient(135deg,#00d084,#0ea5e9);

color:#fff;

font-size:16px;

font-weight:600;

cursor:pointer;

display:flex;

align-items:center;

justify-content:center;

gap:10px;

transition:.35s;

box-shadow:

0 15px 35px rgba(0,208,132,.30);

}

.convert-btn:hover{

transform:translateY(-4px);

box-shadow:

0 20px 40px rgba(0,208,132,.40);

}

/* ===================================
RESULT CARD
=================================== */

.result-card{

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.10);

border-radius:24px;

padding:35px;

margin-bottom:35px;

}

.result-header{

margin-bottom:25px;

}

.result-header h2{

display:flex;

align-items:center;

gap:12px;

font-size:1.7rem;

}

.result-header h2 i{

color:#00d084;

}

/* ===================================
RESULT BOX
=================================== */

.result-box{

background:rgba(255,255,255,.06);

border:1px solid rgba(255,255,255,.08);

border-radius:18px;

padding:30px;

text-align:center;

margin-bottom:25px;

transition:.3s;

}

.result-box:hover{

transform:translateY(-5px);

box-shadow:0 20px 40px rgba(0,208,132,.18);

}

.result-box h1{

font-size:3rem;

font-weight:700;

background:linear-gradient(135deg,#00d084,#0ea5e9);

-webkit-background-clip:text;

-webkit-text-fill-color:transparent;

margin-bottom:10px;

}

.result-box p{

font-size:17px;

color:#dbe4f0;

}

/* ===================================
RATE INFO
=================================== */

.rate-info{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:20px;

}

.rate-item{

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.08);

border-radius:16px;

padding:20px;

display:flex;

justify-content:space-between;

align-items:center;

}

.rate-item span{

color:#cbd5e1;

font-size:14px;

}

.rate-item strong{

font-size:15px;

color:#ffffff;

}

/* ===================================
POPULAR CARD
=================================== */

.popular-card{

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.10);

border-radius:24px;

padding:35px;

margin-bottom:35px;

}

.popular-card h2{

display:flex;

align-items:center;

gap:12px;

font-size:1.6rem;

margin-bottom:25px;

}

.popular-card h2 i{

color:#0ea5e9;

}

.popular-grid{

display:grid;

grid-template-columns:

repeat(auto-fit,minmax(120px,1fr));

gap:15px;

}

.currency-chip{

height:52px;

border:none;

border-radius:14px;

cursor:pointer;

background:rgba(255,255,255,.06);

border:1px solid rgba(255,255,255,.08);

color:#ffffff;

font-weight:600;

transition:.3s;

}

.currency-chip:hover{

background:linear-gradient(135deg,#00d084,#0ea5e9);

transform:translateY(-4px);

}

/* ===================================
INFO CARD
=================================== */

.info-card{

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.10);

border-radius:24px;

padding:35px;

margin-bottom:35px;

}

.info-card h2{

display:flex;

align-items:center;

gap:12px;

margin-bottom:25px;

font-size:1.6rem;

}

.info-card h2 i{

color:#00d084;

}

.info-grid{

display:grid;

grid-template-columns:

repeat(auto-fit,minmax(220px,1fr));

gap:20px;

}

.info-item{

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.08);

border-radius:16px;

padding:20px;

display:flex;

justify-content:space-between;

align-items:center;

}

.info-item span{

font-size:14px;

color:#cbd5e1;

}

.info-item strong{

font-size:15px;

color:#ffffff;

}

/* ===================================
ACTION BUTTONS
=================================== */

.action-buttons{

display:flex;

justify-content:center;

gap:20px;

flex-wrap:wrap;

margin-top:15px;

}

.action-buttons button{

border:none;

padding:15px 30px;

border-radius:14px;

cursor:pointer;

font-size:15px;

font-weight:600;

display:flex;

align-items:center;

gap:10px;

transition:.3s;

color:#fff;

}

#copyBtn{

background:linear-gradient(135deg,#0ea5e9,#2563eb);

}

#resetBtn{

background:linear-gradient(135deg,#ef4444,#dc2626);

}

.action-buttons button:hover{

transform:translateY(-4px);

box-shadow:0 15px 35px rgba(0,0,0,.30);

}

/* ===================================
FOOTER
=================================== */

.tool-footer{

margin-top:45px;

padding-top:25px;

border-top:1px solid rgba(255,255,255,.08);

text-align:center;

color:#cbd5e1;

font-size:14px;

}

.tool-footer span{

margin:0 10px;

color:#00d084;

}

/* ===================================
LOADER
=================================== */

.loader-overlay{

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

background:rgba(7,11,23,.88);

backdrop-filter:blur(10px);

display:none;

justify-content:center;

align-items:center;

flex-direction:column;

z-index:9999;

}

.loader{

width:70px;

height:70px;

border-radius:50%;

border:6px solid rgba(255,255,255,.15);

border-top:6px solid #00d084;

animation:spin 1s linear infinite;

margin-bottom:20px;

}

.loader-overlay p{

font-size:18px;

font-weight:600;

}

@keyframes spin{

0%{

transform:rotate(0deg);

}

100%{

transform:rotate(360deg);

}

}

/* ===================================
TOAST
=================================== */

.toast{

position:fixed;

bottom:30px;

right:30px;

background:#111827;

border:1px solid rgba(255,255,255,.08);

padding:16px 22px;

border-radius:14px;

display:flex;

align-items:center;

gap:12px;

opacity:0;

pointer-events:none;

transform:translateY(30px);

transition:.35s;

box-shadow:0 15px 35px rgba(0,0,0,.35);

z-index:9999;

}

.toast.show{

opacity:1;

pointer-events:auto;

transform:translateY(0);

}

.toast i{

color:#00d084;

font-size:20px;

}

/* ===================================
BACK TO TOP
=================================== */

.top-btn{

position:fixed;

right:25px;

bottom:100px;

width:55px;

height:55px;

border:none;

border-radius:50%;

display:none;

align-items:center;

justify-content:center;

cursor:pointer;

font-size:18px;

color:#fff;

background:linear-gradient(135deg,#00d084,#0ea5e9);

box-shadow:0 15px 35px rgba(0,208,132,.30);

transition:.3s;

z-index:999;

}

.top-btn:hover{

transform:translateY(-5px);

}

/* ===================================
SCROLLBAR
=================================== */

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-track{

background:#0f172a;

}

::-webkit-scrollbar-thumb{

background:linear-gradient(#00d084,#0ea5e9);

border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

background:#00b37a;

}

/* ===================================
ANIMATION
=================================== */

@keyframes fadeUp{

from{

opacity:0;

transform:translateY(25px);

}

to{

opacity:1;

transform:translateY(0);

}

}

.converter-card{

animation:fadeUp .8s ease;

}

/* ===================================
TABLET
=================================== */

@media(max-width:992px){

.converter-card{

padding:30px;

}

.header{

flex-direction:column;

align-items:flex-start;

}

.header h1{

font-size:2rem;

}

.converter-grid{

grid-template-columns:1fr;

}

.popular-grid{

grid-template-columns:repeat(3,1fr);

}

.info-grid{

grid-template-columns:repeat(2,1fr);

}

.rate-info{

grid-template-columns:1fr;

}

}

/* ===================================
MOBILE
=================================== */

@media(max-width:768px){

.converter-wrapper{

padding:20px 15px;

}

.converter-card{

padding:22px;

border-radius:22px;

}

.header h1{

font-size:1.6rem;

}

.result-box h1{

font-size:2.3rem;

}

.result-header h2,

.popular-card h2,

.info-card h2{

font-size:1.3rem;

}

.popular-grid{

grid-template-columns:repeat(2,1fr);

}

.info-grid{

grid-template-columns:1fr;

}

.rate-info{

grid-template-columns:1fr;

}

.action-buttons{

flex-direction:column;

}

.action-buttons button{

width:100%;

justify-content:center;

}

.home-btn{

width:100%;

justify-content:center;

}

}

/* ===================================
SMALL MOBILE
=================================== */

@media(max-width:480px){

.header h1{

font-size:1.35rem;

}

.result-box h1{

font-size:2rem;

}

.currency-chip{

font-size:13px;

}

.toast{

left:15px;

right:15px;

bottom:15px;

}

.top-btn{

right:15px;

bottom:90px;

}

}