*{margin:0;padding:0;box-sizing:border-box}

:root{
  --bg:#05070d;
  --navy:#081b3a;
  --panel:#0b2545;
  --gold:#d4af37;
  --cyan:#00d4ff;
  --red:#ff6b6b;
  --green:#21e6a2;
  --text:#fff;
}

html{scroll-behavior:smooth}

body{
  font-family:Arial,Verdana,sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

.fp-hidden{display:none!important}

.fp-app{
  display:flex;
  min-height:100vh;
  background:linear-gradient(135deg,#05070d,#081b3a,#06111f);
}

.fp-side{
  width:270px;
  background:linear-gradient(180deg,#0b2545,#05070d);
  padding:24px;
  border-right:1px solid rgba(0,212,255,.3);
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
}

.fp-logo{text-align:center;margin-bottom:25px}
.fp-logo-img{
    width:110px;
    height:auto;
    display:block;
    margin:0 auto 12px;
}

.fp-circle{
  width:92px;
  height:92px;
  border-radius:50%;
  border:3px solid var(--gold);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:auto;
  font-size:35px;
  font-weight:900;
  color:var(--gold);
  box-shadow:0 0 25px rgba(0,212,255,.55);
}

.fp-brand{
  font-family:Georgia,serif;
  color:var(--gold);
  font-size:27px;
  font-weight:800;
  margin-top:12px;
}

.fp-slogan{
  font-size:13px;
  opacity:.8;
  font-style:italic;
  margin-top:6px;
}

.fp-menu{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.fp-menu button{
  background:rgba(255,255,255,.05);
  color:white;
  border:1px solid rgba(0,212,255,.25);
  padding:14px;
  border-radius:14px;
  text-align:left;
  cursor:pointer;
  font-size:15px;
}

.fp-menu button:hover{
  background:var(--cyan);
  color:#05070d;
}

.fp-main{
  flex:1;
  padding:28px;
}

.fp-top{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:25px;
}

.fp-title h1{
  font-size:40px;
  color:var(--gold);
  text-shadow:0 0 16px rgba(0,212,255,.55);
}

.fp-title p{
  opacity:.85;
  margin-top:8px;
}

.fp-user,
.fp-card,
.fp-section,
.fp-auth-box{
  background:linear-gradient(135deg,#0b2545,#07182e);
  border:1px solid rgba(0,212,255,.28);
  border-radius:20px;
  box-shadow:0 0 22px rgba(0,212,255,.12);
}

.fp-user{
  padding:18px;
  min-width:260px;
  text-align:right;
}

.fp-user strong{color:var(--gold)}

.fp-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
  margin-bottom:24px;
}

.fp-card{
  padding:22px;
}

.fp-card span{
  font-size:13px;
  opacity:.75;
}

.fp-card h2{
  font-size:29px;
  margin-top:10px;
  color:var(--gold);
}

.fp-section{
  padding:24px;
  margin-bottom:25px;
}

.fp-section h2{
  color:var(--gold);
  margin-bottom:18px;
}

.fp-form{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
}

.fp-input,
.fp-select{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:1px solid rgba(0,212,255,.45);
  background:#06182e;
  color:white;
  margin-top:8px;
}

.fp-btn{
  background:#05070d;
  color:#D4AF37;
  border:2px solid var(--gold);
  padding:13px 22px;
  border-radius:13px;
  font-weight:800;
  cursor:pointer;
  margin:5px;
}

.fp-btn.gold{
    background:#071A3D;
    color:#D4AF37;
    border:2px solid #D4AF37;
}
.fp-btn.red{
    background:#D4AF37;
    color:#000000;
    border:2px solid #000000;
}
.fp-btn.dark{background:#07182e;color:white}

.fp-btn:hover{
  transform:translateY(-1px);
}

table{
  width:100%;
  border-collapse:collapse;
}

th{
  color:var(--gold);
  text-align:left;
  padding:13px;
  border-bottom:1px solid rgba(0,212,255,.25);
}

td{
  padding:13px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.fp-positive{color:var(--green)}
.fp-negative{color:var(--red)}

.fp-note{
  font-size:13px;
  opacity:.8;
  margin-top:10px;
}

canvas{
  width:100%;
  height:300px;
  background:#06182e;
  border-radius:16px;
  border:1px solid rgba(0,212,255,.25);
}

.fp-candle-wrap{
  height:420px;
}

.fp-candle-wrap canvas{
  height:420px!important;
}

.fp-auth{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:25px;
  background:linear-gradient(135deg,#05070d,#081b3a,#06111f);
}

.fp-auth-box{
  width:min(950px,100%);
  padding:30px;
}

.fp-auth-head{
  text-align:center;
  margin-bottom:24px;
}

.fp-auth-head h1{
  font-family:Georgia,serif;
  color:var(--gold);
  font-size:42px;
}

.fp-auth-tabs{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

.fp-auth-tabs button{
  flex:1;
}

.fp-status{
  padding:16px;
  border-radius:14px;
  border:1px solid rgba(0,212,255,.25);
  background:rgba(0,212,255,.08);
  margin:12px 0;
}

.fp-badge{
  display:inline-block;
  padding:5px 10px;
  border-radius:20px;
  background:rgba(212,175,55,.15);
  color:var(--gold);
  font-size:12px;
}

.fp-admin-row{
    /* ===== PANEL ADMIN PRO ===== */

.fp-admin-stats{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:18px;
margin-bottom:30px;
}

.fp-stat{
background:linear-gradient(135deg,#0b2545,#07182e);
border:1px solid rgba(0,212,255,.25);
border-radius:18px;
padding:22px;
text-align:center;
box-shadow:0 0 20px rgba(0,212,255,.15);
transition:.3s;
}

.fp-stat:hover{
transform:translateY(-4px);
box-shadow:0 0 28px rgba(0,212,255,.35);
}

.fp-stat h3{
font-size:14px;
color:#ffffff;
opacity:.8;
margin-bottom:12px;
}

.fp-stat h1{
font-size:34px;
color:#d4af37;
margin:0;
}

.fp-admin-title{
margin-top:35px;
margin-bottom:15px;
font-size:24px;
color:#d4af37;
}
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr .8fr 1.2fr;
  gap:10px;
  align-items:end;
  border-bottom:1px solid rgba(255,255,255,.08);
  padding:14px 0;
}

@media(max-width:900px){
  .fp-app{display:block}
  .fp-side{
    position:relative;
    width:100%;
    height:auto;
  }
  .fp-main{padding:18px}
  .fp-top{
    flex-direction:column;
    align-items:flex-start;
  }
  .fp-title h1{font-size:30px}
  .fp-user{
    text-align:left;
    width:100%;
  }
  table{font-size:13px}
  .fp-admin-row{grid-template-columns:1fr}
}
#admin.fp-hidden,
#fpAdminMenu.fp-hidden{
  display:none!important;
}

#fpAuth:not(.fp-hidden) ~ #fpPlatform #admin{
  display:none!important;
}
body:not(.fp-is-admin) #admin,
body:not(.fp-is-admin) #fpAdminMenu,
body:not(.fp-is-admin) #fpAdminSearch{
  display:none!important;
}
/* ==========================================
   BOTONES PANEL ADMINISTRADOR
   (NO AFECTA EL RESTO DE LA PLATAFORMA)
========================================== */

#admin button{

    background:linear-gradient(135deg,#071A3D,#0B2C5F);
    color:#ffffff;
    border:1px solid #D4AF37;
min-width:82px;
height:30px;

border-radius:8px;
padding:3px 8px;
font-size:11px;
margin:2px 3px;
    transition:.25s ease;
    box-shadow:0 4px 10px rgba(0,0,0,.25);

}

#admin button:hover{

    background:linear-gradient(135deg,#D4AF37,#F5D76E);
    color:#071A3D;
    transform:translateY(-1px);
    box-shadow:0 8px 18px rgba(212,175,55,.25);

}

#admin button:active{

    transform:scale(.97);

}
/* ADMIN: botones pequeños forzados */
#fpAdminList button,
#fpAdminMovimientos button,
#fpAdminNotificaciones button,
#fpAdminList .fp-btn,
#fpAdminMovimientos .fp-btn,
#fpAdminNotificaciones .fp-btn{
  height:28px!important;
  min-height:28px!important;
  min-width:74px!important;
  padding:2px 8px!important;
  font-size:10.5px!important;
  border-radius:7px!important;
  margin:2px!important;
  line-height:1!important;
  box-shadow:0 2px 6px rgba(0,0,0,.22)!important;
}

#fpAdminList button:hover,
#fpAdminMovimientos button:hover,
#fpAdminNotificaciones button:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 4px 10px rgba(0,0,0,.25)!important;
}


/* Evitar que el panel admin quede colapsado */
#fpAdminList,
#fpAdminMovimientos,
#fpAdminNotificaciones,
#admin{
  overflow:visible!important;
  max-height:none!important;
}
/* SOLO BOTONES ADMIN PEQUEÑOS */
#fpAdminList button,
#fpAdminMovimientos button,
#fpAdminNotificaciones button{
  height:28px!important;
  min-height:28px!important;
  min-width:74px!important;
  padding:2px 8px!important;
  font-size:10.5px!important;
  border-radius:7px!important;
  margin:2px!important;
  line-height:1!important;
  box-shadow:0 2px 6px rgba(0,0,0,.22)!important;
}

#fpAdminList button:hover,
#fpAdminMovimientos button:hover,
#fpAdminNotificaciones button:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 4px 10px rgba(0,0,0,.25)!important;
}
.fp-password{
    position:relative;
    width:100%;
}

.fp-password .fp-input{
    width:100%;
    padding-right:45px;
    box-sizing:border-box;
}

.fp-eye{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    font-size:18px;
    color:#d4af37;
    user-select:none;
    transition:.2s;
}

.fp-eye:hover{
    color:#00d4ff;
}