        .pa-sub-wrapper {
    max-width: 1720px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 10px 24px 48px !important;
    box-sizing: border-box !important;
    font-family: var(--pa-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: var(--pa-text, #ffffff);
}
        .pa-sub-wrapper * {
            box-sizing: border-box !important;
        }

        /* HERO HEADER */
        .pa-sub-hero {
            background: linear-gradient(135deg, #18181b 0%, #0f0f12 100%);
            border: 1px solid #27272a;
            border-top: 3px solid #ff5500;
            border-radius: 14px;
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        }
        body.pa-theme-soft .pa-sub-hero {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border-color: #e2e8f0;
            border-top: 3px solid #ff5500;
            box-shadow: 0 4px 16px rgba(0,0,0,0.04);
        }
        .pa-sub-hero-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 12px;
        }
        .pa-sub-live-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(34, 197, 94, 0.12);
            color: #22c55e;
            border: 1px solid rgba(34, 197, 94, 0.3);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
        .pa-sub-pulse {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
            animation: paSubPulseAnim 1.8s infinite;
        }
        @keyframes paSubPulseAnim {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
        }
        .pa-sub-hero-title {
            font-family: var(--pa-font-display, inherit);
            font-size: 30px;
            font-weight: 900;
            color: #ffffff;
            margin: 0 0 8px;
            letter-spacing: -0.5px;
        }
        body.pa-theme-soft .pa-sub-hero-title {
            color: #0f172a;
        }
        .pa-sub-hero-desc {
            font-size: 14.5px;
            color: #94a3b8;
            margin: 0;
            line-height: 1.55;
            max-width: 800px;
        }
        body.pa-theme-soft .pa-sub-hero-desc {
            color: #475569;
        }

        /* BARRA DE NOTIFICACIONES */
        .pa-subasta-notify-bar {
            background: #18181b;
            border: 1px solid #27272a;
            border-left: 4px solid #ff5500;
            border-radius: 10px;
            padding: 12px 16px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }
        body.pa-theme-soft .pa-subasta-notify-bar {
            background: #ffffff !important;
            border-color: #e2e8f0 !important;
            border-left-color: #ff5500 !important;
            box-shadow: 0 4px 14px rgba(0,0,0,0.04) !important;
        }
        body.pa-theme-soft .pa-subasta-notify-bar div:first-child > div > div:first-child {
            color: #0f172a !important;
        }
        body.pa-theme-soft .pa-subasta-notify-bar div:first-child > div > div:last-child {
            color: #475569 !important;
        }

        /* ADMIN BAR & PANEL */
        .pa-sub-admin-wrapper {
            background: rgba(245, 158, 11, 0.06);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 24px;
        }
        body.pa-theme-soft .pa-sub-admin-wrapper {
            background: #fffbeb;
            border-color: #fde68a;
        }
        .pa-sub-admin-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            user-select: none;
        }
        .pa-sub-admin-title {
            font-size: 15px;
            font-weight: 800;
            color: #f59e0b;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .pa-sub-admin-toggle-btn {
            background: #27272a;
            color: #ffffff;
            border: 1px solid #3f3f46;
            padding: 5px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }
        body.pa-theme-soft .pa-sub-admin-toggle-btn {
            background: #ffffff;
            color: #0f172a;
            border-color: #cbd5e1;
        }
        .pa-sub-admin-body {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px dashed rgba(245, 158, 11, 0.3);
            display: none;
        }
        .pa-sub-admin-body.open {
            display: block;
        }
        .pa-sub-admin-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
            border-bottom: 1px solid rgba(245, 158, 11, 0.2);
            padding-bottom: 8px;
        }
        .pa-sub-tab-btn {
            background: none;
            border: none;
            color: #94a3b8;
            font-weight: 700;
            font-size: 13.5px;
            padding: 6px 12px;
            cursor: pointer;
            border-radius: 6px;
        }
        .pa-sub-tab-btn.active {
            background: #f59e0b;
            color: #000000;
        }
        .pa-sub-admin-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-bottom: 12px;
        }
        .pa-sub-admin-field label {
            display: block;
            font-size: 12px;
            font-weight: 700;
            color: #cbd5e1;
            margin-bottom: 4px;
        }
        body.pa-theme-soft .pa-sub-admin-field label {
            color: #475569;
        }
        .pa-sub-admin-field input,
        .pa-sub-admin-field select,
        .pa-sub-admin-field textarea {
            width: 100%;
            background: #18181b;
            border: 1px solid #3f3f46;
            color: #ffffff;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 13px;
        }
        body.pa-theme-soft .pa-sub-admin-field input,
        body.pa-theme-soft .pa-sub-admin-field select,
        body.pa-theme-soft .pa-sub-admin-field textarea {
            background: #ffffff;
            border-color: #cbd5e1;
            color: #0f172a;
        }
        .pa-sub-upload-dropzone {
            border: 2px dashed #ff5500;
            border-radius: 10px;
            padding: 16px;
            text-align: center;
            background: rgba(255, 85, 0, 0.04);
            cursor: pointer;
            transition: border-color 0.2s, background-color 0.2s;
        }
        .pa-sub-upload-dropzone:hover {
            border-color: #22c55e;
            background: rgba(34, 197, 94, 0.08);
        }
        body.pa-theme-soft .pa-sub-upload-dropzone {
            background: #f8fafc;
            border-color: #ff5500;
        }
        .pa-sub-mod-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 12px;
        }
        .pa-sub-mod-btn {
            background: #27272a;
            border: 1px solid #3f3f46;
            color: #ffffff;
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }
        .pa-sub-mod-btn:hover {
            border-color: #ff5500;
            color: #ff5500;
        }
        .pa-sub-mod-btn.danger {
            background: rgba(239, 68, 68, 0.15);
            border-color: #ef4444;
            color: #ef4444;
        }
        .pa-sub-mod-btn.success {
            background: rgba(34, 197, 94, 0.15);
            border-color: #22c55e;
            color: #22c55e;
        }

        /* MAIN ARENA GRID */
        .pa-sub-arena-grid {
            display: grid;
            grid-template-columns: 1.05fr 1fr;
            gap: 24px;
            margin-bottom: 32px;
        }
        @media (max-width: 860px) {
            .pa-sub-arena-grid {
                grid-template-columns: 1fr !important;
            }
        }

        /* COLUMN 1: FIGURE SHOWCASE */
        .pa-sub-fig-card {
            background: #18181b;
            border: 1px solid #27272a;
            border-radius: 14px;
            padding: 20px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.25);
            display: flex;
            flex-direction: column;
        }
        body.pa-theme-soft .pa-sub-fig-card {
            background: #ffffff;
            border-color: #e2e8f0;
            box-shadow: 0 4px 16px rgba(0,0,0,0.04);
        }
        .pa-sub-img-wrap {
            width: 100%;
            height: 380px;
            max-height: 420px;
            background: #0f0f12;
            border: 1px solid #27272a;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-bottom: 18px;
            position: relative;
        }
        body.pa-theme-soft .pa-sub-img-wrap {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .pa-sub-img-wrap img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        .pa-sub-img-wrap:hover img {
            transform: scale(1.03);
        }
        .pa-sub-badges-row {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }
        .pa-sub-badge {
            font-size: 12px;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 6px;
            background: rgba(255, 85, 0, 0.12);
            color: #ff5500;
            border: 1px solid rgba(255, 85, 0, 0.25);
        }
        .pa-sub-badge.green {
            background: rgba(34, 197, 94, 0.12);
            color: #22c55e;
            border-color: rgba(34, 197, 94, 0.25);
        }
        .pa-sub-fig-title {
            font-size: 22px;
            font-weight: 800;
            color: #ffffff;
            margin: 0 0 14px;
            line-height: 1.35;
        }
        body.pa-theme-soft .pa-sub-fig-title {
            color: #0f172a;
        }
        .pa-sub-specs-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 16px;
            font-size: 13.5px;
        }
        .pa-sub-specs-table td {
            padding: 8px 10px;
            border-bottom: 1px solid #27272a;
        }
        body.pa-theme-soft .pa-sub-specs-table td {
            border-bottom: 1px solid #e2e8f0;
        }
        .pa-sub-spec-lbl {
            color: #94a3b8;
            font-weight: 600;
            width: 38%;
        }
        body.pa-theme-soft .pa-sub-spec-lbl {
            color: #64748b;
        }
        .pa-sub-spec-val {
            color: #ffffff;
            font-weight: 700;
        }
        body.pa-theme-soft .pa-sub-spec-val {
            color: #0f172a;
        }
        .pa-sub-fig-desc {
            font-size: 13.5px;
            color: #94a3b8;
            line-height: 1.6;
            margin-top: auto;
            padding-top: 12px;
            border-top: 1px solid #27272a;
        }
        body.pa-theme-soft .pa-sub-fig-desc {
            color: #64748b;
            border-top-color: #e2e8f0;
        }

        /* COLUMN 2: PLAYING ARENA & BIDDING */
        .pa-sub-play-card {
            background: #18181b;
            border: 2px solid #27272a;
            border-radius: 14px;
            padding: 22px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.25);
            display: flex;
            flex-direction: column;
        }
        body.pa-theme-soft .pa-sub-play-card {
            background: #ffffff;
            border-color: #e2e8f0;
            box-shadow: 0 4px 16px rgba(0,0,0,0.04);
        }

        /* COUNTDOWN CLOCK BOX */
        .pa-sub-clock-box {
            background: #111114;
            border: 1px solid #27272a;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 18px;
            text-align: center;
            transition: all 0.3s;
        }
        body.pa-theme-soft .pa-sub-clock-box {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .pa-sub-clock-box.anti-snipe-active {
            border: 2px solid #ef4444 !important;
            background: rgba(239, 68, 68, 0.08) !important;
            animation: paSubClockWarning 1.5s infinite;
        }
        @keyframes paSubClockWarning {
            0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
            50% { box-shadow: 0 0 16px 2px rgba(239, 68, 68, 0.25); }
        }
        .pa-sub-clock-lbl {
            font-size: 12px;
            font-weight: 800;
            color: #94a3b8;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 10px;
        }
        body.pa-theme-soft .pa-sub-clock-lbl {
            color: #64748b;
        }
        .pa-sub-clock-digits {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .pa-sub-digit-block {
            background: #18181b;
            border: 1px solid #3f3f46;
            border-radius: 8px;
            padding: 8px 14px;
            min-width: 68px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        body.pa-theme-soft .pa-sub-digit-block {
            background: #ffffff;
            border-color: #cbd5e1;
        }
        .pa-sub-digit-num {
            font-family: var(--pa-font-display, monospace);
            font-size: 28px;
            font-weight: 900;
            color: #ffffff;
            line-height: 1;
        }
        body.pa-theme-soft .pa-sub-digit-num {
            color: #0f172a;
        }
        .pa-sub-digit-tag {
            font-size: 10px;
            font-weight: 700;
            color: #94a3b8;
            margin-top: 4px;
            letter-spacing: 0.5px;
        }
        .pa-sub-digit-sep {
            font-size: 24px;
            font-weight: 900;
            color: #ff5500;
        }
        .pa-sub-snipe-notice {
            margin-top: 10px;
            padding: 6px 10px;
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 6px;
            color: #ef4444;
            font-size: 12px;
            font-weight: 700;
            display: none;
        }
        .pa-sub-clock-box.anti-snipe-active .pa-sub-snipe-notice {
            display: block;
        }

        /* PRICE DISPLAY BOX */
        .pa-sub-price-box {
            background: #111114;
            border: 1px solid #27272a;
            border-radius: 12px;
            padding: 18px;
            margin-bottom: 18px;
            text-align: center;
            position: relative;
        }
        body.pa-theme-soft .pa-sub-price-box {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .pa-sub-price-hdr {
            font-size: 12px;
            font-weight: 800;
            color: #94a3b8;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            margin-bottom: 6px;
        }
        .pa-sub-price-val {
            font-family: var(--pa-font-display, sans-serif);
            font-size: 42px;
            font-weight: 900;
            color: #ff5500;
            line-height: 1;
            margin-bottom: 8px;
            transition: transform 0.2s ease, color 0.2s ease;
        }
        .pa-sub-price-val.flash {
            transform: scale(1.1);
            color: #22c55e;
        }
        .pa-sub-leader-row {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #18181b;
            border: 1px solid #3f3f46;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13.5px;
        }
        body.pa-theme-soft .pa-sub-leader-row {
            background: #ffffff;
            border-color: #cbd5e1;
        }
        .pa-sub-leader-tag {
            color: #f59e0b;
            font-weight: 800;
        }
        .pa-sub-leader-name {
            color: #ffffff;
            font-weight: 700;
        }
        body.pa-theme-soft .pa-sub-leader-name {
            color: #0f172a;
        }
        .pa-sub-bids-count {
            color: #94a3b8;
            font-size: 12px;
        }

        /* ACTIONS & BUTTONS */
        .pa-sub-actions-box {
            margin-bottom: 20px;
        }
        .pa-sub-user-pill {
            font-size: 13px;
            color: #94a3b8;
            margin-bottom: 12px;
            text-align: center;
        }
        .pa-sub-user-pill strong {
            color: #ffffff;
        }
        body.pa-theme-soft .pa-sub-user-pill strong {
            color: #0f172a;
        }
        .pa-sub-btn-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 10px;
        }
        @media (max-width: 640px) {
            .pa-sub-btn-grid {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 480px) {
            .pa-sub-btn-grid {
                grid-template-columns: 1fr;
            }
        }
        .pa-sub-bid-btn {
            appearance: none;
            border: none;
            padding: 16px 14px;
            border-radius: 10px;
            font-family: var(--pa-font-sans, inherit);
            font-size: 16px;
            font-weight: 900;
            cursor: pointer;
            text-align: center;
            transition: all 0.15s ease;
            box-shadow: 0 4px 14px rgba(0,0,0,0.25);
            user-select: none;
        }
        .pa-sub-bid-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }
        .pa-sub-bid-btn.btn-1 {
            background: linear-gradient(135deg, #ff5500 0%, #ea580c 100%);
            color: #ffffff;
        }
        .pa-sub-bid-btn.btn-1:hover:not(:disabled) {
            background: linear-gradient(135deg, #ff6a1a 0%, #ff5500 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 85, 0, 0.4);
        }
        .pa-sub-bid-btn.btn-1:active:not(:disabled) {
            transform: translateY(1px);
        }
        .pa-sub-bid-btn.btn-5 {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #ffffff;
        }
        .pa-sub-bid-btn.btn-5:hover:not(:disabled) {
            background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
        }
        .pa-sub-bid-btn.btn-5:active:not(:disabled) {
            transform: translateY(1px);
        }
        .pa-sub-bid-btn.btn-01 {
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
            color: #ffffff;
        }
        .pa-sub-bid-btn.btn-01:hover:not(:disabled) {
            background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
        }
        .pa-sub-bid-btn.btn-01:active:not(:disabled) {
            transform: translateY(1px);
        }
        .pa-sub-refresh-row {
            display: flex;
            justify-content: center;
            margin-top: 6px;
        }
        .pa-sub-refresh-btn {
            background: none;
            border: 1px solid #3f3f46;
            color: #94a3b8;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12.5px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .pa-sub-refresh-btn:hover {
            color: #ffffff;
            border-color: #ff5500;
        }
        body.pa-theme-soft .pa-sub-refresh-btn {
            border-color: #cbd5e1;
            color: #64748b;
        }
        body.pa-theme-soft .pa-sub-refresh-btn:hover {
            color: #0f172a;
            border-color: #ff5500;
        }

        /* GUEST LOGIN CARD */
        .pa-sub-guest-card {
            background: rgba(255, 85, 0, 0.08);
            border: 1px solid rgba(255, 85, 0, 0.25);
            border-radius: 10px;
            padding: 16px;
            text-align: center;
        }
        .pa-sub-guest-card p {
            margin: 0 0 12px;
            font-size: 13.5px;
            color: #e2e8f0;
            line-height: 1.45;
        }
        body.pa-theme-soft .pa-sub-guest-card p {
            color: #334155;
        }
        .pa-sub-login-btn {
            display: inline-block;
            background: #ff5500;
            color: #ffffff !important;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14.5px;
            font-weight: 800;
            text-decoration: none !important;
            transition: background 0.2s;
        }
        .pa-sub-login-btn:hover {
            background: #ea580c;
        }

        /* TOAST & FEEDBACK */
        .pa-sub-feedback {
            margin-top: 10px;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            display: none;
            text-align: center;
        }
        .pa-sub-feedback.success {
            background: rgba(34, 197, 94, 0.15);
            border: 1px solid #22c55e;
            color: #22c55e;
            display: block;
        }
        .pa-sub-feedback.error {
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid #ef4444;
            color: #ef4444;
            display: block;
        }

        /* LIVE BIDS FEED */
        .pa-sub-feed-card {
            background: #111114;
            border: 1px solid #27272a;
            border-radius: 12px;
            padding: 16px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        body.pa-theme-soft .pa-sub-feed-card {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .pa-sub-feed-hdr {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12.5px;
            font-weight: 800;
            color: #94a3b8;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #27272a;
        }
        body.pa-theme-soft .pa-sub-feed-hdr {
            border-bottom-color: #e2e8f0;
            color: #64748b;
        }
        .pa-sub-feed-list {
            list-style: none;
            margin: 0;
            padding: 0;
            max-height: 220px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .pa-sub-feed-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            background: #18181b;
            border: 1px solid #27272a;
            border-radius: 8px;
            font-size: 13px;
        }
        body.pa-theme-soft .pa-sub-feed-item {
            background: #ffffff;
            border-color: #e2e8f0;
        }
        .pa-sub-feed-item.is-lead {
            border-color: rgba(245, 158, 11, 0.5);
            background: rgba(245, 158, 11, 0.08);
        }
        .pa-sub-bidder-name {
            font-weight: 700;
            color: #ffffff;
        }
        body.pa-theme-soft .pa-sub-bidder-name {
            color: #0f172a;
        }
        .pa-sub-bid-amount {
            font-weight: 900;
            color: #22c55e;
            font-family: var(--pa-font-display, monospace);
        }
        .pa-sub-bid-tag {
            font-size: 11px;
            color: #94a3b8;
            margin-left: 6px;
        }

        /* FINALIZED BANNER */
        .pa-sub-ended-banner {
            background: linear-gradient(135deg, #18181b 0%, #111114 100%);
            border: 2px solid #22c55e;
            border-radius: 14px;
            padding: 24px;
            text-align: center;
            margin-bottom: 24px;
            box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
            display: <?php echo $estado === 'finalizada' ? 'block' : 'none'; ?>;
        }
        body.pa-theme-soft .pa-sub-ended-banner {
            background: #ffffff;
            box-shadow: 0 4px 16px rgba(0,0,0,0.04);
        }
        .pa-sub-ended-title {
            font-size: 24px;
            font-weight: 900;
            color: #22c55e;
            margin: 0 0 8px;
        }
        .pa-sub-ended-text {
            font-size: 15px;
            color: #e2e8f0;
            margin: 0 0 16px;
        }
        body.pa-theme-soft .pa-sub-ended-text {
            color: #334155;
        }
        .pa-sub-btn-wa-win {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #22c55e;
            color: #ffffff !important;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 800;
            text-decoration: none !important;
            box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
        }

        /* RULES SECTION */
        .pa-sub-rules-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 16px;
            margin-bottom: 32px;
        }
        .pa-sub-rule-card {
            background: #18181b;
            border: 1px solid #27272a;
            border-radius: 10px;
            padding: 18px;
        }
        body.pa-theme-soft .pa-sub-rule-card {
            background: #ffffff;
            border-color: #e2e8f0;
        }
        .pa-sub-rule-title {
            font-size: 14.5px;
            font-weight: 800;
            color: #ff5500;
            margin: 0 0 6px;
        }
        .pa-sub-rule-body {
            font-size: 13px;
            color: #94a3b8;
            margin: 0;
            line-height: 1.5;
        }
        body.pa-theme-soft .pa-sub-rule-body {
            color: #64748b;
        }

        /* PAST AUCTIONS */
        .pa-sub-past-title {
            font-size: 18px;
            font-weight: 800;
            color: #ffffff;
            margin: 0 0 14px;
        }
        body.pa-theme-soft .pa-sub-past-title {
            color: #0f172a;
        }
        .pa-sub-past-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 16px;
        }
        .pa-sub-past-card {
            background: #18181b;
            border: 1px solid #27272a;
            border-radius: 10px;
            padding: 12px;
            display: flex;
            flex-direction: column;
        }
        body.pa-theme-soft .pa-sub-past-card {
            background: #ffffff;
            border-color: #e2e8f0;
        }
        .pa-sub-past-img {
            width: 100%;
            height: 140px;
            background: #0f0f12;
            border-radius: 6px;
            object-fit: contain;
            margin-bottom: 10px;
        }
        body.pa-theme-soft .pa-sub-past-img {
            background: #f8fafc;
        }
        .pa-sub-past-name {
            font-size: 13px;
            font-weight: 700;
            color: #ffffff;
            margin: 0 0 6px;
            line-height: 1.35;
        }
        body.pa-theme-soft .pa-sub-past-name {
            color: #0f172a;
        }
        .pa-sub-past-price {
            font-size: 14px;
            font-weight: 800;
            color: #22c55e;
            margin-top: auto;
        }

/* ==========================================================================
   ESTILOS MODERNOS SUBASTAS PANDA V2 (MODO CLARO POR DEFECTO + EXPOSICIÓN)
   ========================================================================== */

/* Tarjeta Activa de Subasta (Modo Claro Profesional por Defecto) */
.pa-sub-card-active {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    transition: all 0.25s ease !important;
    color: #0f172a !important;
}
.pa-sub-card-active:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09) !important;
    transform: translateY(-2px);
}

/* Soporte Limpio para Modo Oscuro en Tarjeta Activa */
body.pa-theme-dark .pa-sub-card-active,
#pandaani-v2-root.v2-theme-dark .pa-sub-card-active {
    background: #18181b !important;
    border-color: #27272a !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    color: #f4f4f5 !important;
}

/* Contenedor de Imagen de Exposición Vertical (320px) */
.pa-sub-showcase-box {
    width: 100% !important;
    height: 320px !important;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer;
}
body.pa-theme-dark .pa-sub-showcase-box,
#pandaani-v2-root.v2-theme-dark .pa-sub-showcase-box {
    background: radial-gradient(circle at center, #1f1f23 0%, #0f0f12 100%) !important;
    border-color: #27272a !important;
}
.pa-sub-showcase-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.12));
}
.pa-sub-showcase-box:hover .pa-sub-showcase-img {
    transform: scale(1.035);
}

/* Insignias de la Tarjeta */
.pa-sub-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.pa-sub-tag-live {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    animation: paPulseLive 2s infinite ease-in-out;
}
@keyframes paPulseLive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

/* Título de la Subasta */
.pa-sub-card-title {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.pa-theme-dark .pa-sub-card-title,
#pandaani-v2-root.v2-theme-dark .pa-sub-card-title {
    color: #ffffff !important;
}

/* Caja de Temporizador y Oferta Líder */
.pa-sub-metrics-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
}
body.pa-theme-dark .pa-sub-metrics-row,
#pandaani-v2-root.v2-theme-dark .pa-sub-metrics-row {
    background: #09090b;
    border-color: #27272a;
}
.pa-sub-timer-display {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    color: #0284c7 !important;
    background: #e0f2fe !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    border: 1px solid #bae6fd !important;
    display: inline-block !important;
    letter-spacing: 1px !important;
}
body.pa-theme-dark .pa-sub-timer-display,
#pandaani-v2-root.v2-theme-dark .pa-sub-timer-display {
    color: #38bdf8 !important;
    background: #09090b !important;
    border-color: #27272a !important;
}
.pa-sub-price-val {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #16a34a !important;
    line-height: 1 !important;
}
body.pa-theme-dark .pa-sub-price-val,
#pandaani-v2-root.v2-theme-dark .pa-sub-price-val {
    color: #22c55e !important;
}

/* Botones de Pujas Rápidas */
.pa-sub-bids-row {
    margin-top: 2px;
}
.pa-sub-bids-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.pa-sub-btn-bid-01 {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1.5px solid #bbf7d0 !important;
    border-radius: 8px !important;
    padding: 10px 4px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: center !important;
}
.pa-sub-btn-bid-01:hover {
    background: #dcfce7 !important;
    border-color: #86efac !important;
}
.pa-sub-btn-bid-1 {
    background: #ff5500 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 4px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.28) !important;
}
.pa-sub-btn-bid-1:hover {
    background: #e04a00 !important;
    transform: translateY(-1px);
}
.pa-sub-btn-bid-5 {
    background: #16a34a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 4px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28) !important;
}
.pa-sub-btn-bid-5:hover {
    background: #15803d !important;
    transform: translateY(-1px);
}

/* Botón Ver Ficha y Compartir */
.pa-sub-btn-view-share {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.pa-sub-btn-view-share:hover {
    background: #e2e8f0 !important;
    color: #000000 !important;
}
body.pa-theme-dark .pa-sub-btn-view-share,
#pandaani-v2-root.v2-theme-dark .pa-sub-btn-view-share {
    background: #27272a !important;
    color: #e4e4e7 !important;
    border-color: #3f3f46 !important;
}
body.pa-theme-dark .pa-sub-btn-view-share:hover,
#pandaani-v2-root.v2-theme-dark .pa-sub-btn-view-share:hover {
    background: #3f3f46 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   BLOQUE PROMOCIONAL "COMPARTE Y GANA S/ 2.00"
   ========================================================================== */
.pa-sub-share-promo {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.pa-theme-dark .pa-sub-share-promo,
#pandaani-v2-root.v2-theme-dark .pa-sub-share-promo {
    background: linear-gradient(135deg, #272015 0%, #1c1917 100%);
    border-color: #854d0e;
}
.pa-sub-share-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 900;
    color: #92400e;
}
body.pa-theme-dark .pa-sub-share-header,
#pandaani-v2-root.v2-theme-dark .pa-sub-share-header {
    color: #fde047;
}
.pa-sub-share-desc {
    font-size: 11.5px;
    color: #78350f;
    line-height: 1.4;
    margin: 0;
}
body.pa-theme-dark .pa-sub-share-desc,
#pandaani-v2-root.v2-theme-dark .pa-sub-share-desc {
    color: #d6d3d1;
}
.pa-sub-share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 2px;
}
.pa-sub-share-btn {
    border: none;
    border-radius: 6px;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.pa-sub-share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.pa-sub-share-btn-wa {
    background: #22c55e;
    color: #ffffff !important;
}
.pa-sub-share-btn-fb {
    background: #1877f2;
    color: #ffffff !important;
}
.pa-sub-share-btn-msg {
    background: #0084ff;
    color: #ffffff !important;
}
.pa-sub-share-btn-copy {
    background: #475569;
    color: #ffffff !important;
}

/* ==========================================================================
   VISTA INDIVIDUAL DE SUBASTA (/subasta/{ID}/)
   ========================================================================== */
.pa-sub-single-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
}
.pa-sub-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background 0.15s ease;
}
.pa-sub-back-link:hover {
    background: #e2e8f0;
}
body.pa-theme-dark .pa-sub-back-link {
    background: #27272a;
    color: #e4e4e7;
    border-color: #3f3f46;
}
.pa-sub-single-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
body.pa-theme-dark .pa-sub-single-layout {
    background: #18181b;
    border-color: #27272a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
    .pa-sub-single-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }
}
.pa-sub-single-img-wrap {
    width: 100%;
    height: 440px;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
body.pa-theme-dark .pa-sub-single-img-wrap {
    background: radial-gradient(circle at center, #1f1f23 0%, #0f0f12 100%);
    border-color: #27272a;
}
.pa-sub-single-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.15));
}
.pa-sub-single-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* ==========================================================================
   GRILLA PANORÁMICA MULTI-COLUMNA Y CONTENEDOR CUADRADO 1:1
   ========================================================================== */
.pa-sub-two-col-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)) !important;
    gap: 18px !important;
    margin-bottom: 30px !important;
}

.pa-sub-showcase-box {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    max-height: 285px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer;
}

body.pa-theme-dark .pa-sub-showcase-box,
#pandaani-v2-root.v2-theme-dark .pa-sub-showcase-box {
    background: #18181b !important;
    border-color: #27272a !important;
}

.pa-sub-showcase-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.pa-sub-card-active {
    padding: 14px !important;
    gap: 12px !important;
}


/* ==========================================================================
   PROMOCIÓN LATERAL CANAL DE WHATSAPP (QR LOCAL + BOTÓN DIRECTO)
   ========================================================================== */
.pa-sub-main-with-aside,
.pa-sub-single-with-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
    align-items: start;
    margin-top: 16px;
}

.pa-sub-main-col {
    min-width: 0;
}

.pa-sub-wa-aside {
    position: sticky;
    top: 90px;
    min-width: 0;
}

.pa-sub-wa-card {
    background: linear-gradient(180deg, #18181b 0%, #0f0f12 100%);
    border: 1px solid #27272a;
    border-top: 3px solid #25D366;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #f4f4f5;
}

body.pa-theme-soft .pa-sub-wa-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
    border-top: 3px solid #25D366;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    color: #0f172a;
}

.pa-sub-wa-card-head {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.pa-sub-wa-card-title {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #ffffff;
}

body.pa-theme-soft .pa-sub-wa-card-title {
    color: #0f172a;
}

.pa-sub-wa-card-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #a1a1aa;
}

body.pa-theme-soft .pa-sub-wa-card-desc {
    color: #475569;
}

.pa-sub-wa-card-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 12px 10px;
}

body.pa-theme-soft .pa-sub-wa-card-qr-wrap {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.pa-sub-wa-qr-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.pa-sub-wa-qr-box:hover {
    transform: scale(1.03);
}

.pa-sub-wa-qr-box svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pa-sub-wa-qr-caption {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    color: #94a3b8;
    font-weight: 600;
}

body.pa-theme-soft .pa-sub-wa-qr-caption {
    color: #475569;
}

.pa-sub-wa-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25D366;
    color: #052e16 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 900;
    padding: 11px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.pa-sub-wa-cta-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: #052e16 !important;
}

/* Móvil y tablet (< 992px): banner compacto encima del listado de subastas */
@media (max-width: 991px) {
    .pa-sub-main-with-aside,
    .pa-sub-single-with-aside {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .pa-sub-wa-aside {
        position: static;
        order: -1;
        width: 100%;
    }

    .pa-sub-wa-card {
        padding: 14px;
        gap: 10px;
    }

    .pa-sub-wa-card-qr-wrap {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 12px;
        padding: 10px;
    }

    .pa-sub-wa-qr-box {
        width: 110px;
        height: 110px;
        flex-shrink: 0;
    }

    .pa-sub-wa-qr-caption {
        text-align: left;
        font-size: 11.5px;
    }
}


/* ==========================================================================
   SUBASTAS PANDA V3 — ESTÉTICA CLARA ALTO CONTRASTE + GRILLA COMPACTA 2x2
   ========================================================================== */

.pa-sub-light-root {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-radius: 16px;
    padding: 14px 16px 36px !important;
}

/* Mantener tarjeta WhatsApp en estética clara dentro de /subastas/ */
.pa-sub-light-root .pa-sub-wa-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid #25D366 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}
.pa-sub-light-root .pa-sub-wa-card-title { color: #0f172a !important; }
.pa-sub-light-root .pa-sub-wa-card-desc,
.pa-sub-light-root .pa-sub-wa-qr-caption { color: #475569 !important; }
.pa-sub-light-root .pa-sub-wa-card-qr-wrap {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* Cintillo informativo superior */
.pa-sub-info-strip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #ff5500;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.pa-sub-info-strip-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pa-sub-live-badge-light {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}
.pa-sub-info-strip-text {
    font-size: 12.5px;
    color: #0f172a;
    line-height: 1.35;
}
.pa-sub-info-strip-sub {
    font-size: 11px;
    color: #475569;
    font-weight: 600;
}

/* Barra de acciones, alertas, bono IG, historial y ordenamiento */
.pa-sub-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.pa-sub-toolbar-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pa-sub-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
}
.pa-sub-dot-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.pa-sub-pill-btn {
    appearance: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.pa-sub-pill-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.pa-sub-pill-btn.is-push {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.pa-sub-pill-btn.is-push.is-active {
    background: #dcfce7;
    border-color: #4ade80;
    color: #15803d;
}
.pa-sub-pill-btn.is-bonus {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}
.pa-sub-pill-btn.is-history {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}
.pa-sub-sort-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pa-sub-sort-label {
    font-size: 11.5px;
    font-weight: 800;
    color: #334155;
}
.pa-sub-sort-select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Popover de Web Push */
.pa-push-wrap { position: relative; }
.pa-push-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 280px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    z-index: 900;
    color: #0f172a;
}
.pa-push-pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}
.pa-push-pop-x {
    background: #f1f5f9;
    border: none;
    color: #334155;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
}
.pa-push-pop-desc {
    font-size: 11.5px;
    color: #475569;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.pa-push-chk-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    cursor: pointer;
}
.pa-push-action-btn {
    width: 100%;
    margin-top: 6px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.pa-push-unsub-btn {
    width: 100%;
    margin-top: 6px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.pa-push-ios-tip {
    margin-top: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 11px;
    line-height: 1.4;
}

/* Barra Fija de Contraataque */
.pa-sub-outbid-bar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, calc(100vw - 20px));
    background: #0f172a;
    color: #ffffff;
    border: 2px solid #ff5500;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.35);
    z-index: 999998 !important;
}
.pa-sub-outbid-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.pa-sub-outbid-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
}
.pa-sub-outbid-text strong { color: #fb923c; font-size: 13px; }
.pa-sub-outbid-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pa-sub-outbid-btn {
    background: #ff5500;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}
.pa-sub-outbid-close {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 800;
}

/* Layout principal + Aside WhatsApp */
.pa-sub-light-root .pa-sub-main-with-aside {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    margin-top: 0;
}

/* GRILLA COMPACTA V3: 4–5 columnas en desktop, 2x2 en móvil (4 por pantalla) */
.pa-sub-compact-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
}
@media (min-width: 1580px) {
    .pa-sub-compact-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 1180px) {
    .pa-sub-compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 991px) {
    .pa-sub-light-root .pa-sub-wa-aside {
        order: 2 !important;
    }
}
@media (max-width: 767px) {
    .pa-sub-light-root {
        padding: 8px 8px 28px !important;
        border-radius: 0;
    }
    .pa-sub-info-strip {
        padding: 6px 8px;
        margin-bottom: 6px;
    }
    .pa-sub-info-strip-text { font-size: 11px; }
    .pa-sub-info-strip-sub { display: none; }
    .pa-sub-toolbar {
        padding: 6px 8px;
        margin-bottom: 8px;
        gap: 6px;
    }
    .pa-sub-pill-btn {
        padding: 4px 8px;
        font-size: 10.5px;
    }
    .pa-sub-count-pill { display: none; }
    .pa-sub-sort-wrap { width: 100%; }
    .pa-sub-sort-select { flex: 1; font-size: 11px; padding: 4px 8px; }
    .pa-sub-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }
}

/* Tarjeta Compacta V3 */
.pa-sub-card-v3 {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    color: #0f172a;
}
.pa-sub-card-v3:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.pa-sub-card-v3.is-scheduled {
    border-style: dashed;
    border-color: #93c5fd;
}

/* Foto Cuadrada 1:1 sin recortes sobre #ffffff */
.pa-sub-v3-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 6px;
    overflow: hidden;
    text-decoration: none;
}
.pa-sub-v3-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pa-sub-v3-noimg {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

/* Badges flotantes sobre la foto */
.pa-sub-v3-status {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
    font-size: 9.5px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
}
.pa-sub-v3-status.is-live {
    background: #ef4444;
    color: #ffffff;
}
.pa-sub-v3-status.is-next {
    background: #0284c7;
    color: #ffffff;
}
.pa-sub-v3-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
}
.pa-sub-v3-timer {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.88) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 10.5px !important;
    font-weight: 900 !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0.3px !important;
}
.pa-sub-v3-cond {
    position: absolute;
    bottom: 5px;
    left: 5px;
    z-index: 2;
}

/* Badge de condición de caja */
.pa-cond-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    line-height: 1.2;
}
.pa-cond-badge.is-sealed {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.pa-cond-badge.is-open {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.pa-cond-badge.is-loose {
    background: #e2e8f0;
    color: #334155;
    border: 1px solid #cbd5e1;
}

/* Cuerpo compacto de tarjeta */
.pa-sub-v3-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.pa-sub-v3-title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.pa-sub-v3-title a {
    color: inherit;
    text-decoration: none;
}
.pa-sub-v3-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
}
.pa-sub-v3-price {
    font-size: 17px;
    font-weight: 900;
    color: #15803d;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.pa-sub-v3-bids-pill {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 999px;
    white-space: nowrap;
}
.pa-sub-v3-leader {
    font-size: 11px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pa-sub-v3-leader-lbl { color: #64748b; }
.pa-sub-v3-leader-name {
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pa-sub-v3-you {
    background: #dcfce7;
    color: #15803d;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Barra fina de Meta Desbloqueable (Stretch Goal) */
.pa-stretch-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 6px;
}
.pa-stretch-txt {
    font-size: 10px;
    color: #334155;
    line-height: 1.25;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pa-stretch-track {
    width: 100%;
    height: 5px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.pa-stretch-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5500, #22c55e);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Botones de puja 2x2 */
.pa-sub-bids-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: auto;
}
.pa-sub-bids-grid-2x2.is-single {
    gap: 8px;
}
.pa-bid-btn {
    appearance: none;
    border: none;
    border-radius: 7px;
    padding: 6px 2px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    transition: transform 0.12s ease, opacity 0.12s ease;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.pa-sub-bids-grid-2x2.is-single .pa-bid-btn {
    padding: 10px 6px;
    font-size: 13px;
}
.pa-bid-btn:active { transform: scale(0.97); }
.pa-bid-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.pa-bid-btn.is-01 {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}
.pa-bid-btn.is-1 {
    background: #ff5500;
    color: #ffffff;
}
.pa-bid-btn.is-5 {
    background: #16a34a;
    color: #ffffff;
}
.pa-bid-btn.is-10.is-vip-open {
    background: #0f172a;
    color: #fbbf24;
    border: 1px solid #f59e0b;
}
.pa-bid-btn.is-10.is-vip-locked {
    background: #f1f5f9;
    color: #64748b;
    border: 1px dashed #cbd5e1;
}

.pa-sub-sched-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    padding: 6px 4px;
    border-radius: 7px;
    margin-top: auto;
}
.pa-sub-card-msg {
    font-size: 10.5px;
    padding: 4px 6px;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.3;
}
.pa-sub-v3-link {
    display: block;
    text-align: center;
    font-size: 10.5px;
    font-weight: 800;
    color: #334155;
    text-decoration: none;
    padding-top: 3px;
    border-top: 1px solid #f1f5f9;
}
.pa-sub-v3-link:hover { color: #ff5500; }

/* Ultra-compacto en móvil (< 768px) para ver 4 subastas por pantalla (2x2) */
@media (max-width: 767px) {
    .pa-sub-v3-media {
        max-height: 118px;
        padding: 4px;
    }
    .pa-sub-v3-body {
        padding: 6px;
        gap: 3px;
    }
    .pa-sub-v3-title {
        font-size: 11px;
        min-height: 2.4em;
    }
    .pa-sub-v3-price { font-size: 14.5px; }
    .pa-sub-v3-leader { font-size: 10px; }
    .pa-bid-btn {
        padding: 5px 1px;
        font-size: 10px;
    }
    .pa-sub-v3-link { font-size: 10px; padding-top: 2px; }
}

.pa-sub-empty-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 36px 20px;
    text-align: center;
    margin-bottom: 20px;
}
.pa-sub-single-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

/* ==========================================================================
   PODIO DE PREMIOS DE AYER (EN /subastas/ Y PORTADA)
   ========================================================================== */
.pa-podium-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-top: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    color: #0f172a;
}
.pa-podium-section.is-home-compact {
    margin: 18px 0 22px 0;
    padding: 14px 16px;
    border-top: 3px solid #ff5500;
}
.pa-podium-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.pa-podium-title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}
.pa-podium-date {
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
}
.pa-podium-sub {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #475569;
}
.pa-podium-cta {
    background: #ff5500;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
}
.pa-podium-cta:hover { background: #ea580c; }
.pa-podium-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #475569;
}
.pa-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 860px) {
    .pa-podium-grid { grid-template-columns: 1fr; }
}
.pa-podium-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pa-podium-card.rank-1 { border-top: 3px solid #f59e0b; }
.pa-podium-card.rank-2 { border-top: 3px solid #22c55e; }
.pa-podium-card.rank-3 { border-top: 3px solid #6366f1; }
.pa-podium-badge {
    font-size: 11px;
    font-weight: 900;
    color: #0f172a;
}
.pa-podium-body {
    display: flex;
    gap: 10px;
    align-items: center;
}
.pa-podium-img-wrap {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.pa-podium-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pa-podium-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pa-podium-name {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pa-podium-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.pa-podium-win-price {
    font-size: 15px;
    font-weight: 900;
    color: #15803d;
}
.pa-podium-ref-price {
    font-size: 11px;
    color: #64748b;
    text-decoration: line-through;
}
.pa-podium-save {
    font-size: 11px;
    font-weight: 800;
    color: #ea580c;
}
.pa-podium-meta {
    font-size: 11px;
    color: #475569;
}
.pa-podium-rescue-btn,
.pa-won-rescue-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    background: #eff6ff;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
}
.pa-podium-rescue-btn:hover,
.pa-won-rescue-btn:hover {
    background: #dbeafe;
}

/* ==========================================================================
   MODALES: BONO IG (-S/ 2.00 + ARTE 9:16) E HISTORIAL GANADAS
   ========================================================================== */
.pa-sub-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.pa-sub-modal-box {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    width: min(500px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}
.pa-sub-modal-box.pa-sub-modal-wide {
    width: min(860px, 100%);
}
.pa-sub-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.pa-sub-modal-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 900;
    color: #0f172a;
}
.pa-sub-modal-close {
    background: #e2e8f0;
    color: #0f172a;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}
.pa-sub-modal-body {
    padding: 16px;
    overflow-y: auto;
}
.pa-ig-rules-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}
.pa-ig-rules-lead {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #78350f;
}
.pa-ig-rules-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    color: #78350f;
    line-height: 1.5;
}
.pa-ig-gen-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}
.pa-ig-gen-title {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}
.pa-ig-gen-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}
.pa-ig-gen-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 10px;
}
.pa-ig-gen-btn {
    width: 100%;
    background: linear-gradient(135deg, #f97316 0%, #db2777 100%);
    color: #ffffff;
    border: none;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}
.pa-ig-gen-status {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
}

/* Historial de Subastas Ganadas */
.pa-won-hist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 680px) {
    .pa-won-hist-grid { grid-template-columns: 1fr; }
}
.pa-won-hist-item {
    display: flex;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    align-items: center;
}
.pa-won-hist-thumb {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}
.pa-won-hist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pa-won-hist-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pa-won-hist-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.pa-won-hist-date {
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
}
.pa-won-hist-name {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pa-won-hist-meta {
    font-size: 11px;
    color: #475569;
}
.pa-won-hist-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.pa-won-hist-price {
    font-size: 14px;
    font-weight: 900;
    color: #15803d;
}

/* Botón Probar Notificación en mini-panel Alertas Activas */
.pa-push-test-btn {
    width: 100%;
    margin-top: 6px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.pa-push-test-btn:hover {
    background: #1e293b;
}
.pa-push-test-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Check Azul Verificado Panda */
.pa-verified-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -2px;
    margin-left: 3px;
    line-height: 1;
    flex-shrink: 0;
}
.pa-verified-check svg {
    display: block;
    filter: drop-shadow(0 1px 2px rgba(29, 155, 240, 0.28));
}

/* ==========================================================================
   SECCIÓN VISIBLE: SUBASTAS FINALIZADAS (ÚLTIMOS 2 DÍAS) + PODIO TOP 3 + RESCATE
   ========================================================================== */
.pa-fin48-section {
    margin-top: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #0f172a;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}
.pa-fin48-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.pa-fin48-head-left {
    flex: 1;
    min-width: 240px;
}
.pa-fin48-title {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.25;
}
.pa-fin48-sub {
    margin: 0;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.45;
}
.pa-fin48-hist-btn {
    flex-shrink: 0;
}
.pa-fin48-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}
.pa-fin48-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 860px) {
    .pa-fin48-grid {
        grid-template-columns: 1fr;
    }
}
.pa-fin48-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.pa-fin48-card.is-user-in-top3 {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.16);
}
.pa-fin48-card-top {
    display: flex;
    gap: 12px;
    align-items: center;
}
.pa-fin48-thumb {
    width: 82px;
    height: 82px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    overflow: hidden;
}
.pa-fin48-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pa-fin48-noimg {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 700;
}
.pa-fin48-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pa-fin48-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pa-fin48-code {
    background: #0f172a;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}
.pa-fin48-closed {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}
.pa-fin48-name {
    margin: 0;
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.3;
    color: #0f172a;
}
.pa-fin48-name a {
    color: inherit;
    text-decoration: none;
}
.pa-fin48-name a:hover {
    color: #ff5500;
}
.pa-fin48-podium {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pa-fin48-no-bids {
    font-size: 12px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    font-weight: 600;
}
.pa-fin48-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
.pa-fin48-row.is-rank-1 {
    background: #fffbeb;
    border-color: #fcd34d;
}
.pa-fin48-row.is-me {
    background: #ecfdf5;
    border-color: #10b981;
    box-shadow: inset 3px 0 0 #10b981;
}
.pa-fin48-row-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pa-fin48-role {
    font-size: 11px;
    color: #475569;
    line-height: 1.25;
}
.pa-fin48-row.is-rank-1 .pa-fin48-role {
    color: #92400e;
}
.pa-fin48-bidder {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pa-fin48-bidder-name {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
}
.pa-fin48-me-badge {
    display: inline-flex;
    align-items: center;
    background: #10b981;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 900;
    padding: 1px 7px;
    border-radius: 999px;
}
.pa-fin48-row-right {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}
.pa-fin48-price {
    font-size: 14px;
    font-weight: 900;
    color: #15803d;
}
.pa-fin48-time {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 600;
}
.pa-fin48-you-notice {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 12px;
    color: #9a3412;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pa-fin48-verify-chip {
    display: inline-block;
    align-self: flex-start;
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}
.pa-fin48-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.pa-fin48-wa-btn {
    flex: 1 1 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25D366;
    color: #052e16 !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 900;
    padding: 9px 12px;
    border-radius: 9px;
    text-align: center;
    transition: filter 0.15s ease;
}
.pa-fin48-wa-btn:hover {
    filter: brightness(1.05);
}
.pa-fin48-rescue-btn {
    flex: 1 1 190px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #ff5500;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 900;
    padding: 9px 12px;
    border-radius: 9px;
    text-align: center;
    transition: filter 0.15s ease;
}
.pa-fin48-rescue-btn:hover {
    filter: brightness(1.06);
}
@media (max-width: 480px) {
    .pa-fin48-section {
        padding: 12px;
    }
    .pa-fin48-title {
        font-size: 15px;
    }
    .pa-fin48-thumb {
        width: 68px;
        height: 68px;
    }
    .pa-fin48-row {
        padding: 7px 8px;
    }
}
