@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;700;900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

:root {
  /* CAMBIO A ROJO TECNOCRAFT */
  --color-primary: #ff0000; 
  --color-primary-dark: #800000;
  --bg-image: url("https://template-assets.tebex.io/images/page-bg.jpg");
  --color-brighter-bg: rgba(20, 20, 20, 0.95); /* Fondos más oscuros y pro */
}

body {
  font-family: 'Lexend', 'Lato', sans-serif;
  background-color: #050505; /* Fondo general más profundo */
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-height: 500px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(139, 0, 0, 0.3), transparent), var(--bg-image) center center/cover no-repeat;
  mask-image: linear-gradient(rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* BOTONES CON GRADIENTE PARA COMBINAR */
.btn-primary {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark)) !important;
  border: none !important;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5) !important;
  transform: translateY(-1px);
}

/* BORDES DEFINIDOS EN TARJETAS */
.site-home-categories .category,
.store-text,
.store-products-list .store-product,
.store-products-images .store-product,
.widget,
.store-product-full {
  border-radius: 8px;
  background: var(--color-brighter-bg);
  border: 1px solid #222;
  transition: border-color 0.3s ease;
}

.site-home-categories .category:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* TITULOS */
.widget-title, .store-text h1, .store-text h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

/* CARRITO Y POPUPS */
.basket-item {
  border-radius: 5px;
  background: rgba(255,255,255,0.02);
  border: 1px solid #333;
}

.quantity-field {
  border-radius: 5px;
  border: 1px solid #444;
}

/* AJUSTE COMUNIDAD/METAS */
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  background-color: var(--color-primary) !important;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

/* LIGHTBOX Y MEDIA */

/* --- RESET Y BARRA USUARIO --- */
.tc-user-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 60px;
    gap: 20px;
}

/* BOTÓN CARRITO CENTRADO */
.tc-btn-cart {
    background: linear-gradient(180deg, #ff0000 0%, #8b0000 100%) !important;
    color: white !important;
    border: none !important;
    height: 45px;
    min-width: 140px;
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    font-weight: 900;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    line-height: 1; /* Evita que el texto flote arriba */
}

/* PERFIL USUARIO */
.tc-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.tc-user-text { display: flex; flex-direction: column; text-align: right; }
.tc-name { color: white; font-weight: 900; font-size: 18px; line-height: 1; }
.tc-logout { color: #ff0000; font-size: 10px; font-weight: 900; margin-top: 4px; }
.tc-avatar-frame { padding: 3px; background: linear-gradient(180deg, #ff0000 0%, #8b0000 100%); border-radius: 5px; }
.tc-avatar-frame img { width: 32px; height: 32px; display: block; border-radius: 3px; }

/* --- FILA PRINCIPAL --- */
.tc-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px 60px 60px;
    max-width: 100%;
}

/* WIDGETS (IP Y DISCORD) */
.tc-side-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-decoration: none;
    color: white;
}

.tc-right { justify-content: flex-end; text-align: right; }

/* EFECTO HOVER PARA IP Y DISCORD */
.tc-side-widget:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
}

.tc-icon-box {
    width: 55px;
    height: 55px;
    background: linear-gradient(180deg, #ff0000 0%, #8b0000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(255,0,0,0.3);
}

.tc-online-count, .tc-online-tag {
    font-size: 9px;
    font-weight: 900;
    position: absolute;
    top: -10px;
    background: #ff0000;
    padding: 2px 6px;
    border-radius: 4px;
}

/* TEXTOS DE LOS WIDGETS */
.tc-info { display: flex; flex-direction: column; }
.tc-primary { color: #ff0000; font-weight: 900; font-size: 1.2rem; line-height: 1.2; }
.tc-secondary { color: white; font-size: 11px; font-weight: 700; opacity: 0.8; }

/* LOGO */
.tc-logo-img {
    width: 500px !important;
    filter: drop-shadow(0 0 25px rgba(255,0,0,0.4));
    animation: pulse 3s infinite ease-in-out;
}

/* TOAST */
#tc-toast {
    visibility: hidden; position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: #ff0000; color: white; padding: 15px 30px; border-radius: 5px; font-weight: 900; z-index: 1000;
}
#tc-toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }








/* Limpieza profunda de los bordes de Tebex */
div[role="dialog"], .modal-content {
    background-color: transparent !important;
    border: 0 !important;
}

.tc-login-card {
    background: #1a1a2e;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8) !important;
    margin: auto;
}

/* El botón verde con el degradado para que combine con el resto */
.tc-btn-continue {
    background: linear-gradient(180deg, #51a361 0%, #3e7d4a 100%) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(81, 163, 97, 0.3);
}

.tc-btn-continue:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}


/* CONTENEDOR GENERAL */
.tc-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: rgba(0,0,0,0.4); /* Fondo para que resalte la tarjeta */
}

.tc-login-card {
    background: #1a1a2e; /* Color oscuro de la imagen */
    width: 100%;
    max-width: 550px;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tc-login-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
}

.tc-login-subtitle {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* INPUT CON AVATAR */
.tc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #252542; /* Fondo del input */
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.tc-input-wrapper:focus-within {
    border-color: #5555ff;
}

.tc-steve-head img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.tc-input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    padding-left: 15px;
    font-size: 16px;
    outline: none;
}

/* BOTÓN VERDE CONTINUAR */
.tc-btn-continue {
    background: #51a361; /* Verde de la imagen */
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    font-weight: 900;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 25px;
}

.tc-btn-continue:hover {
    background: #418a4f;
    transform: translateY(-2px);
}

/* SWITCH DE BEDROCK ESTILO IMAGEN */
.tc-bedrock-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #a0a0a0;
    font-weight: 700;
}

.tc-switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 34px;
}

.tc-switch input { display: none; }

.tc-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #f44336; /* Rojo cuando es NO */
    transition: .4s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-slider-text {
    color: white;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
}

.tc-slider-text.on { display: none; }

input:checked + .tc-slider {
    background-color: #51a361; /* Verde cuando es SÍ */
}

input:checked + .tc-slider .off { display: none; }
input:checked + .tc-slider .on { display: block; }


/* Ajuste para que el popup de Tebex no rompa el diseño */
.tc-login-wrapper[data-popup] {
    padding: 0;
    background: transparent;
}

.tc-login-wrapper[data-popup] .tc-login-card {
    max-width: 100%;
    box-shadow: none; /* Quitamos sombra si ya está dentro de un modal */
}

/* Evitar que el input sea invisible en algunos navegadores */
#usernameInput::placeholder {
    color: rgba(255,255,255,0.4);
}


/* ============================================================
   AJUSTES PARA CELULAR (RESPONSIVE)
   ============================================================ */

@media (max-width: 992px) {
    /* BARRA DE USUARIO: Centramos los botones en móvil */
    .tc-user-bar {
        padding: 15px 20px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .tc-btn-cart {
        min-width: 120px;
        height: 40px;
        font-size: 12px;
    }

    /* FILA PRINCIPAL: De horizontal a vertical */
    .tc-main-row {
        flex-direction: column; /* Esto pone uno abajo del otro */
        padding: 10px 20px 40px 20px;
        gap: 25px;
    }

    /* LOGO: Lo ajustamos para que no desborde */
    .tc-logo-img {
        width: 85vw !important; /* 85% del ancho de la pantalla */
        max-width: 320px !important;
        order: -1; /* El logo sale primero arriba */
        margin-bottom: 10px;
    }

    /* WIDGETS (IP Y DISCORD): Centrados y con ancho completo */
    .tc-side-widget {
        width: 100%;
        justify-content: center !important;
        text-align: center !important;
        flex: none;
    }

    .tc-right {
        flex-direction: row-reverse; /* Mantiene el icono a la derecha en Discord */
    }

    .tc-info {
        align-items: center;
    }

    .tc-primary {
        font-size: 1rem;
    }

    /* LOGIN CARD: Ajuste de padding para pantallas pequeñas */
    .tc-login-card {
        padding: 25px 15px;
        width: 95%;
    }

    .tc-login-title {
        font-size: 18px;
    }
}

/* Ajuste extra para celulares muy pequeños */
@media (max-width: 480px) {
    .tc-user-profile {
        width: 100%;
        justify-content: center;
    }
    
    .tc-user-text {
        text-align: center;
    }

    .tc-logo-img {
        max-width: 260px !important;
    }
}


/* --- WIDGET PAGOS RECIENTES --- */
.tc-recent-payments {
    background: var(--color-brighter-bg) !important;
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    position: relative;
    z-index: 1;
}

.tc-widget-title {
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-widget-title i {
    color: #ff0000;
}

/* GRILLA DE 4 COLUMNAS */
.tc-heads-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 15px 12px; /* Más espacio vertical para que quepan los nombres al hacer hover */
    justify-items: center;
    /* Quitamos el overflow hidden para que el nombre pueda "salir" de la grilla */
}

/* CONTENEDOR DE CADA CABEZA */
.tc-payment-node {
    position: relative;
    cursor: pointer;
    z-index: 2; /* Capa base */
}

.tc-head-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    background: #151515;
    border-radius: 6px;
    border: 2px solid #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-player-head {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
    border-radius: 4px;
}

/* --- EFECTO HOVER PRIORITARIO --- */
.tc-payment-node:hover {
    z-index: 999 !important; /* Esto hace que el nodo actual esté por encima de TODO */
}

.tc-payment-node:hover .tc-head-wrapper {
    transform: scale(1.15) translateY(-5px);
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

/* NOMBRE FLOTANTE (TOOLTIP CUSTOM) */
.tc-tooltip-name {
    position: absolute;
    bottom: -25px; /* Ajustado para que no se aleje tanto */
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease-out;
    box-shadow: 0 4px 15px rgba(0,0,0,1); /* Sombra más fuerte para que resalte */
    z-index: 1000 !important;
}

.tc-payment-node:hover .tc-tooltip-name {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .tc-heads-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .tc-head-wrapper {
        width: 40px;
        height: 40px;
    }
}
/* ============================================================
   AJUSTES PARA MÓVIL (SIDEBAR AL FINAL Y SIN DECORACIÓN)
   ============================================================ */
@media (max-width: 992px) {
    /* 1. Reset del contenedor para fluir hacia abajo */
    .site-content, 
    .container, 
    .main-wrapper,
    .tc-category-page,
    main.store-text { 
        display: flex !important;
        flex-direction: column !important;
        padding: 15px !important;
    }

    /* 2. EL CONTENIDO (PAQUETES) VA PRIMERO */
    .tc-main-packages,
    .store-text, 
    .store-form, 
    #content,
    .main-content {
        order: 1 !important;
        width: 100% !important;
    }

    /* 3. LA SIDEBAR AL FONDO */
    aside#main-sidebar.store-sidebar,
    .tc-sidebar-decorated {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 99 !important; /* La manda al final */
        margin-top: 30px !important;
        padding: 0 !important;
        background: transparent !important; /* Quita el fondo */
        border: none !important; /* Quita los bordes */
        box-shadow: none !important; /* Quita sombras */
    }
}

/* ============================================================
   SIDEBAR MINIMALISTA (PC & MOBILE)
   ============================================================ */
.tc-sidebar-decorated {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.tc-sidebar-decorated .widget {
    background: var(--color-brighter-bg) !important; /* Usa el color base de tu tienda */
    border: 1px solid #222 !important; /* Borde simple y discreto */
    margin-bottom: 20px !important;
    border-radius: 8px !important;
}

.tc-sidebar-decorated .widget-title {
    background: transparent !important;
    color: #fff !important; /* Título blanco normal */
    font-size: 14px !important;
    padding: 10px 0 !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    border-bottom: 1px solid #333;
    margin-bottom: 15px !important;
}

/* Mantenemos solo el fix de las cabezas para que no se rompan */
.tc-heads-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

@media (max-width: 992px) {
    .tc-heads-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}






/* --- FIX CARRITO TECNOCRAFT --- */
.tc-basket-container {
    background: #0f0f0f !important;
    border-radius: 10px;
    border: 1px solid #1a1a1a;
    max-width: 600px;
    margin: 0 auto;
    color: white;
    font-family: 'Inter', sans-serif;
}

/* Header con Avatar */
.tc-player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    gap: 15px;
}

.tc-basket-avatar {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(255,0,0,0.3));
}

.tc-basket-header h3 {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 1px;
    margin: 0;
}

/* Stats */
.tc-basket-stats {
    background: rgba(255,255,255,0.03);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
}

.tc-red-text { color: #ff0000 !important; }

/* Items */
.tc-basket-item {
    padding: 25px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tc-pkg-name { margin: 0; font-size: 18px; font-weight: 800; }

/* --- FIX BOTONES DE CANTIDAD --- */
.tc-quantity-box {
    display: flex !important;
    align-items: center;
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 2px;
    height: 40px; /* Altura fija */
    margin-bottom: 10px;
}

.tc-qty-btn {
    width: 35px !important; /* Ancho fijo para que no se colapse */
    height: 100% !important;
    background: #222 !important;
    border: none !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-qty-btn:hover { background: #ff0000 !important; }

.tc-quantity-box input {
    width: 40px !important;
    background: transparent !important;
    border: none !important;
    color: white !important;
    text-align: center !important;
    font-weight: 800;
    font-size: 16px;
}

/* Eliminar */
.tc-remove-btn {
    display: block;
    text-align: right;
    color: #444;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}

.tc-remove-btn:hover { color: #ff0000; }

/* Footer */
.tc-basket-footer {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tc-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tc-label { color: #666; font-size: 12px; font-weight: 800; }
.tc-grand-total { font-size: 40px; font-weight: 900; line-height: 1; }

.tc-final-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 20px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.tc-final-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,0,0,0.3);
}

/* --- DISEÑO DE PRODUCTO (PACKAGE) --- */
.tc-package-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 15px;
}

.tc-main-card {
    background: #0f0f0f !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 15px !important;
    overflow: hidden;
    padding: 0 !important; /* Manejamos padding interno por secciones */
}

/* Header del Paquete */
.tc-package-header {
    background: linear-gradient(90deg, #151515, #0a0a0a);
    padding: 25px 35px;
    border-bottom: 1px solid #1a1a1a;
}

.tc-package-title {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #fff !important;
    text-transform: uppercase;
    margin: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tc-countdown-badge {
    background: #ff0000;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 5px;
    letter-spacing: 1px;
    animation: pulse-red 2s infinite;
}

/* Layout de Imagen y Botones */
.tc-package-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 0;
    border-bottom: 1px solid #1a1a1a;
}

.tc-package-visuals {
    padding: 30px;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tc-image-wrapper {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tc-main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Caja de Compra */
.tc-package-buy-box {
    background: #111;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #1a1a1a;
}

.tc-buy-content .tc-label {
    display: block;
    color: #666;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tc-secure-info {
    margin-top: 20px;
    font-size: 12px;
    color: #444;
    font-weight: 700;
}

.tc-secure-info i { color: #2ecc71; }

/* Descripción */
.tc-description-section {
    padding: 40px 35px;
    background: #0f0f0f;
}

.tc-desc-title {
    font-size: 18px;
    color: #ff0000;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #ff0000;
    display: inline-block;
    padding-bottom: 5px;
}

.tc-desc-body {
    color: #bbb;
    line-height: 1.8;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 900px) {
    .tc-package-layout {
        grid-template-columns: 1fr;
    }
    .tc-package-buy-box {
        border-left: none;
        border-top: 1px solid #1a1a1a;
        text-align: center;
    }
    .tc-package-title {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* --- ESTILOS DE LA PÁGINA DE OPCIONES --- */
.tc-options-page {
    padding: 40px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.tc-options-container {
    background: #0f0f0f !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 15px;
    overflow: hidden;
}

.tc-options-header {
    background: #151515;
    padding: 30px;
    border-bottom: 1px solid #222;
    text-align: center;
}

.tc-options-header h2 {
    color: #ff0000 !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    font-size: 22px !important;
    margin-bottom: 10px !important;
}

.tc-subtitle { color: #666; font-size: 14px; }

/* Campos del Formulario */
.tc-form { padding: 30px; }

.tc-field {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.tc-field label {
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 15px;
}

.tc-field-desc { color: #555; font-size: 12px; margin-bottom: 10px; }

.tc-input {
    background: #000 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    font-size: 14px;
}

.tc-input:focus { border-color: #ff0000 !important; outline: none; }

/* Caja de Discord */
.tc-discord-box {
    background: #5865F220;
    border: 1px solid #5865F2;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.tc-discord-icon { font-size: 30px; color: #5865F2; }

/* Botones */
.tc-options-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.tc-btn-primary {
    background: #ff0000 !important;
    color: white !important;
    padding: 15px !important;
    border-radius: 8px !important;
    font-weight: 900 !important;
    border: none !important;
    cursor: pointer;
    text-transform: uppercase;
}

.tc-btn-discord {
    background: #5865F2 !important;
    color: white !important;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
}

.tc-btn-secondary {
    background: #222 !important;
    color: #888 !important;
    padding: 10px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
}

.tc-btn-link {
    color: #555;
    text-align: center;
    font-size: 12px;
    text-decoration: underline;
}


/* --- GRID DE INICIO TECNOCRAFT --- */
.tc-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px 0;
}

/* El contenedor que recorta la imagen */
.tc-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* TU TAMAÑO DE 20 */
    overflow: hidden; /* ESTO evita que se vea estirada al escalar */
    background: #000;
}

/* --- GRID DE CATEGORÍAS --- */
.tc-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tc-category-card {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* MARCO DE LA IMAGEN (EL "20") */
.tc-category-img-container {
    position: relative;
    width: 100% !important;
    height: 200px !important; /* TU TAMAÑO DE 20 */
    overflow: hidden !important;
    background: #000;
}

.tc-category-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* MANTIENE PROPORCIÓN SIN ESTIRAR */
    object-position: center !important; /* CENTRADO TOTAL */
    display: block !important;
    transition: 0.5s ease;
}

/* EFECTO HOVER */
.tc-category-card:hover {
    transform: translateY(-5px);
    border-color: #ff0000;
}

.tc-category-card:hover .tc-category-img {
    transform: scale(1.1);
    filter: blur(2px);
}

.tc-category-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    z-index: 2;
}

.tc-category-card:hover .tc-category-overlay {
    opacity: 1;
}

.tc-category-overlay span {
    color: white;
    font-weight: 900;
    font-size: 14px;
    border: 2px solid white;
    padding: 8px 15px;
}

/* INFO DE ABAJO */
.tc-category-info {
    padding: 15px;
    text-align: center;
    background: #111;
    border-top: 1px solid #1a1a1a;
}

.tc-category-name {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
}

/* BIENVENIDA */
.tc-welcome-box {
    background: #0f0f0f !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 12px;
    padding: 30px !important;
}

.tc-welcome-header {
    font-size: 12px;
    font-weight: 900;
    color: #ff0000;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* Caja de Bienvenida */
.tc-welcome-box {
    background: #0f0f0f !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 12px;
    padding: 30px !important;
}

.tc-welcome-header {
    font-size: 12px;
    font-weight: 900;
    color: #ff0000;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-welcome-text {
    color: #bbb;
    line-height: 1.6;
}
/* --- WIDGET SERVER STATUS --- */
.tc-status-widget {
    background: #0f0f0f !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 12px;
    padding: 20px !important;
    margin-bottom: 20px;
}

.tc-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tc-status-header .widget-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-transform: uppercase;
    margin: 0 !important;
}

/* Badges */
.tc-badge {
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.tc-badge.online { background: rgba(0, 255, 100, 0.1); color: #00ff64; border: 1px solid #00ff64; }
.tc-badge.offline { background: rgba(255, 0, 0, 0.1); color: #ff0000; border: 1px solid #ff0000; }

/* Caja de IP */
.tc-ip-box {
    background: #000;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 15px;
}

.tc-ip-box:hover {
    border-color: #ff0000;
    background: #050505;
}

.tc-ip-text {
    color: #eee;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 13px;
}

.tc-copy-icon { color: #555; font-size: 12px; }
.tc-ip-box:hover .tc-copy-icon { color: #ff0000; }

/* Barra de Jugadores */
.tc-progress-bar {
    background: #1a1a1a;
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tc-progress-fill {
    background: #ff0000;
    height: 100%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    transition: width 1s ease-in-out;
}

.tc-player-text {
    font-size: 12px;
    color: #888;
    margin: 0;
    text-align: center;
}

.tc-player-text strong { color: #fff; font-size: 14px; }
.tc-slash { color: #ff0000; margin: 0 2px; }


/* --- WIDGET TOP DONATOR TECNOCRAFT --- */
.tc-donator-widget {
    background: #0f0f0f !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 12px;
    padding: 20px !important;
    text-align: center;
    overflow: hidden;
}

/* Avatar con efecto de luz */
.tc-donator-avatar-wrapper {
    position: relative;
    width: 80px;
    margin: 10px auto 15px;
}

.tc-donator-avatar {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.4));
    transition: 0.3s;
}

.tc-donator-widget:hover .tc-donator-avatar {
    transform: scale(1.1) rotate(5deg);
}

.tc-rank-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Nombre y Texto */
.tc-donator-name {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    margin-bottom: 5px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tc-donator-info p {
    color: #888;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.tc-amount {
    color: #00ff64; /* Verde para dinero, o cambia a #ff0000 si prefieres rojo */
    font-weight: bold;
    display: block;
    font-size: 14px;
    margin-top: 2px;
}

.tc-period {
    font-style: italic;
    opacity: 0.7;
}

/* Estado vacío */
.tc-empty-msg {
    padding: 20px;
    color: #444;
}

.tc-empty-msg i {
    font-size: 30px;
    margin-bottom: 10px;
}





















