/* ============== TOKENS ============== */
:root {
    --bg: #ffffff;
    --bg-soft: #f7f8f9;
    --bg-soft-2: #f2f4f5;
    --text: #191919;
    --text-muted: #6b6e72;
    --text-soft: #8e9093;
    --border: #e6e7e9;
    --border-soft: #eef0f1;
    --robux: #e0a93c;
    --robux-soft: #f5cf6b;
    --robux-blue: #1e96ff;
    --primary: #335fff;
    --primary-hover: #2852e0;
    --pill-dark: #2b2d31;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --header-h: 60px;
    --tabbar-h: 48px;
}

/* ============== RESET ============== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
html, body {
    height: 100%;
}
body {
    font-family: "Nunito", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font: inherit;
    font-family: inherit;
}
input {
    font: inherit;
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}
a {
    color: inherit;
    text-decoration: none;
}
svg { display: block; }

/* ============== ROBUX ICON (uses user-provided Robux.webp) ============== */
.robux-hex, .robux-hex-small, .robux-hex-dark, .robux-hex-blue {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url("recursos/Robux.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    vertical-align: middle;
}
.robux-hex-small {
    width: 16px;
    height: 16px;
}
.robux-hex-dark {
    width: 28px;
    height: 28px;
}
.robux-hex-blue {
    /* same as default — alias kept for legacy markup */
}

/* ============== HEADER ============== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--header-h);
    padding: 0 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}
.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text);
    transition: background 0.15s;
}
.icon-btn:hover, .icon-btn:focus-visible {
    background: var(--bg-soft);
}
.icon-btn:active {
    background: var(--bg-soft-2);
}
.roblox-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.roblox-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}
.robux-nav-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}
.header-search {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-soft);
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: border-color 0.15s, background 0.15s;
}
.header-search:focus-within {
    background: var(--bg);
    border-color: #c8c9cb;
}
.header-search input {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: var(--text);
}
.header-search input::placeholder {
    color: var(--text-soft);
}
.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 2px 12px 2px 2px;
    border-radius: 999px;
    transition: background 0.15s;
}
.profile-chip:hover { background: var(--bg-soft); }
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, #8a8a8a 0%, #5e5e5e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 2px solid #6e6e6e;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.avatar-face {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avatar-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
}
.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.robux-btn { color: var(--text); }
@media (max-width: 540px) {
    .profile-name { display: none; }
    .profile-chip { padding-right: 0; }
    .header-search {
        flex: 0 0 40px;
        width: 40px;
        padding: 0;
        justify-content: center;
        background: transparent;
        border: none;
    }
    .header-search input { display: none; }
    .header-search .search-icon { margin: 0; }
}

/* ============== SETTINGS DROPDOWN (navbar gear) ============== */
.settings-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.settings-btn[aria-expanded="true"] {
    background: var(--bg-soft-2);
}
.settings-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 60;
    animation: dropdownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
    padding: 4px;
}
.settings-dropdown[hidden] { display: none; }
.settings-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    border-radius: 6px;
    transition: background 0.12s;
}
.settings-item:hover {
    background: var(--bg-soft);
}
.settings-item:active {
    background: var(--bg-soft-2);
}

/* ============== ROBUX DROPDOWN (navbar) ============== */
.robux-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.robux-btn[aria-expanded="true"] {
    background: var(--bg-soft-2);
}
.robux-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 60;
    animation: dropdownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}
.robux-dropdown[hidden] { display: none; }
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.robux-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-soft);
}
.robux-dropdown-balance {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.2px;
}
.robux-dropdown-list {
    list-style: none;
    padding: 6px 0;
}
.robux-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: background 0.12s;
}
.robux-dropdown-item:hover {
    background: var(--bg-soft);
}
.robux-dropdown-item:active {
    background: var(--bg-soft-2);
}

/* ============== TAB BAR ============== */
.tab-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    display: flex;
    height: var(--tabbar-h);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0 8px;
}
.tab {
    flex: 1;
    height: 100%;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    transition: color 0.15s;
    white-space: nowrap;
}
.tab.active {
    color: var(--text);
    font-weight: 800;
}
.tab.active::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 0;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
}
.tab:not(.active):hover { color: var(--text); }

/* ============== MAIN ============== */
.app-main {
    max-width: 540px;
    margin: 0 auto;
    padding: 0 16px 40px;
}
.section {
    display: none;
    padding-top: 20px;
    animation: fadeIn 0.25s ease;
}
.section-active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.section-title {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 18px;
}

/* ============== PILLS ============== */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: filter 0.15s, transform 0.05s;
    white-space: nowrap;
}
.pill:active { transform: scale(0.97); }
.pill-dark {
    background: var(--pill-dark);
    color: #fff;
}
.pill-light {
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
}

/* ============== DESTACADAS ============== */
.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.subsection {
    margin-bottom: 32px;
}
.subsection-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.subsection-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
    flex: 1;
    min-width: 0;
}
.subsection-title .arrow {
    font-weight: 600;
    color: var(--text);
    margin-left: 2px;
}
.subsection-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: -8px 0 14px;
}
.info-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
}
.info-btn:hover { background: var(--bg-soft); color: var(--text); }

.carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 4px 16px 8px;
}
.carousel::-webkit-scrollbar { display: none; }

.game-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}
.game-thumb {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    background: var(--bg-soft-2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.game-stats {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
}
.stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.stat svg { color: var(--text-soft); }

/* ============== MERCADO ============== */
.mercado-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.mercado-head .section-title { margin-bottom: 0; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s, transform 0.05s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-light {
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid transparent;
}
.btn-light:hover { background: var(--bg-soft-2); }
.mercado-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.filter-icon-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text);
    flex-shrink: 0;
}
.filter-icon-btn:hover { background: var(--bg-soft); }
.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px;
    background: var(--bg-soft);
    border-radius: 8px;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: border-color 0.15s, background 0.15s;
}
.search-box:focus-within {
    background: var(--bg);
    border-color: #c8c9cb;
}
.search-box input {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: var(--text);
}
.category-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px 20px;
    padding: 0 16px;
}
.category-pills::-webkit-scrollbar { display: none; }
.mercado-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.item-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}
.item-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    background: var(--bg-soft-2);
    position: relative;
    overflow: hidden;
}
.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lock-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 26px;
    height: 26px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
.item-creator {
    font-size: 12px;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.creator-name {
    color: var(--text-muted);
    font-weight: 500;
}
.verified { color: var(--primary); flex-shrink: 0; }
.item-price {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.item-price-robux {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    font-weight: 600;
}

/* ============== CREAR ============== */
.crear-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 8px;
}
.crear-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
    border-radius: var(--radius-lg);
    color: #fff;
    min-height: 150px;
    transition: transform 0.15s;
    position: relative;
    overflow: hidden;
}
.crear-tile:active { transform: scale(0.98); }
.crear-tile-blue { background: linear-gradient(135deg, #1e96ff 0%, #0066cc 100%); }
.crear-tile-green { background: linear-gradient(135deg, #00c476 0%, #00874d 100%); }
.crear-tile-purple { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); }
.crear-tile-orange { background: linear-gradient(135deg, #ff8c42 0%, #ff5722 100%); }
.crear-tile-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.crear-tile h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}
.crear-tile p {
    font-size: 13px;
    opacity: 0.9;
}

/* ============== ROBUX ============== */
.balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 10px 0 6px;
}
.balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.balance .robux-hex { width: 24px; height: 24px; }
.balance-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}
#openSendModal {
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    gap: 6px;
}
.bonus-hero {
    position: relative;
    margin: 0 -16px 16px;
    padding: 8px 16px 12px;
    overflow: hidden;
    text-align: left;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.9;
}
.bonus-headline {
    position: relative;
    z-index: 1;
    font-size: clamp(26px, 6.8vw, 36px);
    font-weight: 800;
    line-height: 1.08;
    color: var(--text);
    letter-spacing: -0.6px;
    margin: 0;
    max-width: none;
}

.robux-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.robux-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
    line-height: 1.25;
}
.robux-days-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #2b2b2b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.robux-product-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.robux-packages-panel {
    background: #fff;
    border: 1px solid #d6d8dc;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}
.robux-packages-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.robux-package-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 12px;
    background: #fff;
    border-bottom: 1px solid #e7e9ec;
}
.robux-package-row:last-child {
    border-bottom: none;
}
.robux-package-amounts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.robux-package-amounts .robux-hex {
    width: 22px;
    height: 22px;
}
.robux-package-amounts .amount {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}
.robux-package-amounts .amount-old {
    font-size: 14px;
    color: var(--text-soft);
    text-decoration: line-through;
    font-weight: 600;
}
.robux-package-row.for-you {
    background: #f4faff;
}
.robux-product-card {
    background: #eceef1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dfe1e5;
}
.robux-product-card--featured {
    margin-bottom: 24px;
}
.robux-product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 20px 16px 8px;
    background: #f7f8f9;
}
.robux-product-visual img {
    width: min(180px, 58vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.1));
}
.robux-product-meta {
    padding: 10px 14px 12px;
    background: #eceef1;
}
.robux-product-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}
.robux-product-creator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.verified-badge-inline {
    color: #00a2ff;
}
.robux-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    background: #d5d8dd;
}
.robux-product-amounts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.robux-product-amounts .robux-hex {
    width: 22px;
    height: 22px;
}
.robux-product-amounts .amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}
.robux-product-amounts .amount-old {
    font-size: 14px;
    color: var(--text-soft);
    text-decoration: line-through;
    font-weight: 600;
}
.bonus-more-pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.btn-price-compact {
    flex-shrink: 0;
    min-width: 108px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.robux-product-card.for-you .robux-product-footer {
    background: #d2e8f8;
}

.robux-packages {
    list-style: none;
    margin-bottom: 24px;
}
.package-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    gap: 12px;
}
.package-row:last-child { border-bottom: none; }
.package-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}
.amount {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.2px;
}
.amount-old {
    font-size: 15px;
    color: var(--text-soft);
    text-decoration: line-through;
    font-weight: 600;
}
.popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 10px;
    background: var(--bg-soft-2);
    color: var(--text);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.popular-badge svg { color: #ff6b35; }
.for-you-badge svg { color: #1e96ff; }
.popular {
    position: relative;
}
.popular .btn-primary {
    box-shadow: 0 4px 12px rgba(0, 162, 255, 0.3);
}
.for-you .btn-primary {
    box-shadow: 0 4px 12px rgba(0, 162, 255, 0.3);
}
.btn-price {
    min-width: 130px;
    height: 44px;
}
.packages-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}
.terms-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}
.robux-packages.small .amount { font-size: 17px; }
.robux-packages.small .amount-old { font-size: 13px; }

/* ============== NUEVO EN ROBLOX: PLANES ============== */
.plans-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}
.plans-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}
.plans-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.plans-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
}
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.plan-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    gap: 12px;
}
.plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.plan-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.2px;
}
.plan-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.plan-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.plan-price-old {
    font-size: 13px;
    color: var(--text-soft);
    text-decoration: line-through;
    font-weight: 600;
}
.plan-highlight {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-soft);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}
.plan-highlight-icon {
    flex-shrink: 0;
    color: var(--text);
    margin-top: 1px;
}
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    flex: 1;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}
.plan-feature-icon {
    flex-shrink: 0;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}
.plan-btn {
    width: 100%;
    height: 40px;
    background: var(--bg-soft-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.15s;
    margin-top: auto;
}
.plan-btn:hover { background: #e5e7e8; }
.plan-btn:active { transform: scale(0.99); }

/* ============== LOGIN MODAL ============== */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    overflow-y: auto;
    /* Sin background — la imagen del hero debe verse edge-to-edge */
    background: #000;
    animation: fadeIn 0.2s ease;
}
.login-modal-overlay.open { display: block; }

.login-modal-container {
    /* Altura completa del viewport en todos los dispositivos,
       con fallback a 100dvh para móviles (evita el problema del
       100vh cuando la barra de URL está visible) */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #000;  /* fallback si la imagen no carga */
}

/* Header edge-to-edge, sólido (fuera de la imagen) */
.login-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    padding: 0 20px;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    box-sizing: border-box;
    z-index: 2;
    position: relative;
}
.login-modal-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.login-modal-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}
.login-modal-header-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
}
.login-header-btn {
    height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.05s;
    border: 1.5px solid transparent;
}
.login-header-btn:active { transform: scale(0.97); }
.login-header-btn-primary {
    background: var(--primary);
    color: #fff;
}
.login-header-btn-primary:hover {
    background: var(--primary-hover);
}
.login-header-btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.login-header-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}
.login-modal-search-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.login-modal-search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Tab bar del modal (Destacadas, Mercado, Crear, Robux) */
.login-modal-tabbar {
    display: flex;
    height: 48px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    box-sizing: border-box;
}
.login-tab {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    position: relative;
    transition: color 0.15s;
    white-space: nowrap;
}
.login-tab.active {
    color: #fff;
    font-weight: 800;
}
.login-tab.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}
.login-tab:hover {
    color: #fff;
}

/* Hero con la imagen de fondo (alto definido) + form encima */
.login-modal-hero {
    position: relative;
    width: 100%;
    /* Altura mínima para que se vea bien en pantallas grandes,
       pero se expande con flex-grow para llenar el espacio disponible
       en pantallas pequeñas/medianas */
    min-height: 520px;
    flex: 1 1 auto;
    overflow: hidden;
    /* La imagen como background para garantizar cobertura total */
    background-image: url("recursos/fondo%20de%20inicio%20de%20seccion.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.login-modal-bg-img {
    /* Oculto pero presente en el DOM por accesibilidad / fallback.
       El background real es background-image en .login-modal-hero */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: -1;
}
.login-modal-form-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.45);
}
.login-modal {
    position: relative;
    background: rgba(35, 37, 40, 0.92);
    color: #fff;
    border-radius: 12px;
    padding: 32px 32px 28px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: loginModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes loginModalIn {
    from { transform: translateY(20px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ============== DARK FOOTER (only inside login modal) ============== */
.dark-footer {
    flex-shrink: 0;
    background: #1f2024;
    color: #fff;
    padding: 36px 20px 32px;
    box-sizing: border-box;
}
.login-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.login-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.login-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 22px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.login-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid transparent;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.login-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}
.login-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
.login-btn {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s, border-color 0.15s;
    border: none;
    font-family: inherit;
}
.login-btn:active { transform: scale(0.99); }
.login-btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2024;
    margin-top: 4px;
}
.login-btn-primary:hover {
    background: #fff;
}
.login-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.login-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}
.login-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 14px;
    text-align: center;
    padding: 6px 0;
    transition: opacity 0.15s;
}
.login-link:hover { opacity: 0.8; }
.login-link-bold {
    color: #00a2ff;
    font-weight: 700;
    text-decoration: underline;
}
.login-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 8px 0;
}
.login-bottom {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 6px;
}
.login-bottom a {
    color: #00a2ff;
    font-weight: 700;
    text-decoration: underline;
}
.login-error-msg {
    background: rgba(255, 87, 87, 0.15);
    border: 1px solid rgba(255, 87, 87, 0.5);
    color: #ff8a8a;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 14px;
    text-align: left;
}
.login-error-msg[hidden] { display: none; }
.login-error-msg strong {
    display: block;
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 800;
}
.login-error-msg a {
    color: #00a2ff;
    font-weight: 700;
    text-decoration: underline;
    display: inline-block;
    margin-top: 6px;
}

/* ============== DARK FOOTER (only inside login modal) ============== */
.dark-footer {
    flex-shrink: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #1f2024;
    color: #fff;
    padding: 36px 20px 32px;
    margin-top: auto;
    box-sizing: border-box;
}
.dark-footer-inner {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}
.dark-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 24px;
    margin-bottom: 14px;
}
@media (max-width: 540px) {
    .dark-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.dark-footer-grid a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.15s;
}
.dark-footer-grid a:hover { opacity: 0.7; }
.dark-footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 20px;
    line-height: 1.5;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ============== APP STATE: balance + transactions ============== */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
.btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

/* ============== ADMIN ============== */
.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.admin-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: var(--bg-soft);
    border-radius: 8px;
}
.admin-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.4px;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}
.admin-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}
.admin-card-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.admin-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.admin-form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.admin-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.admin-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}
.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

/* ============== Icon picker (admin) ============== */
.icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 8px;
    padding: 4px 0;
}
.icon-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(180deg, #8a8a8a 0%, #5e5e5e 100%);
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s, border-color 0.12s;
    position: relative;
}
.icon-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.icon-option:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.4);
}
.icon-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(51, 95, 255, 0.3);
}
.icon-option.selected::after {
    content: "✓";
    position: absolute;
    top: 2px;
    right: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.admin-form-msg {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
}
.admin-form-msg.success {
    background: #e6f7ee;
    color: #0a7a3e;
}
.admin-form-msg.error {
    background: #fde8e8;
    color: #b32424;
}

.admin-users {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.admin-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-soft);
    border-radius: 8px;
    flex-wrap: wrap;
}
.admin-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, #8a8a8a 0%, #5e5e5e 100%);
    border: 2px solid #6e6e6e;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.admin-user-avatar-fallback {
    font-size: 16px;
    font-weight: 800;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
}
.admin-user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.admin-user-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-role-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.admin-role-badge.admin { background: #fde8e8; color: #b32424; }
.admin-role-badge.user { background: var(--bg-soft-2); color: var(--text); }
.admin-status-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
.admin-status-badge.active { background: #e6f7ee; color: #0a7a3e; }
.admin-status-badge.expired { background: #fde8e8; color: #b32424; }
.admin-delete-btn {
    height: 32px;
    padding: 0 12px;
    background: transparent;
    color: #b32424;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.admin-delete-btn:hover {
    background: #fde8e8;
    border-color: #f5b3b3;
}
.admin-empty {
    font-size: 14px;
    color: var(--text-muted);
    padding: 20px;
    text-align: center;
}
.admin-error {
    background: #fff4e5;
    border: 1px solid #f5b942;
    border-radius: 8px;
    padding: 14px 16px;
    color: #8a5500;
    font-size: 13px;
    line-height: 1.5;
}
.admin-error strong {
    display: block;
    margin-bottom: 6px;
    color: #6e4400;
}
.admin-error p {
    margin: 4px 0;
}
.admin-error-detail {
    font-family: monospace;
    font-size: 11px;
    color: #8a5500;
    opacity: 0.8;
    word-break: break-all;
}
.admin-error a {
    color: #8a5500;
    text-decoration: underline;
    font-weight: 700;
}
.admin-error code {
    background: #fff8e8;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 12px;
}
.admin-error pre {
    background: #fff8e8;
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    margin: 6px 0;
    overflow: auto;
    color: #5c3a00;
    border: 1px solid #f5d8a3;
}
.admin-error ol {
    margin: 6px 0 6px 18px;
    padding: 0;
}
.admin-refresh-btn {
    width: 100%;
    height: 40px;
    font-size: 14px;
}

/* Admin tab - hidden by default, shown when admin is logged in */
.tab-admin[hidden] { display: none !important; }
.tab-admin.visible { display: inline-flex !important; }

/* ============== PAGO ============== */
.pago-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.pago-lock {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    flex-shrink: 0;
}
.pago-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
}
.pago-view { animation: fadeIn 0.22s ease; }
.pago-view[hidden] { display: none; }
.pago-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 16px 24px;
}
.pago-success .send-success-icon { margin: 0 auto 18px; }
.pago-success .pago-verify-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.pago-success .pago-verify-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Summary card */
.pago-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.pago-summary-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.pago-summary-amount {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pago-summary-amount .robux-hex { width: 26px; height: 26px; }
.pago-summary-amount .amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.4px;
}
.pago-summary-amount .amount-old {
    font-size: 16px;
    color: var(--text-soft);
    text-decoration: line-through;
    font-weight: 600;
}
.pago-bonus-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 24px;
    padding: 0 12px;
    background: var(--bg-soft-2);
    color: var(--text);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.pago-summary-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* Bonus object card */
.pago-bonus-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}
.pago-bonus-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.pago-bonus-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}
.pago-bonus-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Payment methods */
.pago-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.pago-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}
.pago-method:hover {
    border-color: #c8c9cb;
}
.pago-method.selected {
    border-color: var(--primary);
    background: #f0f7ff;
}
.pago-method-cards {
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-width: 38px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1;
}
.card-visa { background: #1a1f71; font-style: italic; }
.card-mc { background: #fff; gap: 0; min-width: 36px; padding: 0; }
.mc-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
}
.mc-red { background: #eb001b; }
.mc-yellow { background: #f79e1b; margin-left: -6px; mix-blend-mode: multiply; }
.card-discover { background: #fff; color: #231f20; padding: 0 8px; }
.card-amex { background: #2e77bb; }
.pago-method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 24px;
    color: var(--text);
}
.pago-method-label {
    flex: 1;
}

/* Continue button */
.pago-continue {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    margin-bottom: 14px;
}
.pago-terms {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
}

/* Verify view */
.pago-verify {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0;
}
.pago-verify-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.pago-verify-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.pago-verify-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 360px;
    margin-bottom: 24px;
}
.pago-verify-text strong {
    color: var(--text);
    font-weight: 700;
}
.pago-pin-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}
.pago-pin {
    width: 48px;
    height: 56px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.pago-pin:focus {
    outline: none;
    border-color: var(--primary);
    background: #f0f7ff;
}
.pago-pin.filled {
    border-color: var(--text);
}
.pago-verify-btn {
    width: 100%;
    max-width: 320px;
    height: 52px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    margin-bottom: 14px;
}
.pago-verify-btn:disabled {
    cursor: not-allowed;
    background: var(--bg-soft-2);
    color: var(--text-soft);
}
.pago-verify-btn:disabled:hover {
    background: var(--bg-soft-2);
}
.pago-back-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.pago-back-link:hover {
    background: var(--bg-soft);
    color: var(--text);
}

/* ============== TRANSACCIONES ============== */
.transactions-top-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}
#transacciones {
    position: relative;
    padding-top: 24px;
}
.transactions-user {
    margin-bottom: 24px;
}
.transactions-username {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.transactions-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.transactions-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.transactions-balance-label {
    font-size: 15px;
    font-weight: 600;
}
.transactions-balance-amount {
    font-size: 17px;
    font-weight: 800;
}
.transactions-filters {
    margin-bottom: 28px;
}
.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.select-wrap {
    position: relative;
    margin-bottom: 16px;
}
.select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 48px;
    padding: 0 44px 0 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s;
}
.select:focus {
    border-color: var(--primary);
    outline: none;
}
.select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}
.transactions-summary-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}
.transactions-table {
    margin-bottom: 24px;
    border-top: 1px solid var(--border-soft);
}
.transactions-table-head {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border-soft);
}
.transactions-table-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}
.amount-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}
.transactions-footer {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid var(--border-soft);
    text-align: center;
}
.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 8px;
    font-size: 13px;
}
.footer-row a {
    color: var(--text);
    text-decoration: none;
}
.footer-row a:hover {
    text-decoration: underline;
}

/* ============== PREGUNTAS FRECUENTES ============== */
.faq-section {
    margin-top: 36px;
}
.faq-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-item[open] {
    border-color: #c8c9cb;
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    user-select: none;
    transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-item summary:active { background: var(--bg-soft-2); }
.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--text);
}
.faq-answer {
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}

.learn-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============== MODAL ============== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 16px 16px;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 80px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
    flex-shrink: 0;
}
.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-title h2 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.2px;
}
.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-balance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.modal-body {
    padding: 8px 20px 20px;
    overflow-y: auto;
    flex: 1;
}
.modal-search {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--bg);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 22px;
    transition: border-color 0.15s;
}
.modal-search::placeholder { color: var(--text-soft); }
.modal-search:focus { border-color: var(--primary); }
.modal-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
}
.modal-section-title .count {
    color: var(--text-muted);
    font-weight: 600;
}
.modal-empty {
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
    padding: 24px 0;
}

/* ============== MODAL STATES ============== */
.modal-state {
    min-height: 120px;
}
.modal-state[hidden] { display: none; }
.modal-state-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 30px 0;
}
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--bg-soft-2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    transition: background 0.15s;
    cursor: pointer;
    text-align: left;
    width: 100%;
}
.user-card:hover { background: var(--bg-soft); }
.user-card:active { background: var(--bg-soft-2); }
.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-soft-2);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.user-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.user-display .verified-badge {
    color: var(--primary);
    flex-shrink: 0;
}
.user-name {
    font-size: 13px;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
    transition: background 0.15s;
}
.user-action:hover { background: var(--bg-soft); }
.user-card.selected {
    background: var(--bg-soft);
    border: 1px solid var(--primary);
    padding: 9px 7px;
}
.user-card.selected .user-action {
    background: var(--primary);
    color: #fff;
}
.selected-user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text);
}
.selected-user-bar .user-avatar { width: 32px; height: 32px; font-size: 13px; }
.selected-user-bar strong { font-weight: 700; }
.selected-user-bar button {
    margin-left: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    height: auto;
    width: auto;
    padding: 4px 8px;
    border-radius: 6px;
}
.selected-user-bar button:hover { background: var(--bg-soft-2); }

.fallback-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #8a6d3b;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.fallback-banner[hidden] { display: none; }

.send-confirm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0 4px;
}
.send-confirm-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.send-confirm-amount input {
    flex: 1;
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
    background: none;
    border: none;
    outline: none;
    min-width: 0;
}
.send-confirm-amount .robux-hex { width: 20px; height: 20px; }
.send-confirm-buttons {
    display: flex;
    gap: 8px;
}
.send-confirm-buttons .btn { flex: 1; }
.send-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pill-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastIn {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}
.send-success-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #111;
    padding: 8px 20px 8px 8px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: sendToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: calc(100vw - 32px);
}
.send-success-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.send-success-toast-icon svg {
    width: 18px;
    height: 18px;
}
@keyframes sendToastIn {
    from { transform: translate(-50%, -30px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ============== SEND FLOW (multi-step) ============== */
.send-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 4px;
    animation: fadeIn 0.2s ease;
}
.send-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.send-step[hidden] { display: none; }

.send-recipient {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4px;
    position: relative;
}
.send-back-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
}
.send-back-btn:hover { background: var(--bg-soft); color: var(--text); }
.send-recipient-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--bg-soft-2);
    margin: 6px 0 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 30px;
    text-transform: uppercase;
    border: 2px solid var(--bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.send-recipient-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.send-recipient-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    letter-spacing: -0.2px;
}
.send-recipient-username {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}
.send-recipient-details {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}
.send-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.send-detail svg { color: var(--text-soft); }

.send-amount-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 22px;
}
.send-amount-display .robux-hex {
    width: 36px;
    height: 36px;
}
.send-amount-input {
    width: 140px;
    font-size: 48px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -1.5px;
    line-height: 1;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    -moz-appearance: textfield;
}
.send-amount-input::-webkit-outer-spin-button,
.send-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.send-amount-input::placeholder {
    color: var(--text-soft);
    font-weight: 800;
}

.send-amount-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
}
.send-amount-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-soft);
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    transition: background 0.15s, border-color 0.15s;
}
.send-amount-chip:hover { background: var(--bg-soft-2); }
.send-amount-chip.selected {
    background: var(--bg-soft-2);
    border-color: var(--text);
}
.send-amount-chip .robux-hex-small { width: 16px; height: 16px; }

.send-primary-btn {
    width: 100%;
    height: 52px;
    background: var(--bg-soft-2);
    color: var(--text-soft);
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    border: none;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 12px;
    cursor: not-allowed;
}
.send-primary-btn.active {
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}
.send-primary-btn.active:hover { background: var(--primary-hover); }

.send-secondary-btn {
    flex: 1;
    height: 52px;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.send-secondary-btn:hover { background: var(--bg-soft-2); }

.send-fee-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

.send-confirm-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-align: center;
}

.send-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 14px;
}

.send-loading {
    padding: 50px 0;
    text-align: center;
}
.send-loading .spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--bg-soft-2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 16px;
}
.send-loading p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.send-success {
    padding: 36px 0 24px;
    text-align: center;
}
.send-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: #00c476;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
.send-success h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}
.send-success p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}
.send-success p strong { color: var(--text); font-weight: 700; }

/* ============== PROFILE EDIT MODAL ============== */
.profile-edit-modal { max-width: 420px; }
.profile-edit-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.profile-edit-label:not(:first-child) { margin-top: 18px; }
.profile-edit-input { margin-bottom: 4px; }
.profile-icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.profile-icon-option {
    aspect-ratio: 1;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    background: var(--bg);
    cursor: pointer;
    transition: border-color 0.15s, transform 0.1s;
}
.profile-icon-option:hover { border-color: var(--primary); }
.profile-icon-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(57, 88, 255, 0.25);
}
.profile-icon-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.profile-save-btn {
    width: 100%;
    margin-top: 4px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 540px) {
    #robux .bonus-more-pill,
    #robux .popular-badge.for-you-badge {
        display: none;
    }
    .robux-section-title {
        font-size: 15px;
        max-width: 12rem;
    }
    .robux-days-badge {
        height: 26px;
        padding: 0 10px;
        font-size: 11px;
    }
}
@media (min-width: 541px) {
    .bonus-more-pill--desktop {
        display: inline-flex;
    }
}
@media (max-width: 540px) {
    .bonus-more-pill--desktop {
        display: none;
    }
}
@media (min-width: 768px) {
    .app-main {
        max-width: 580px;
        padding-left: 24px;
        padding-right: 24px;
    }
    .bonus-hero {
        text-align: center;
        padding-top: 20px;
    }
    .bonus-headline {
        max-width: 18ch;
        margin: 0 auto;
    }
    .robux-product-visual {
        min-height: 210px;
    }
    .robux-product-visual img {
        width: min(220px, 72vw);
    }
    #robux .robux-packages-panel .bonus-more-pill {
        display: inline-flex;
    }
    .game-card { flex: 0 0 220px; }
    .game-thumb { width: 220px; height: 220px; }
    .section-title { font-size: 34px; }
    .bonus-headline { font-size: 38px; }
}
@media (min-width: 1024px) {
    .app-main {
        max-width: 620px;
    }
}
