
#evasteet-fab{position:fixed;left:20px;bottom:20px;width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ff3b3b,#4a0000);color:#fff;cursor:pointer;z-index:999999}
.ev-hidden{display:none}#evasteet-modal{position:fixed;inset:0;z-index:999998}
.ev-overlay{position:absolute;inset:0;background:rgba(0,0,0,.8)}
.ev-card{position:relative;max-width:1000px;margin:4vh auto;padding:24px;background:linear-gradient(135deg,#141414,#3b0a0a);color:#fff;border-radius:24px}
.ev-tabs{display:flex;gap:8px;flex-wrap:wrap}.ev-tab{padding:10px 14px}.ev-panel{display:none}.ev-panel.active{display:block;color:#fff}
#ev-close{position:absolute;right:12px;top:12px}

.ev-actions{display:flex;gap:12px;margin-top:20px;justify-content:center;flex-wrap:wrap}
.ev-btn{
background:linear-gradient(135deg,#8b0000,#c62828);
color:#fff;border:0;padding:12px 18px;border-radius:14px;
font-weight:700;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.35)
}
.ev-btn-primary{
background:linear-gradient(135deg,#ff3b3b,#8b0000);
}
.ev-btn:hover{transform:translateY(-2px)}
.ev-toast{
position:fixed;right:20px;bottom:20px;background:#8b0000;color:#fff;
padding:12px 16px;border-radius:12px;display:none;z-index:1000000
}


/* Compact buttons on one row */
.ev-actions{
  display:flex !important;
  flex-wrap:nowrap !important;
  justify-content:center;
  align-items:center;
  gap:8px !important;
}

.ev-btn,
.ev-btn-primary{
  padding:8px 12px !important;
  font-size:12px !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
  border-radius:10px !important;
}

@media (max-width:768px){
  .ev-actions{flex-wrap:wrap !important;}
}


/* Fix: content under close button */
.ev-card{
  padding-top:60px !important;
}

#ev-close{
  z-index:10;
}

.ev-tabs{
  margin-top:10px !important;
}


/* Premium UI 1005 */
.ev-card{
backdrop-filter:blur(18px);
box-shadow:0 20px 60px rgba(0,0,0,.45);
border:1px solid rgba(255,255,255,.08);
}

#evasteet-fab{
box-shadow:0 0 30px rgba(255,59,59,.45);
animation:ev-pulse 2s infinite;
transition:transform .2s ease;
}
#evasteet-fab:hover{transform:scale(1.08);}

@keyframes ev-pulse{
0%{transform:scale(1)}
50%{transform:scale(1.06)}
100%{transform:scale(1)}
}

.ev-tab{
border:1px solid rgba(255,255,255,.08);
transition:all .2s ease;
}
.ev-tab:hover{
transform:translateY(-2px);
box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.ev-card h2{
margin-bottom:16px;
padding-right:50px;
}

.ev-panel{
line-height:1.8;
}

.ev-toast{
backdrop-filter:blur(10px);
}

/* Version 5000.0.0 cache bust */


/* Version 10000.0.0 */
.ev-tabs{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:25px !important;
}

#evasteet-modal{
    overflow-y:auto !important;
}

.ev-card{
    max-height:90vh;
    overflow-y:auto !important;
}


/* Premium modal header */
.ev-header{
display:flex;
align-items:center;
justify-content:space-between;
gap:15px;
padding:16px 20px;
margin:-10px -10px 20px -10px;
border-radius:18px;
background:linear-gradient(135deg,#8b0000,#2b0000);
box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.ev-header-title{
color:#fff;
font-size:24px;
font-weight:800;
margin:0;
}

.ev-header-subtitle{
color:rgba(255,255,255,.85);
font-size:13px;
margin-top:4px;
}

#ev-close{
background:rgba(255,255,255,.12);
border:0;
color:#fff;
width:40px;
height:40px;
border-radius:50%;
cursor:pointer;
}


/* Version 30000.0.0 fixes */

/* Modal scroll instead of page scroll */
body.ev-modal-open{
    overflow:hidden !important;
}

#evasteet-modal{
    position:fixed !important;
    inset:0 !important;
    overflow-y:auto !important;
}

.ev-card{
    max-height:none !important;
    margin:40px auto !important;
}

/* White headings */
.ev-card h1,
.ev-card h2,
.ev-card h3,
.ev-card h4,
.ev-card h5,
.ev-card h6{
    color:#ffffff !important;
}

/* More space below tabs */
.ev-tabs{
    margin-bottom:35px !important;
}

.ev-panel{
    padding-top:25px !important;
}


/* 50000.0.0 cache + scroll fix */
html:has(#evasteet-modal:not(.ev-hidden)),
body.ev-modal-open{
 overflow:hidden !important;
}

#evasteet-modal{
 overflow-y:auto !important;
 overscroll-behavior:contain !important;
}

.ev-panel.active{
 display:block;
 padding-top:40px !important;
}

.ev-tabs{
 margin-bottom:40px !important;
}


/* 60000.0.0 overlap fixes */

/* Keep modal above accessibility widgets and floating elements */
#evasteet-modal{
    z-index:2147483000 !important;
}

.ev-card{
    position:relative;
    z-index:2147483001 !important;
    padding-bottom:40px !important;
}

/* Prevent content collisions */
.ev-header{
    margin-bottom:25px !important;
}

.ev-tabs{
    margin-bottom:40px !important;
}

.ev-panel{
    padding-top:20px !important;
    clear:both;
}

.ev-actions{
    margin-top:30px !important;
}
