
/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
        width: 100%;
    max-width: 100%;
    overflow-x: hidden;;    
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Body general */
body {
    background: #f5f7fb;
    color: #111827;
}

/* ===== LAYOUT LOGUEADO (tipo dashboard) ===== */

.cp-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar izquierda */
.cp-sidebar {
    width: 220px;
    background: #ffffff;                /* fondo blanco */
    border-right: 1px solid #e5e7eb;    /* borde gris suave */
    display: flex;
    flex-direction: column;
    padding: 1rem 0.9rem 1rem;
}


.cp-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
}

.cp-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fef9c3, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(248, 113, 22, 0.35);
}

.cp-logo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #111827;
}
.cp-logo-text-footer {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fafbfc;
}
.cp-sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 0.5rem 0.4rem 0.3rem;
}

/* Botones del menú estilo CoinPayU */
.cp-sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.3rem;
}

.cp-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.9rem;
    background: #ffffff;
    text-decoration: none;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(15,23,42,0.06);
    transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.06s;
}

.cp-sidebar-nav a:hover {
    background: #fffbeb;
    box-shadow: 0 3px 6px rgba(251,191,36,0.25);
    transform: translateY(-1px);
}

.cp-sidebar-nav a.active {
    background: #fb923c; /* naranja activo */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(251,146,60,0.6);
}

/* iconito circular */
.side-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #f3f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #4b5563;
}

.cp-sidebar-nav a.active .side-icon {
    background: rgba(0,0,0,0.12);
    color: #ffffff;
}

.side-label {
    white-space: nowrap;
}
.cp-sidebar-time {
    margin-top: auto;
    padding-top: 0.7rem;
    font-size: 0.78rem;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cp-sidebar-time-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


.cp-sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}


.cp-sidebar-nav a span.cp-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #d1d5db;
}

.cp-sidebar-nav a:hover {
    background: #f3f4ff;
    color: #111827;
}

.cp-sidebar-nav a.active {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.cp-sidebar-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: #9ca3af;
    padding: 0.4rem 0.4rem 0;
}

/* Area derecha: topbar + contenido */
.cp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}







/* Botón hamburguesa para móvil */
.cp-menu-toggle {
    display: none;
    margin-right: 0.6rem;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Top bar tipo “Good evening…” */
.cp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.cp-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cp-topbar-avatar-large {
    width: 40px;
    height: 40px;
}

.cp-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.cp-brand-logo {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}
.cp-brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.cp-topbar-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}




.cp-topbar-greet {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}







.cp-topbar-level {
    color: #f97316;
    font-weight: 600;
}

.cp-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.cp-pill {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b33;
    font-size: 0.78rem;
}

.cp-balance-pill {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #ecfeff;
    color: #0369a1;
    border: 1px solid #0ea5e933;
    font-size: 0.78rem;
}

/* Contenido */
.cp-content {
    flex: 1;
    padding: 1.25rem 1.5rem 1.5rem;
}

/* Cards tipo CoinPayU */
.cp-card {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.cp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cp-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.cp-card-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Grid principal del dashboard */
.cp-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.cp-grid-2 > div {
    min-width: 0; /* evita que el contenido fuerce más ancho de la cuenta */
}

@media (max-width: 900px) {
    .cp-layout {
        /* Sidebar en overlay, no en fila arriba */
        flex-direction: column;
    }

@media (max-width: 640px) {
    /* Centrar un poco más las pills respecto al texto */
    .cp-balance-group {
        margin-top: 0.1rem;
    }

    /* Reducir ligeramente el tamaño de las pills para que haya más aire */
    .cp-balance-pill {
        transform: scale(0.95);
    }
}


    /* Sidebar escondido por defecto */
    .cp-sidebar {
        position: fixed;
        top: 0;
        left: -240px;
        bottom: 0;
        width: 220px;
        z-index: 100;
        box-shadow: 8px 0 20px rgba(15,23,42,0.25);
        transition: left 0.2s ease;
    }

    /* Cuando el body tiene la clase cp-sidebar-open, mostramos el menú */
    body.cp-sidebar-open .cp-sidebar {
        left: 0;
    }

    /* Overlay oscuro detrás del menú */
    body.cp-sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        z-index: 90;
    }

    .cp-main {
        min-height: 100vh;
    }

    .cp-content {
        padding: 1rem;
    }

    .cp-grid-2 {
        grid-template-columns: 1fr;
    }

    /* Mostrar botón hamburguesa solo en móvil */
    .cp-menu-toggle {
        display: inline-flex;
    }
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.06s ease, box-shadow 0.08s ease, opacity 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(249,115,22,0.35);
    opacity: 0.97;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Mensajes */
.alert {
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Tablas */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.table th,
.table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
}

/* Formularios “sueltos” (login/registro) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
}

.auth-card {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.3rem 1.4rem;
    width: 100%;
    max-width: 420px;
}
/* ===== Estilo extra para Shortlinks tipo CoinPayU ===== */

.sl-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sl-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
}

.sl-pill span.sl-icon {
    font-size: 0.85rem;
}

.sl-pill-green {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #15803d;
}

.sl-pill-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.sl-pill-amber {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

/* fila nombre + icono */
.sl-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sl-name-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.sl-badge-reward {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: #ecfeff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}
/* ===== FOOTER TIPO COINPAYU ===== */

.cp-footer {
    margin-top: 2rem;
    background: #2b241f;
    color: #e5e7eb;
    padding: 1.7rem 1.8rem;
    font-size: 0.8rem;
}

.cp-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .cp-footer-inner {
        grid-template-columns: 1fr 1fr;
        row-gap: 1.2rem;
    }
}

@media (max-width: 600px) {
    .cp-footer-inner {
        grid-template-columns: 1fr;
    }
}

.cp-footer-logo {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.cp-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cp-footer-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-weight: 800;
    font-size: 0.9rem;
}

.cp-footer-logo-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.cp-footer-socials {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.cp-footer-social {
    width: 30px;
    height: 30px;
    border-radius: 0.5rem;
    background: #3f342b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    color: #e5e7eb;
}

.cp-footer-theme-btn {
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #4b423a;
    background: #3f342b;
    font-size: 0.78rem;
    cursor: pointer;
}

.cp-footer-col-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.cp-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cp-footer-links li {
    margin-bottom: 0.25rem;
}

.cp-footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.8rem;
}

.cp-footer-links a:hover {
    text-decoration: underline;
}

.cp-footer-bottom {
    margin-top: 1.2rem;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: left;
}

.cp-footer-store {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cp-footer-store-badge {
    margin-top: 0.4rem;
    width: 140px;
    height: 42px;
    border-radius: 0.6rem;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #f9fafb;
}
/* ===== WITHDRAW ===== */

.wd-tabs {
    display: inline-flex;
    border-radius: 999px;
    background: #f3f4f6;
    padding: 0.15rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.wd-tab {
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    color: #6b7280;
}

.wd-tab.active {
    background: #ffffff;
    box-shadow: 0 3px 6px rgba(15,23,42,0.08);
    color: #f97316;
    font-weight: 600;
}

.wd-methods-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.wd-card {
    width: 110px;
    height: 130px;
    border-radius: 0.9rem;
    padding: 0.6rem 0.6rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    font-size: 0.8rem;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.wd-card-label {
    font-size: 0.78rem;
    opacity: 0.85;
}

.wd-card-icon {
    font-size: 1.8rem;
    text-align: center;
    margin-top: 0.4rem;
}

.wd-card-name {
    font-weight: 600;
    text-align: left;
}

.wd-card.disabled {
    opacity: 0.45;
    filter: grayscale(0.3);
}

.wd-card.disabled::after {
    content: "Pronto";
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 0.7rem;
    background: rgba(17,24,39,0.25);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

/* Colores de cada método */
.wd-tipalti { background: linear-gradient(135deg, #0f172a, #0b3a6d); }
.wd-paypal  { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.wd-btc     { background: linear-gradient(135deg, #f97316, #ea580c); }
.wd-ltc     { background: linear-gradient(135deg, #4b5563, #6b7280); }
.wd-doge    { background: linear-gradient(135deg, #facc15, #eab308); color:#1f2933; }
.wd-fp      { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.wd-sol     { background: linear-gradient(135deg, #c4b5fd, #a855f7); }
.wd-bnb     { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.wd-info-text {
    font-size: 0.84rem;
    color: #6b7280;
    margin-bottom: 0.6rem;
}

/* Formulario FaucetPay */
.wd-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 360px;
}

.wd-form label {
    font-size: 0.8rem;
    color: #6b7280;
}

.wd-form input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

.wd-form input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 1px #fed7aa;
}

@media (max-width: 640px) {
    .wd-methods-row {
        justify-content: center;
    }
}
/* ===== FORMULARIO DE RETIRO TIPO COINPAYU ===== */

.wd-form-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

.wd-field {
    margin-bottom: 0.75rem;
}

.wd-label {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 0.2rem;
    display: block;
}

.wd-input,
.wd-select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 0.45rem;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
    background: #ffffff;
}

.wd-input:focus,
.wd-select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 1px #fed7aa;
}

/* Toggle username / address */
.wd-method-toggle {
    display: inline-flex;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.wd-method-option {
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.wd-method-option input {
    accent-color: #f97316;
}

.wd-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}
/* ===== PROFILE PAGE ===== */

.profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}

.profile-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    background: #f9fafb;
    border-radius: 0.6rem 0.6rem 0 0;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.3rem;
    font-size: 0.84rem;
}

.profile-table td {
    padding: 0.45rem 0.2rem;
    vertical-align: middle;
}

.profile-label {
    color: #6b7280;
    width: 35%;
}

.profile-value {
    color: #111827;
}

.profile-muted {
    color: #9ca3af;
}

/* Pequeño pill de info */
.info-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    margin-left: 0.3rem;
}

/* Toggle (solo visual por ahora) */
.toggle-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    border-radius: 999px;
    background: #f3f4f6;
    padding: 0.1rem;
}

.toggle-pill span {
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
}

.toggle-pill .on {
    background: #22c55e;
    color: #ffffff;
}

.toggle-pill .off {
    color: #6b7280;
}

/* Botón eliminar (decorativo) */
.btn-danger-outline {
    display: inline-block;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #f97316;
    color: #f97316;
    background: #fff7ed;
    font-size: 0.82rem;
    cursor: pointer;
}
.btn-danger-outline:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
}
.profile-delete-wrap {
    margin-top: 1.2rem;
    text-align: center;
}
/* ===== TOPBAR USER MODERNO ===== */

.cp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.cp-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cp-topbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cp-topbar-text {
    display: flex;
    flex-direction: column;
}

.cp-topbar-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.cp-topbar-sub {
    font-size: 0.8rem;
    color: #9ca3af;
}

.cp-balance-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cp-balance-usdt {
    background: #fef3c7;
    color: #92400e;
}

.cp-balance-pill {
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: #ecfeff;
    color: #0369a1;
}

.cp-balance-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
}
.cp-balance-icon.tether {
    background: radial-gradient(circle at 30% 30%, #a5f3fc, #0f766e);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.5);
}
.cp-balance-icon.tether::before {
    content: "₮";
}

/* Variar color del fondo de la pill según el tipo */
.cp-balance-coins {
    background: #fffbeb;
    color: #92400e;
}

.cp-balance-usdt {
    background: #ecfdf5;
    color: #047857;
}



.cp-balance-icon.coin {
    background: radial-gradient(circle at 30% 30%, #fef9c3, #f97316);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.5);
}

.cp-balance-icon.coin::before {
    content: "C";
}




.cp-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.6rem 0.18rem 0.3rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
}

.cp-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cp-balance-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cp-topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.cp-topbar-avatar,
.cp-topbar-avatar-large {
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}
.cp-topbar-avatar img,
.cp-topbar-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cp-topbar-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
}

/* Ajuste en móvil: avatar debajo de pills si hace falta */
@media (max-width: 640px) {
    .cp-topbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .cp-topbar-left {
        flex: 1 1 100%;
    }
    .cp-topbar-right {
        justify-content: flex-end;
        flex: 1 1 100%;
    }
}
/* Avatar grande en perfil con botón de cámara */

.profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.profile-avatar-btn {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.profile-avatar-btn input[type="file"] {
    display: none;
}

.profile-avatar-circle {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    overflow: hidden;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.profile-avatar-edit {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #e5e7eb;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(15,23,42,0.25);
    color: #4b5563;
}

/* ===== Dashboard responsive ===== */
@media (max-width: 768px) {
    .cp-grid-2 {
        grid-template-columns: 1fr;   /* UNA sola columna en móvil */
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .cp-grid-2 > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .cp-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        box-sizing: border-box;
    }
}



/* ===== FIX RESPONSIVE DASHBOARD EN MÓVIL ===== */
@media (max-width: 768px) {
    /* El área principal nunca debe ser más ancha que la pantalla */
    .cp-main,
    .cp-content {
        width: 100%;
        max-width: 100%;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
        box-sizing: border-box;
    }

    /* Cualquier fila / grid del dashboard */
    .cp-dashboard-row,
    .cp-dashboard-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* TODAS las tarjetas: ancho completo, sin salirse */
    .cp-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0;           /* sin desplazamientos raros */
        margin-right: 0;
        box-sizing: border-box;
    }

    /* Por si alguna card tenía un ancho fijo en px, lo anulamos */
    .cp-card[style*="width"],
    .cp-card[style*="max-width"] {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===== STREAK / PROGRESO DIARIO ===== */

/* Contenedor que puede hacer scroll horizontal si no cabe */
.cp-streak-scroll {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.cp-streak-scroll::-webkit-scrollbar {
    height: 4px;
}
.cp-streak-scroll::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 999px;
}

/* Que los "D1, D2..." y los chips de Hoy / Pendiente no tengan min-width gigante */
.cp-streak-day,
.cp-streak-status {
    white-space: nowrap;
    flex: 0 0 auto;
}
/* ===== SHORTLINKS ESCRITORIO: USAMOS .table NORMAL ===== */
/* No tocamos nada aquí, solo extendemos en móvil */


/* ===== SHORTLINKS MÓVIL: PANEL MODERNO ===== */
@media (max-width: 640px) {

    .table-shortlinks {
        border: 0;
        width: 100%;
        background: transparent;
    }

    .table-shortlinks thead {
        display: none; /* ocultamos cabecera */
    }

    .table-shortlinks,
    .table-shortlinks tbody,
    .table-shortlinks tr,
    .table-shortlinks td {
        display: block;
        width: 100%;
    }

    /* Cada fila se convierte en un panel como en la imagen */
    .table-shortlinks tr {
        margin-bottom: 0.8rem;
        padding: 0.9rem 1rem;
        border-radius: 1rem;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    }

    .table-shortlinks td {
        border: 0 !important;
        padding: 0.15rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.82rem;
    }

    /* Primera fila (Nombre) un poco más destacada, con línea inferior */
    .table-shortlinks td:nth-child(1) {
        padding-bottom: 0.4rem;
        margin-bottom: 0.25rem;
        border-bottom: 1px dashed #e5e7eb;
    }

    .table-shortlinks td:nth-child(1)::before {
        content: "Nombre";
        font-weight: 600;
        color: #6b7280;
        margin-right: 0.5rem;
    }

    .table-shortlinks td:nth-child(2)::before {
        content: "Recompensa";
        font-weight: 600;
        color: #6b7280;
        margin-right: 0.5rem;
    }

    .table-shortlinks td:nth-child(3)::before {
        content: "Usados hoy";
        font-weight: 600;
        color: #6b7280;
        margin-right: 0.5rem;
    }

    .table-shortlinks td:nth-child(4)::before {
        content: "Límite/día";
        font-weight: 600;
        color: #6b7280;
        margin-right: 0.5rem;
    }

    .table-shortlinks td:nth-child(5)::before {
        content: "Acción";
        font-weight: 600;
        color: #6b7280;
        margin-right: 0.5rem;
    }

    /* Valores alineados a la derecha, más limpios */
    .table-shortlinks td span,
    .table-shortlinks td a,
    .table-shortlinks td {
        text-align: right;
    }

    /* Botón "Visitar" estilo pill como en la captura */
    .table-shortlinks td:nth-child(5) {
        justify-content: space-between;
    }

    .table-shortlinks td:nth-child(5) .btn-secondary {
        padding: 0.25rem 0.9rem;
        border-radius: 999px;
        font-size: 0.8rem;
        border: 1px solid #e5e7eb;
        background: #f3f4f6;
        color: #111827;
        box-shadow: 0 2px 4px rgba(148, 163, 184, 0.35);
    }
}
/* ===== Ajuste de ancho en faucet ===== */

/* Caja de "You will receive" más estrecha (40%) y centrada */
.faucet-reward-box {
    width: 40%;
    max-width: 420px;
    min-width: 260px;
    margin: 1.5rem auto 0.75rem auto;
    text-align: center;
}

/* Botón CLAIM NOW al 45% y centrado */
.faucet-claim-btn {
    display: block;
    width: 45%;
    max-width: 480px;
    min-width: 260px;
    margin: 1.5rem auto 0 auto;
}

/* En pantallas pequeñas (móvil) que ocupen casi todo el ancho */
@media (max-width: 640px) {
    .faucet-reward-box {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .faucet-claim-btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* ===== Contador regresivo ===== */
.faucet-cooldown-text {
    margin-top: 0.8rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.faucet-countdown {
    margin: 0.8rem auto 1rem auto;
    padding: 0.6rem 1.4rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    display: inline-flex;
    gap: 1.8rem;
    align-items: center;
    justify-content: center;
}

.faucet-count-box {
    text-align: center;
    min-width: 60px;
}

.faucet-count-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: #111827;
}

.faucet-count-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.faucet-countdown-ready {
    opacity: 0.5;
}

/* ===== Tabla de premios estilo Freebitco.in ===== */
.faucet-payout-table-wrap {
    margin: 1.3rem auto 0.5rem auto;
    max-width: 520px;
}

.faucet-payout-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.faucet-payout-table thead th {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 0.6rem 0.8rem;
    text-align: center;
    font-weight: 600;
}

.faucet-payout-table td {
    padding: 0.55rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.faucet-payout-table tr:nth-child(odd) td {
    background: #ffffff;
}

.faucet-payout-table tr:nth-child(even) td {
    background: #f9fafb;
}

.faucet-payout-table tr:last-child td {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 640px) {
    .faucet-countdown {
        width: 100%;
    }
    .faucet-payout-table-wrap {
        padding: 0 0.4rem;
    }
}

.alert-success-big {
    border: none;
    background: #e0ffe9;
    padding: 1rem 1.4rem;
    margin: 0 0 1rem 0;
    border-radius: 999px;        /* estilo pill grande */
}

.alert-success-inner {
    display: flex;
    align-items: center;
    justify-content: center;     /* centra horizontalmente el texto */
    gap: 0.6rem;
    text-align: center;
}

.alert-success-icon {
    font-size: 1.4rem;
}

.alert-success-text {
    font-weight: 600;
    color: #15803d;              /* verde bonito */
}

.alert-success-logo {
    width: 26px;   /* juega con estos tamaños */
    height: 26px;
    border-radius: 50%;
    display: block;
}


/* ERROR (rojo) – mismo formato que el verde
------------------------------------------- */
.alert-error-big {
    border: none;
    background: #ffe5e5;
    padding: 0.9rem 1.4rem;
    margin: 0 0 1rem 0;
    border-radius: 999px;
}

.alert-error-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
}

.alert-error-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: block;
    /* si quieres que el logo en error salga en escala de grises, por ejemplo: */
    /* filter: grayscale(100%); */
}

.alert-error-text {
    font-weight: 600;
    color: #b91c1c;
}


.cp-card > .alert-success-big,
.cp-card > .alert-error-big {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}


.cp-logo-icon-badge {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
    line-height: 26px;
}


