/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#0b1120;
    color:white;
    min-height:100vh;
}

/* =========================
   NAVBAR
========================= */

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 40px;

    background:rgba(17,24,39,0.9);
    backdrop-filter:blur(10px);

    border-bottom:1px solid rgba(255,255,255,0.05);
}

.logo{
    font-size:28px;
    font-weight:800;
    color:#3b82f6;
}

nav ul{
    display:flex;
    list-style:none;
    gap:12px;
    align-items:center;
}

nav ul a{
    text-decoration:none;
    color:white;

    padding:10px 15px;

    border-radius:10px;

    transition:0.3s;
}

nav ul a:hover{
    background:#1f2937;
}

.login-btn{
    background:#3b82f6;
}

.register-btn{
    background:#22c55e;
}

/* =========================
   HERO
========================= */

.hero{
    text-align:center;
    padding:90px 20px;
}

.hero h1{
    font-size:60px;
    margin-bottom:10px;
}

.hero p{
    color:#94a3b8;
    font-size:18px;
}

/* =========================
   GRID (MARKET)
========================= */

.grid{
    width:90%;
    margin:auto;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:20px;

    padding:40px 0;
}

/* =========================
   CARD SKINS
========================= */

.card{
    background:#111827;

    border-radius:15px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,0.05);

    transition:0.3s;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 30px rgba(59,130,246,0.2);
}

.card img{
    width:100%;
    height:220px;
    object-fit:contain;

    background:#0f172a;

    padding:15px;
}

.card h3{
    padding:15px;
    font-size:18px;
}

.card p{
    padding:0 15px 15px;
    color:#60a5fa;
}

.card a{
    display:block;

    margin:15px;

    text-align:center;

    padding:12px;

    background:linear-gradient(90deg,#3b82f6,#8b5cf6);

    color:white;

    text-decoration:none;

    border-radius:10px;

    font-weight:700;
}

/* =========================
   SKIN PAGE
========================= */

.skin{
    width:90%;
    max-width:1100px;

    margin:60px auto;

    display:flex;
    gap:40px;

    align-items:center;
}

.skin img{
    width:450px;
    max-width:100%;
}

.skin h1{
    font-size:40px;
    margin-bottom:10px;
}

.skin h2{
    color:#22c55e;
    margin-bottom:20px;
}

.skin button{
    padding:14px 25px;

    border:none;

    border-radius:10px;

    background:#22c55e;

    color:white;

    font-weight:700;

    cursor:pointer;
}

/* =========================
   AUTH (LOGIN / REGISTER)
========================= */

.auth{
    width:420px;
    max-width:90%;

    margin:80px auto;

    padding:35px;

    background:rgba(17,24,39,0.75);
    backdrop-filter:blur(12px);

    border-radius:18px;

    border:1px solid rgba(255,255,255,0.08);

    box-shadow:0 0 40px rgba(0,0,0,0.5);
}

.auth h2{
    text-align:center;
    margin-bottom:25px;

    font-size:28px;
    font-weight:800;

    background:linear-gradient(90deg,#3b82f6,#8b5cf6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.auth input{
    width:100%;

    padding:14px;

    margin-bottom:15px;

    border-radius:12px;

    border:1px solid rgba(255,255,255,0.08);

    background:#0f172a;

    color:white;

    outline:none;

    transition:0.3s;
}

.auth input:focus{
    border-color:#3b82f6;
    box-shadow:0 0 12px rgba(59,130,246,0.4);
}

.auth button{
    width:100%;

    padding:14px;

    border:none;

    border-radius:12px;

    background:linear-gradient(90deg,#3b82f6,#8b5cf6);

    color:white;

    font-weight:700;

    cursor:pointer;

    transition:0.3s;
}

.auth button:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(59,130,246,0.3);
}

/* LINKS LOGIN/REGISTER */
.btn-link{
    display:block;
    text-align:center;

    margin-top:15px;

    color:#60a5fa;
    text-decoration:none;

    font-weight:600;
}

.btn-link:hover{
    text-decoration:underline;
}

/* =========================
   PROFILE
========================= */

.profile{
    width:90%;
    margin:auto;
    padding:40px;
}

.profile-card{
    max-width:500px;

    margin:auto;

    background:#111827;

    padding:25px;

    border-radius:15px;

    border:1px solid rgba(255,255,255,0.05);
}

.profile-card h2{
    font-size:28px;
    margin-bottom:10px;
}

.profile-card h3{
    color:#22c55e;
    margin:10px 0;
}

.profile-card input{
    width:100%;
    padding:12px;

    margin-top:10px;

    border:none;
    border-radius:10px;

    background:#0f172a;

    color:white;
}

.profile-card button{
    margin-top:15px;
    width:100%;

    padding:12px;

    border:none;
    border-radius:10px;

    background:#3b82f6;

    color:white;

    font-weight:bold;
    cursor:pointer;
}

/* =========================
   MENSAGENS
========================= */

.msg{
    background:#1f2937;

    padding:12px;

    margin-bottom:15px;

    border-radius:10px;

    text-align:center;

    color:#facc15;

    font-weight:600;
}

/* =========================
   RESPONSIVO
========================= */

@media(max-width:900px){

    nav{
        flex-direction:column;
        gap:15px;
    }

    .hero h1{
        font-size:40px;
    }

    .skin{
        flex-direction:column;
        text-align:center;
    }
}

nav ul li a{
    transition:0.3s;
}

nav ul li a:hover{
    transform:translateY(-2px);
}

nav ul li a:first-child{
    background:#1f2937;
    border-radius:10px;
}

.admin-btn,
button[name="delete_user"],
button[name="add_money"],
button[name="remove_market"],
button[name="add_market"]{
    background:linear-gradient(90deg,#ef4444,#dc2626);

    color:white;

    border:none;

    padding:10px;

    border-radius:10px;

    cursor:pointer;

    margin-top:10px;

    transition:0.3s;
}

.admin-btn:hover,
button[name="delete_user"]:hover{
    transform:scale(1.05);
    box-shadow:0 0 15px rgba(239,68,68,0.4);
}
/* =========================
   REMOVE MONEY BTN
========================= */

button[name="remove_money"]{
    background:linear-gradient(90deg,#dc2626,#ef4444);
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:0.25s;
}

button[name="remove_money"]:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 20px rgba(239,68,68,0.35);
    background:linear-gradient(90deg,#b91c1c,#dc2626);
}

button[name="remove_money"]:active{
    transform:translateY(0);
    box-shadow:none;
}

/* =========================
   ADD MONEY BTN
========================= */

button[name="add_money"]{
    background:linear-gradient(90deg,#16a34a,#22c55e);
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:0.25s;
}

button[name="add_money"]:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 20px rgba(34,197,94,0.35);
    background:linear-gradient(90deg,#15803d,#16a34a);
}

button[name="add_money"]:active{
    transform:translateY(0);
    box-shadow:none;
}

/* =========================
   REMOVE/ADD SKIN BTNS
========================= */

button[name="remove_skin"]{
    background:linear-gradient(90deg,#dc2626,#ef4444);
    color:white;
    border:none;
    padding:8px 14px;
    border-radius:10px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    width:100%;
    transition:0.25s;
}

button[name="remove_skin"]:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(239,68,68,0.3);
}

button[name="add_skin"]{
    background:linear-gradient(90deg,#2563eb,#3b82f6);
    color:white;
    border:none;
    padding:10px 20px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:0.25s;
}

button[name="add_skin"]:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 20px rgba(59,130,246,0.35);
}