*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body{
  background-color: #0d0d0d;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: #ffffff;
}

a{ all: unset; cursor: pointer; }
li{ list-style: none; }

/* HEADER */
header{
    max-width: 100vw;
    max-height: 72px;
    background-color: #0d0d0d;
}
.headerContent{
    padding: 0.6rem 4rem;
    display: flex;
    gap: 12px;  
    justify-content: space-between;
    align-items: center;
}
.headerContent_left{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-right: 24px;
}
.headerContent_logo{
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    line-height: 24px;
    font-size: 18px;
    color: #ffffff;
}
.headerContent_leftRightContents{
    display: flex;
    gap: 32px;
    font-weight: 600;
    line-height: 24px;
    font-size: 16px;
    color: rgb(255, 255, 255);
}
.headerContent_leftRightContents a:hover { color: rgba(255, 255, 255, 0.8); }

/* SEARCH BAR */
.headerContent_midlle{
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex: 1;
    border-radius: 12px;
    background-color: #1a1a1a;
}
.headerContent_midlleSearch{
    display: inline-flex;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px;
}
.midlleSearchInput{
    flex: 1 1 0;
    border: none;
    height: 100%;
    display: flex;
    background-color: #1a1a1a;
    color: #ffffff;
}
.midlleSearchInput:focus{ outline: none; }
.midlleSearchInput::placeholder { color: rgba(255, 255, 255, 0.6); }
.headerContent_midlle:hover{ border-color: rgba(255, 255, 255, 0.4); transition: all 0.3s ease; }
.headerContent_midlleSearch div:nth-child(3){
    height: 26px; min-width: 26px; display: flex; justify-content: center; align-items: center;
    border-radius: 8px; font-size: 12px; font-weight: 400; background-color: #333333; color: #ffffff;
}

/* RIGHT HEADER SECTION */
.headerContent_right{
    display: flex; height: max-content; align-items: center; justify-content: center; gap: 8px;
}
.headerContent_right_left{ display: flex; align-items: center; }
.headerContent_right_leftFirstone{
    display: flex; align-items: center; justify-content: center;
    padding: 9px 18px; width: auto; white-space: normal;
    border-radius: 12px 0 0 12px;
    border-width: 1px 0 1px 1px; border-style: solid; border-color: rgba(255,255,255,0.12);
    gap: 12px; word-wrap: break-word; background-color: #1a1a1a;
}
.headerContent_right_leftFirstone img{ margin-right: 8px; }
.headerContent_right_leftFirstone:hover{
    border-color: rgba(255,255,255,0.8);
    border-width: 1px; transition: all 0.3s ease;
}
.headerContent_right_leftFirstone div:nth-child(2){
    font-size: 16px; font-weight: 600; line-height: 24px; color: #fff;
}
.headerContent_right_leftSecondone{ align-self: center; height: 100%; }
.headerContent_right_leftSecondone div:nth-child(1){
    border-radius: 0 12px 12px 0; margin-left: 0;
    border: 1px solid rgba(255,255,255,0.12); padding: 4px 12px; background-color: #1a1a1a;
}
.headerContent_right_leftSecondone div:nth-child(1):hover{
    border-color: rgba(255,255,255,0.8); border-width: 1px; transition: all 0.3s ease;
}
.headerContent_right_leftSecondone img{ margin-top: 4px; }

/* RESPONSIVE SEARCH BAR (overlay în header) */
.headerContentSearch_resp{
    height: 72px;
    background: #1a1a1a;
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    top: 0; right: 0; left: 0;
    width: 100vw;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.headerContentSearch_resp img{ margin-bottom: 2px; }
.headerContentSearch_resp.show{ display: flex; } /* IMPORTANT pt. toggle */
.input_resp{
    height: 50px; width: 100%; background: none; outline: none; border: none;
    font-size: 18px; font-weight: 500; line-height: 22px; color: #ffffff;
}
.input_resp::placeholder{ font-size: 18px; color: rgba(255,255,255,0.6); }

/* SIDEBAR (responsive) */
.responsiveSideBar{
    background: #1a1a1a; height: 100vh; position: absolute; display: none; z-index: 9;
    width: 100vw; top: 8vh; flex-direction: column;
}
.responsiveSideBar_Contents{
    padding: 20px; height: 72px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #333333;
}
.responsiveSideBar_Contents a{
    font-weight: 600; font-size: 18px; line-height: 22px; color: #ffffff;
}

/* MAIN BLOCK */
.container{
    display: flex; justify-content: center; align-items: center;
    height: 20vh; background-color: #1a1a1a;
}
.logo1{ width: 400px; height: auto; margin-bottom: 45px; }

/* Override pentru blocul inline alb din HTML */
div[style*="background-color: #ffffff"]{
    background-color: #1a1a1a !important; color: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
}
h2[style*="color: #333"]{ color: #ffffff !important; }
p[style*="color: #555"]{ color: #cccccc !important; }

/* BUTTON */
#connect-wallet-btn{
    background-color: #2081e2; color: #fff; font-size: 18px; font-weight: bold;
    padding: 14px 18px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: auto; border: none; outline: none; transition: none; text-align: center;
}
#connect-wallet-btn:hover{ background-color: #2081e2; cursor: pointer; }
#connect-wallet-btn svg{ margin-right: 6px; width: 22px; height: 22px; }
#connect-wallet-btn span{ font-weight: bold; font-size: 18px; }

/* GENERIC OVERLAY (pentru efecte viitoare) */
.overlay{
    position: fixed; display: none; width: 100%; height: 100%;
    top: 0; left: 0; right: 0; bottom: 0; background-color: rgb(0 0 0 / 60%); z-index: 1;
}

/* WALLET POPUP */
.wallet-popup-overlay{
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12, 13, 16, 0.2); display: none; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(10px);
}
.wallet-popup-frame{
    width: min(400px, 95%); background: radial-gradient(900px 600px at 60% 20%, #101217 0%, #0b0c0f 60%, #0a0a0c 100%);
    border-radius: 22px; border: 1px solid #171a20; box-shadow: 0 8px 24px rgba(0,0,0,.45);
    padding: 20px; box-sizing: border-box; animation: popupSlideIn 0.3s ease-out;
}
@keyframes popupSlideIn{
    from{ opacity: 0; transform: scale(0.9) translateY(-20px); }
    to{ opacity: 1; transform: scale(1) translateY(0); }
}
.wallet-popup-card{
    background: #0f1115; border-radius: 16px; border: 1px solid #20242c; box-shadow: 0 8px 24px rgba(0,0,0,.45);
    margin-top: 18px; padding-bottom: 12px;
}
.popup-top{ display: flex; align-items: center; gap: 10px; }
.popup-logo{ width: 34px; height: 34px; border-radius: 8px; background: #2081E2; display: grid; place-items: center; }
.popup-title{ font-size: 20px; font-weight: 700; margin: 0; display: flex; align-items: center; color: #e9ecf3; }
.verified{ width: 20px; height: 20px; display: grid; place-items: center; margin-left: 6px; }
.popup-subtitle{ color: #98a0aa; font-size: 13px; margin-top: 3px; }

.popup-block{ background: #14171c; border-radius: 12px; border: 1px solid #1b1f26; margin: 14px; }
.popup-block-header{
    font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-bottom: 1px solid #1d2230; color: #e9ecf3;
}
.popup-icon{ width: 20px; height: 20px; display: grid; place-items: center; }
.popup-icon svg{ width: 20px; height: 20px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.popup-icon.cube svg{ stroke: #fff; fill: none; }
.popup-icon.approve svg{ stroke: #00c46e; fill: none; }
.popup-icon.receive{ background: #00c46e; border-radius: 50%; }
.popup-icon.receive svg{ stroke: #fff; fill: none; }

.popup-rows .popup-row{
    display: flex; align-items: center; padding: 10px 14px; gap: 10px; font-size: 14px; color: #e9ecf3;
}
.popup-rows .popup-row + .popup-row{ border-top: 1px solid #1d2230; }
.popup-label{ font-weight: 600; }
.popup-spacer{ flex: 1; }
.popup-amount{ font-weight: 700; display: flex; align-items: center; gap: 4px; }
.popup-amount.green{ color: #00c46e; }

.popup-details{
    margin: 10px 14px; border-radius: 10px; border: 1px solid #191e26; padding: 8px 12px;
    display: flex; align-items: center; gap: 8px; color: #3b82f6; background: #0e1014; font-weight: 600; font-size: 13px; cursor: pointer;
}
.popup-details svg{ fill: #3b82f6; width: 14px; height: 14px; }

.popup-signing{
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(180deg,#14171e 0%,#10131a 100%); border: 1px solid #1f2330; border-radius: 12px; margin: 10px 14px; padding: 10px;
}

/* footer butoane confirm/cancel */
.popup-footer{
    display: flex; justify-content: space-between; align-items: center; margin: 16px 14px 10px; gap: 10px;
}
.popup-btn{
    flex: 1; padding: 12px 16px; border-radius: 12px; border: 1px solid #222532;
    font-weight: 700; font-size: 14px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.3);
    cursor: pointer; transition: all 0.2s ease;
}
.popup-btn.cancel{ background: #181b22; color: #e9ecf3; }
.popup-btn.cancel:hover{ background: #1f232c; }
.popup-btn.confirm{ background: #2d6bff; color: white; }
.popup-btn.confirm:hover{ background: #3b78ff; }

.popup-fee{
    display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #98a0aa; margin: 6px 14px;
}
.popup-fee .dot{ width: 8px; height: 8px; border-radius: 50%; background: #a68cff; }

/* MEDIA QUERIES — păstrează stările responsive necesare */
@media (max-width: 1034px){
    .headerContent{ padding: 0.6rem 2rem; }
    .headerContent_midlle{ display: none; }
    .headerContent_right_leftFirstone{ max-width: 120px; border-width: 1px; border-radius: 12px; gap: 8px; }
    .headerContentSearch_resp.show{ display: flex; }
}
@media (max-width: 768px){
    .headerContent_right_leftFirstone{ justify-content: flex-start; gap: 8px; }
    .headerContent_right_leftFirstone img{ height: 23px; width: 23px; }
    .headerContent_right_leftFirstone div{ white-space: nowrap; }
}
@media (max-width: 745px){
    .lineHeaderLeft{ display: none; }
    .headerContent{ padding: 0.6rem 1rem; }
    .headerContent_right_leftSecondone{ display: none; }
    .headerContent_right_leftFirstone_resp_loop{
        display: flex; align-items: center; justify-content: center; margin-right: 8px; border: none; background-color: transparent;
    }
    .headerContent_right_leftFirstone_resp_loop img{ height: 30px; width: 30px; }
    .headerContent_leftRightContents{ display: none; }
}
@media (max-width: 549px){ .lineHeaderLeft{ display: none; } }
@media (max-width: 455px){ .lineHeaderLeft{ display: none; } }
@media (max-width: 415px){
    .lineHeaderLeft{ display: none; }
}
