/**
 * Qubi Trend Portals - Frontend Styles
 * Matching PeepSo Gecko Dark Theme
 */

/* ========================================
   CSS Variables - Qubi Theme Colors
   ======================================== */
:root {
    --qtp-bg-dark: #0d0d1a;
    --qtp-bg-card: #1a1a2e;
    --qtp-bg-card-hover: #252542;
    --qtp-bg-input: #12121f;
    --qtp-border: #2d2d4a;
    --qtp-border-light: #3d3d5a;
    --qtp-text-primary: #ffffff;
    --qtp-text-secondary: #a0a0b8;
    --qtp-text-muted: #6b6b8a;
    --qtp-accent-purple: #7c3aed;
    --qtp-accent-purple-hover: #9333ea;
    --qtp-accent-teal: #14b8a6;
    --qtp-accent-pink: #ec4899;
    --qtp-success: #22c55e;
    --qtp-warning: #f59e0b;
    --qtp-error: #ef4444;
    --qtp-gradient-primary: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --qtp-gradient-teal: linear-gradient(135deg, #14b8a6 0%, #7c3aed 100%);
    --qtp-gradient-dark: linear-gradient(180deg, rgba(13, 13, 26, 0) 0%, rgba(13, 13, 26, 0.95) 100%);
    --qtp-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --qtp-shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
    --qtp-shadow-glow-teal: 0 0 40px rgba(20, 184, 166, 0.3);
    --qtp-radius: 16px;
    --qtp-radius-sm: 10px;
    --qtp-radius-lg: 24px;
}

/* ========================================
   Trend Portal Naming System Styles
   ======================================== */
.qtp-portal-card-name {
    margin-bottom: 8px;
}

.qtp-brand-prefix {
    display: block;
    font-size: 12px;
    color: var(--qtp-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 4px;
}

.qtp-ticker-name {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--qtp-text-primary);
    line-height: 1.2;
}

.qtp-portal-card-desc {
    font-size: 13px;
    color: var(--qtp-text-secondary);
    margin: 0 0 12px;
    line-height: 1.5;
}

.qtp-portal-card-ticker {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(20, 184, 166, 0.15);
    color: var(--qtp-accent-teal);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hero Title Naming */
.qtp-coin-name .qtp-brand-text {
    display: none; /* Hidden - redundant with badge above */
}

.qtp-coin-name .qtp-ticker-text {
    display: block;
    font-size: 56px;
    font-weight: 800;
    background: var(--qtp-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qtp-narrative-desc {
    font-size: 18px;
    color: var(--qtp-text-secondary);
    margin-bottom: 16px;
}

.qtp-ticker-badge {
    display: none; /* Hidden - redundant with main title */
}

@media (max-width: 768px) {
    .qtp-coin-name .qtp-ticker-text {
        font-size: 36px;
    }
    
    .qtp-coin-name .qtp-brand-text {
        font-size: 16px;
    }
    
    .qtp-ticker-name {
        font-size: 18px;
    }
}

/* ========================================
   Price Ticker Bar
   ======================================== */
.qtp-ticker-bar {
    background: linear-gradient(90deg, #0d0d1a 0%, #1a1a2e 50%, #0d0d1a 100%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    overflow: hidden;
    position: relative;
    height: 40px;
    width: 100%;
}

.qtp-ticker-bar::before,
.qtp-ticker-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.qtp-ticker-bar::before {
    left: 0;
    background: linear-gradient(90deg, #0d0d1a 0%, transparent 100%);
}

.qtp-ticker-bar::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, #0d0d1a 100%);
}

.qtp-ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.qtp-ticker-content {
    display: flex;
    align-items: center;
    gap: 0;
    animation: qtp-ticker-scroll 40s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.qtp-ticker-content:hover {
    animation-play-state: paused;
}

@keyframes qtp-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.qtp-ticker-loading {
    padding: 0 20px;
    font-size: 12px;
    color: var(--qtp-text-muted);
}

.qtp-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 30px;
    font-size: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.qtp-ticker-label {
    color: var(--qtp-text-muted);
    font-weight: 400;
}

.qtp-ticker-value {
    color: var(--qtp-text-primary);
    font-weight: 600;
}

.qtp-ticker-value.positive {
    color: var(--qtp-success);
}

.qtp-ticker-value.negative {
    color: var(--qtp-error);
}

.qtp-ticker-coin-name {
    color: var(--qtp-accent-teal);
    font-weight: 700;
}

.qtp-ticker-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qtp-ticker-change {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.qtp-ticker-change.positive {
    background: rgba(34, 197, 94, 0.2);
    color: var(--qtp-success);
}

.qtp-ticker-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: var(--qtp-error);
}

.qtp-ticker-divider {
    width: 4px;
    height: 4px;
    background: var(--qtp-accent-purple);
    border-radius: 50%;
    margin: 0 20px;
    flex-shrink: 0;
}

/* Mobile ticker */
@media (max-width: 768px) {
    .qtp-ticker-bar {
        height: 36px;
    }
    
    .qtp-ticker-item {
        padding: 0 20px;
        font-size: 11px;
        gap: 6px;
    }
    
    .qtp-ticker-content {
        animation-duration: 35s;
    }
}

/* ========================================
   Portal Page Layout
   ======================================== */
.qtp-portal-page {
    background: var(--qtp-bg-dark);
    min-height: 100vh;
    color: var(--qtp-text-primary);
}

.qtp-portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 40px;
}

/* ========================================
   Hero Section
   ======================================== */
.qtp-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.qtp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.1);
}

.qtp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--qtp-gradient-dark);
}

.qtp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
}

.qtp-coin-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    box-shadow: var(--qtp-shadow-glow);
    animation: qtp-pulse 3s ease-in-out infinite;
}

@keyframes qtp-pulse {
    0%, 100% { box-shadow: var(--qtp-shadow-glow); }
    50% { box-shadow: 0 0 60px rgba(124, 58, 237, 0.5); }
}

.qtp-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid var(--qtp-accent-purple);
    border-radius: 30px;
    font-size: 13px;
    color: var(--qtp-accent-purple);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.qtp-portal-badge.live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--qtp-success);
    border-radius: 50%;
    animation: qtp-blink 1.5s ease-in-out infinite;
}

@keyframes qtp-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.qtp-coin-name {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 8px;
    background: var(--qtp-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qtp-coin-ticker {
    font-size: 24px;
    color: var(--qtp-accent-teal);
    font-weight: 600;
    margin-bottom: 24px;
}

.qtp-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.qtp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--qtp-radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.qtp-btn-primary {
    background: var(--qtp-gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.qtp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    color: white;
}

.qtp-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.qtp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.qtp-btn-teal {
    background: var(--qtp-gradient-teal);
    color: white;
}

/* ========================================
   Status Badge
   ======================================== */
.qtp-status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.qtp-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.qtp-status-pill.active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--qtp-success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.qtp-status-pill.trending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--qtp-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
    animation: qtp-glow-orange 2s ease-in-out infinite;
}

@keyframes qtp-glow-orange {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.5); }
}

.qtp-status-pill.archived {
    background: rgba(107, 107, 138, 0.2);
    color: var(--qtp-text-muted);
    border: 1px solid rgba(107, 107, 138, 0.3);
}

/* ========================================
   Main Content Grid
   ======================================== */
.qtp-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .qtp-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========================================
   Chat Section
   ======================================== */
.qtp-chat-section {
    background: var(--qtp-bg-card);
    border-radius: var(--qtp-radius);
    overflow: hidden;
    border: 1px solid var(--qtp-border);
}

.qtp-chat-header {
    padding: 20px 24px;
    background: var(--qtp-bg-input);
    border-bottom: 1px solid var(--qtp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qtp-chat-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qtp-chat-header h3 span {
    font-size: 22px;
}

.qtp-online-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--qtp-success);
}

.qtp-online-count::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--qtp-success);
    border-radius: 50%;
}

/* ========================================
   Pinned Message
   ======================================== */
.qtp-pinned-message {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border-left: 4px solid var(--qtp-accent-purple);
    padding: 16px 20px;
    margin: 16px;
    border-radius: var(--qtp-radius-sm);
}

.qtp-pinned-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--qtp-accent-purple);
    margin-bottom: 8px;
    font-weight: 600;
}

.qtp-pinned-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--qtp-text-secondary);
}

.qtp-pinned-content a {
    color: var(--qtp-accent-teal);
    text-decoration: none;
}

.qtp-pinned-content a:hover {
    text-decoration: underline;
}

/* ========================================
   Chat Embed Container
   ======================================== */
.qtp-chat-embed {
    min-height: 500px;
    padding: 0;
}

.qtp-chat-embed iframe {
    width: 100%;
    min-height: 500px;
    border: none;
}

.qtp-guest-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    background: var(--qtp-bg-input);
    margin: 16px;
    border-radius: var(--qtp-radius-sm);
}

.qtp-guest-notice .qtp-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.qtp-guest-notice h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.qtp-guest-notice p {
    color: var(--qtp-text-secondary);
    margin: 0 0 20px;
}

/* ========================================
   Sidebar
   ======================================== */
.qtp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========================================
   Info Cards
   ======================================== */
.qtp-info-card {
    background: var(--qtp-bg-card);
    border-radius: var(--qtp-radius);
    padding: 24px;
    border: 1px solid var(--qtp-border);
}

.qtp-info-card h4 {
    margin: 0 0 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--qtp-text-primary);
}

.qtp-info-card h4 span {
    font-size: 20px;
}

/* ========================================
   Quick Stats
   ======================================== */
.qtp-quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.qtp-quick-stat {
    background: var(--qtp-bg-input);
    padding: 16px;
    border-radius: var(--qtp-radius-sm);
    text-align: center;
}

.qtp-quick-stat .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--qtp-accent-teal);
    margin-bottom: 4px;
}

.qtp-quick-stat .label {
    font-size: 11px;
    color: var(--qtp-text-muted);
    text-transform: uppercase;
}

/* ========================================
   Contract Address
   ======================================== */
.qtp-contract-box {
    background: var(--qtp-bg-input);
    border-radius: var(--qtp-radius-sm);
    padding: 16px;
}

.qtp-contract-label {
    font-size: 11px;
    color: var(--qtp-text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.qtp-contract-address {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qtp-contract-address code {
    flex: 1;
    background: var(--qtp-bg-dark);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--qtp-accent-purple);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qtp-copy-btn {
    background: var(--qtp-accent-purple);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.qtp-copy-btn:hover {
    background: var(--qtp-accent-purple-hover);
}

.qtp-copy-btn.copied {
    background: var(--qtp-success);
}

/* ========================================
   Social Links
   ======================================== */
.qtp-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qtp-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--qtp-bg-input);
    border: 1px solid var(--qtp-border);
    border-radius: var(--qtp-radius-sm);
    color: var(--qtp-text-secondary);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qtp-social-link:hover {
    background: var(--qtp-accent-purple);
    border-color: var(--qtp-accent-purple);
    color: white;
    transform: translateY(-2px);
}

.qtp-social-link.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.qtp-social-link.telegram:hover { background: #0088cc; border-color: #0088cc; }
.qtp-social-link.dexscreener:hover { background: var(--qtp-accent-teal); border-color: var(--qtp-accent-teal); }
.qtp-social-link.website:hover { background: #a855f7; border-color: #a855f7; }
.qtp-social-link.buy:hover { background: var(--qtp-success); border-color: var(--qtp-success); }

/* ========================================
   About Section
   ======================================== */
.qtp-about-section {
    margin-top: 24px;
    padding: 24px !important;
}

.qtp-about-section h4 {
    margin-bottom: 16px;
}

.qtp-about-content {
    color: var(--qtp-text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

.qtp-about-content p {
    margin: 0 0 14px;
}

.qtp-about-content p:last-child {
    margin-bottom: 0;
}

.qtp-about-content a {
    color: var(--qtp-accent-teal);
}

/* ========================================
   Global Portal Message
   ======================================== */
.qtp-global-message {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(20, 184, 166, 0.15));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--qtp-radius);
    padding: 24px;
    margin-top: 24px;
}

.qtp-global-message-content {
    color: var(--qtp-text-primary);
    font-size: 14px;
    line-height: 1.7;
}

.qtp-global-message-content p {
    margin: 0 0 12px;
}

.qtp-global-message-content p:last-child {
    margin-bottom: 0;
}

.qtp-global-message-content a {
    color: var(--qtp-accent-teal);
    text-decoration: underline;
}

.qtp-global-message-content a:hover {
    color: var(--qtp-accent-purple);
}

.qtp-global-message-content strong {
    color: var(--qtp-text-primary);
}

/* ========================================
   Risk Disclaimer
   ======================================== */
.qtp-risk-disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--qtp-radius);
    padding: 24px;
    margin-top: 24px;
}

.qtp-risk-disclaimer h4 {
    color: var(--qtp-error);
    margin: 0 0 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qtp-risk-disclaimer p {
    color: var(--qtp-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   Qubi Ecosystem Card
   ======================================== */
.qtp-ecosystem-card {
    background: var(--qtp-gradient-primary);
    border: none;
    position: relative;
    overflow: hidden;
}

.qtp-ecosystem-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.qtp-ecosystem-card h4 {
    color: white;
}

.qtp-ecosystem-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.qtp-ecosystem-card .qtp-btn {
    background: white;
    color: var(--qtp-accent-purple);
}

.qtp-ecosystem-card .qtp-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Related Portals
   ======================================== */
.qtp-related-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--qtp-border);
}

.qtp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.qtp-section-header h3 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qtp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.qtp-portal-card {
    background: var(--qtp-bg-card);
    border-radius: var(--qtp-radius);
    overflow: hidden;
    border: 1px solid var(--qtp-border);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.qtp-portal-card:hover {
    transform: translateY(-5px);
    border-color: var(--qtp-accent-purple);
    box-shadow: var(--qtp-shadow-glow);
}

.qtp-portal-card-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.qtp-portal-card-logo {
    position: absolute;
    bottom: -25px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--qtp-bg-card);
    background: var(--qtp-bg-card);
}

.qtp-portal-card-content {
    padding: 35px 20px 20px;
}

.qtp-portal-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--qtp-text-primary);
    margin: 0 0 4px;
}

.qtp-portal-card-ticker {
    color: var(--qtp-accent-teal);
    font-size: 14px;
    font-weight: 500;
}

.qtp-portal-card-theme {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 20px;
    font-size: 12px;
    color: var(--qtp-accent-purple);
}

/* ========================================
   Archive Page Grid
   ======================================== */
.qtp-archive-page {
    padding: 40px 0;
}

.qtp-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.qtp-archive-header h1 {
    font-size: 36px;
    margin: 0 0 12px;
    background: var(--qtp-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qtp-archive-header p {
    color: var(--qtp-text-secondary);
    font-size: 16px;
    margin: 0;
}

.qtp-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.qtp-filter-tab {
    padding: 10px 24px;
    background: var(--qtp-bg-card);
    border: 1px solid var(--qtp-border);
    border-radius: 30px;
    color: var(--qtp-text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qtp-filter-tab:hover,
.qtp-filter-tab.active {
    background: var(--qtp-accent-purple);
    border-color: var(--qtp-accent-purple);
    color: white;
}

.qtp-portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ========================================
   No Results
   ======================================== */
.qtp-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--qtp-text-muted);
}

.qtp-no-results .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ========================================
   Hub Page Sidebar Portals List
   ======================================== */
.qtp-hub-portal-layout {
    max-width: 1400px;
    margin: 0 auto;
}

.qtp-portals-sidebar {
    padding: 0 !important;
    overflow: hidden;
}

.qtp-portals-sidebar h4 {
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid var(--qtp-border);
}

.qtp-sidebar-portals-list {
    max-height: 500px;
    overflow-y: auto;
}

.qtp-sidebar-portal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--qtp-border);
    transition: all 0.2s ease;
}

.qtp-sidebar-portal-item:last-child {
    border-bottom: none;
}

.qtp-sidebar-portal-item:hover {
    background: var(--qtp-bg-input);
}

.qtp-sidebar-portal-item.trending {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
}

.qtp-sidebar-portal-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--qtp-bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qtp-sidebar-portal-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qtp-sidebar-portal-logo span {
    font-size: 18px;
}

.qtp-sidebar-portal-info {
    flex: 1;
    min-width: 0;
}

.qtp-sidebar-portal-name {
    display: block;
    font-weight: 600;
    color: var(--qtp-text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qtp-sidebar-portal-ticker {
    display: block;
    font-size: 11px;
    color: var(--qtp-text-muted);
    letter-spacing: 0.5px;
}

.qtp-sidebar-trending-badge {
    font-size: 14px;
    animation: qtp-pulse 1.5s infinite;
}

.qtp-sidebar-upcoming-badge {
    font-size: 14px;
    opacity: 0.7;
}

/* Teaser Mode Styling */
.qtp-sidebar-portal-item.teaser {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    cursor: default;
    border: 1px dashed rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    margin: 4px 8px;
    padding: 10px 12px;
}

.qtp-sidebar-portal-item.teaser:hover {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
}

.qtp-sidebar-portal-logo.teaser-logo {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(124, 58, 237, 0.3));
    animation: qtp-teaser-pulse 2s infinite;
}

.qtp-sidebar-portal-logo.teaser-logo span {
    font-size: 20px;
}

.qtp-sidebar-portal-name.teaser-name {
    color: var(--qtp-warning);
    font-style: italic;
}

.qtp-sidebar-portal-ticker.teaser-time {
    color: var(--qtp-accent-purple);
    font-size: 10px;
}

@keyframes qtp-teaser-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% { 
        box-shadow: 0 0 8px 2px rgba(245, 158, 11, 0.2);
    }
}

.qtp-sidebar-arrow {
    color: var(--qtp-text-muted);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.qtp-sidebar-portal-item:hover .qtp-sidebar-arrow {
    opacity: 1;
    transform: translateX(0);
}

.qtp-no-portals-sidebar {
    padding: 30px 20px;
    text-align: center;
}

.qtp-no-portals-sidebar p {
    margin: 0;
    color: var(--qtp-text-muted);
}

.qtp-no-portals-sidebar p.small {
    font-size: 12px;
    margin-top: 6px;
}

/* No Chat Placeholder */
.qtp-no-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 400px;
}

.qtp-no-chat-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.qtp-no-chat h4 {
    margin: 0 0 8px;
    color: var(--qtp-text-primary);
}

.qtp-no-chat p {
    margin: 0;
    color: var(--qtp-text-muted);
    font-size: 14px;
}

.qtp-no-chat .qtp-admin-notice {
    margin-top: 20px;
}

.qtp-no-chat .qtp-admin-notice a {
    color: var(--qtp-accent-teal);
}

/* Info List */
.qtp-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qtp-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qtp-info-item .label {
    color: var(--qtp-text-muted);
    font-size: 13px;
}

.qtp-info-item .value {
    color: var(--qtp-text-primary);
    font-weight: 600;
    font-size: 14px;
}

/* What Card Inline */
.qtp-what-card-inline {
    margin-bottom: 20px;
}

.qtp-what-card-inline h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.qtp-what-card-inline p {
    margin: 0;
    color: var(--qtp-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Section Description */
.qtp-section-desc {
    margin: 0 0 16px;
    color: var(--qtp-text-muted);
    font-size: 13px;
}

/* Hub Archived Grid - compact */
.qtp-hub-portal-layout .qtp-archived-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.qtp-hub-portal-layout .qtp-archived-card {
    padding: 12px;
}

.qtp-hub-portal-layout .qtp-archived-logo,
.qtp-hub-portal-layout .qtp-archived-logo-placeholder {
    width: 36px;
    height: 36px;
}

.qtp-hub-portal-layout .qtp-archived-info h5 {
    margin: 0;
    font-size: 13px;
    color: var(--qtp-text-primary);
}

/* ========================================
   Live Price Widget
   ======================================== */
.qtp-price-widget {
    background: linear-gradient(135deg, var(--qtp-bg-card) 0%, rgba(124, 58, 237, 0.1) 100%) !important;
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
}

.qtp-price-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--qtp-text-muted);
    font-size: 13px;
}

.qtp-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--qtp-border);
    border-top-color: var(--qtp-accent-purple);
    border-radius: 50%;
    animation: qtp-spin 0.8s linear infinite;
}

.qtp-price-content {
    padding: 5px 0 0;
}

.qtp-price-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.qtp-price-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--qtp-text-primary);
    font-family: 'SF Mono', Monaco, monospace;
    transition: color 0.3s ease;
}

.qtp-price-value.price-up {
    color: var(--qtp-success);
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.qtp-price-value.price-down {
    color: var(--qtp-error);
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.qtp-price-change {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.qtp-price-change.positive {
    background: rgba(34, 197, 94, 0.15);
    color: var(--qtp-success);
}

.qtp-price-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--qtp-error);
}

/* Price Progress Bar */
.qtp-price-bar-container {
    margin-bottom: 16px;
}

.qtp-price-bar {
    height: 10px;
    background: var(--qtp-bg-input);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.qtp-price-bar-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--qtp-accent-purple), var(--qtp-accent-teal));
    border-radius: 5px;
    transition: width 0.5s ease, background 0.3s ease;
    position: relative;
}

.qtp-price-bar-fill.pumping {
    background: linear-gradient(90deg, var(--qtp-success), #4ade80) !important;
    animation: qtp-pulse-green 0.5s ease;
}

.qtp-price-bar-fill.dumping {
    background: linear-gradient(90deg, var(--qtp-error), #f87171) !important;
    animation: qtp-pulse-red 0.5s ease;
}

.qtp-price-bar-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qtp-price-bar-fill.pumping .qtp-price-bar-glow,
.qtp-price-bar-fill.dumping .qtp-price-bar-glow {
    opacity: 1;
}

@keyframes qtp-pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    50% { box-shadow: 0 0 25px 8px rgba(34, 197, 94, 0.5); }
}

@keyframes qtp-pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 25px 8px rgba(239, 68, 68, 0.5); }
}

.qtp-price-range {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: var(--qtp-text-muted);
}

/* Price Stats */
.qtp-price-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.qtp-price-stat {
    background: var(--qtp-bg-input);
    padding: 8px 6px;
    border-radius: 8px;
    text-align: center;
}

.qtp-price-stat .label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    color: var(--qtp-text-muted);
    margin-bottom: 4px;
}

.qtp-price-stat .value {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--qtp-text-primary);
}

.qtp-price-updated {
    text-align: center;
    font-size: 11px;
    color: var(--qtp-text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--qtp-border);
}

.qtp-price-updated .live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--qtp-success);
    border-radius: 50%;
    margin-right: 4px;
    animation: qtp-blink 1.5s infinite;
}

.qtp-price-error {
    padding: 20px;
    text-align: center;
    color: var(--qtp-text-muted);
    font-size: 13px;
}

/* No coin yet placeholder */
.qtp-price-no-coin {
    padding: 24px 16px;
    text-align: center;
}

.qtp-no-coin-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.qtp-price-no-coin p {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--qtp-text-secondary);
}

.qtp-no-coin-hint {
    font-size: 12px;
    color: var(--qtp-text-muted);
    line-height: 1.4;
    display: block;
}

/* Contract Address inside Price Widget */
.qtp-widget-contract {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--qtp-border);
}

.qtp-widget-contract-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--qtp-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.qtp-widget-contract-label span {
    font-size: 12px;
}

.qtp-widget-contract-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--qtp-bg-input);
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid var(--qtp-border);
}

.qtp-widget-contract-row code {
    flex: 1;
    font-size: 11px;
    color: var(--qtp-text-secondary);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.qtp-copy-btn-inline {
    flex-shrink: 0;
    background: var(--qtp-bg-card-hover);
    border: 1px solid var(--qtp-border);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    line-height: 1;
}

.qtp-copy-btn-inline:hover {
    background: var(--qtp-accent-purple);
    border-color: var(--qtp-accent-purple);
}

/* Flash animation for price changes */
@keyframes qtp-flash-green {
    0%, 100% { background: linear-gradient(135deg, var(--qtp-bg-card) 0%, rgba(124, 58, 237, 0.1) 100%); }
    50% { background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%); }
}

@keyframes qtp-flash-red {
    0%, 100% { background: linear-gradient(135deg, var(--qtp-bg-card) 0%, rgba(124, 58, 237, 0.1) 100%); }
    50% { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%); }
}

.qtp-price-widget.flash-green {
    animation: qtp-flash-green 0.5s ease;
}

.qtp-price-widget.flash-red {
    animation: qtp-flash-red 0.5s ease;
}

/* ========================================
   Responsive
   ======================================== */
   
/* Tablet */
@media (max-width: 992px) {
    .qtp-content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .qtp-sidebar {
        order: -1;
    }
    
    .qtp-price-widget {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Portal Container */
    .qtp-portal-container {
        padding: 0 16px 30px;
    }
    
    /* Hero Section */
    .qtp-hero {
        min-height: 320px;
    }
    
    .qtp-hero-content {
        padding: 30px 16px;
    }
    
    .qtp-coin-logo {
        width: 80px;
        height: 80px;
    }
    
    .qtp-portal-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .qtp-coin-name {
        font-size: 28px;
    }
    
    .qtp-coin-name .qtp-brand-text {
        font-size: 14px;
    }
    
    .qtp-coin-name .qtp-ticker-text {
        font-size: 36px;
    }
    
    .qtp-narrative-desc {
        font-size: 14px;
    }
    
    .qtp-ticker-badge {
        padding: 6px 16px;
        font-size: 14px;
    }
    
    .qtp-hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .qtp-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Breadcrumb */
    .qtp-breadcrumb {
        padding: 12px 16px;
    }
    
    /* Content Grid - Stack on mobile */
    .qtp-content-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* Price Widget Mobile */
    .qtp-price-widget {
        order: -1;
        margin-bottom: 0;
    }
    
    .qtp-price-value {
        font-size: 22px;
    }
    
    .qtp-price-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .qtp-price-stat {
        padding: 6px 4px;
    }
    
    .qtp-price-stat .value {
        font-size: 11px;
    }
    
    .qtp-price-stat .label {
        font-size: 8px;
    }
    
    /* Contract in Price Widget - Mobile */
    .qtp-widget-contract-row {
        padding: 6px 8px;
    }
    
    .qtp-widget-contract-row code {
        font-size: 10px;
    }
    
    .qtp-copy-btn-inline {
        padding: 5px 7px;
        font-size: 11px;
    }
    
    /* Sidebar Cards */
    .qtp-sidebar {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .qtp-info-card {
        padding: 16px;
    }
    
    .qtp-info-card h4 {
        font-size: 14px;
    }
    
    /* Social Links Grid */
    .qtp-social-links {
        justify-content: flex-start;
        gap: 10px;
    }
    
    .qtp-social-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    /* Contract Address */
    .qtp-contract-address code {
        font-size: 10px;
        word-break: break-all;
    }
    
    /* Chat Section */
    .qtp-chat-section {
        border-radius: 12px;
    }
    
    .qtp-chat-header {
        padding: 14px 16px;
    }
    
    .qtp-chat-header h3 {
        font-size: 16px;
    }
    
    .qtp-pinned-message {
        padding: 14px 16px;
    }
    
    .qtp-pinned-content {
        font-size: 13px;
    }
    
    .qtp-chat-embed {
        min-height: 350px;
    }
    
    /* Guest Notice */
    .qtp-guest-notice {
        padding: 30px 20px;
    }
    
    .qtp-guest-notice h4 {
        font-size: 18px;
    }
    
    /* Related Portals */
    .qtp-related-section {
        margin-top: 30px;
    }
    
    .qtp-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Portal Cards */
    .qtp-portal-card {
        border-radius: 12px;
    }
    
    .qtp-portal-card-image {
        height: 140px;
    }
    
    .qtp-portal-card-logo {
        width: 50px;
        height: 50px;
    }
    
    .qtp-portal-card-content {
        padding: 16px;
    }
    
    .qtp-ticker-name {
        font-size: 18px;
    }
    
    /* Disclaimer */
    .qtp-risk-disclaimer {
        padding: 20px;
        margin-top: 20px;
    }
    
    .qtp-risk-disclaimer h4 {
        font-size: 14px;
    }
    
    .qtp-risk-disclaimer p {
        font-size: 13px;
    }
    
    /* About Section */
    .qtp-about-section {
        margin-top: 20px;
        padding: 20px !important;
    }
    
    /* Global Message */
    .qtp-global-message {
        padding: 20px;
        margin-top: 20px;
    }
    
    /* Ecosystem Card */
    .qtp-ecosystem-card {
        padding: 20px 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .qtp-coin-name .qtp-ticker-text {
        font-size: 28px;
    }
    
    .qtp-hero-buttons .qtp-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .qtp-price-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .qtp-price-value {
        font-size: 24px;
    }
    
    .qtp-social-links {
        flex-wrap: wrap;
    }
}

/* Hub Sidebar Mobile */
@media (max-width: 992px) {
    .qtp-hub-portal-layout .qtp-sidebar {
        order: 0;
    }
    
    .qtp-sidebar-portals-list {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        background: var(--qtp-border);
    }
    
    .qtp-sidebar-portal-item {
        background: var(--qtp-bg-card);
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .qtp-sidebar-portals-list {
        grid-template-columns: 1fr;
    }
    
    .qtp-hub-portal-layout .qtp-archived-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes qtp-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.qtp-animate-in {
    animation: qtp-fadeIn 0.5s ease forwards;
}

/* ========================================
   Price Widget (Optional)
   ======================================== */
.qtp-price-widget {
    background: var(--qtp-bg-input);
    border-radius: var(--qtp-radius-sm);
    padding: 20px;
    margin-top: 16px;
}

.qtp-price-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.qtp-price-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--qtp-text-primary);
}

.qtp-price-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.qtp-price-change.positive {
    background: rgba(34, 197, 94, 0.15);
    color: var(--qtp-success);
}

.qtp-price-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--qtp-error);
}

.qtp-price-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--qtp-text-muted);
}

.qtp-price-meta span {
    color: var(--qtp-text-secondary);
}

/* ========================================
   Loading States
   ======================================== */
.qtp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.qtp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--qtp-border);
    border-top-color: var(--qtp-accent-purple);
    border-radius: 50%;
    animation: qtp-spin 0.8s linear infinite;
}

@keyframes qtp-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Hub Page Specific Styles
   ======================================== */
.qtp-hub-page {
    background: var(--qtp-bg-dark);
    min-height: 100vh;
    color: var(--qtp-text-primary);
}

/* Hub Hero */
.qtp-hub-hero {
    position: relative;
    padding: 100px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.qtp-hub-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--qtp-gradient-primary);
    opacity: 0.15;
}

.qtp-hub-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%);
}

.qtp-hub-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.qtp-hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid var(--qtp-accent-purple);
    border-radius: 30px;
    font-size: 14px;
    color: var(--qtp-accent-purple);
    margin-bottom: 24px;
}

.qtp-badge-icon {
    font-size: 18px;
}

.qtp-hub-title {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 16px;
    background: var(--qtp-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qtp-hub-subtitle {
    font-size: 20px;
    color: var(--qtp-text-secondary);
    line-height: 1.6;
    margin: 0 0 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.qtp-hub-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.qtp-hub-stat {
    text-align: center;
}

.qtp-stat-num {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--qtp-text-primary);
    line-height: 1;
}

.qtp-stat-label {
    display: block;
    font-size: 14px;
    color: var(--qtp-text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hub Container */
.qtp-hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Hub Sections */
.qtp-hub-section {
    margin-bottom: 60px;
}

.qtp-section-header {
    margin-bottom: 30px;
}

.qtp-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qtp-section-title h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.qtp-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--qtp-success);
}

.qtp-live-indicator .qtp-live-dot {
    width: 10px;
    height: 10px;
    background: var(--qtp-success);
    border-radius: 50%;
    animation: qtp-blink 1.5s ease-in-out infinite;
}

.qtp-section-desc {
    color: var(--qtp-text-secondary);
    font-size: 16px;
    margin: 8px 0 0;
}

/* What Are Trend Portals */
.qtp-what-are {
    margin-top: -40px;
    padding-top: 60px;
}

.qtp-section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.qtp-what-card {
    background: var(--qtp-bg-card);
    border-radius: var(--qtp-radius);
    padding: 30px;
    border: 1px solid var(--qtp-border);
}

.qtp-what-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.qtp-what-card h3 {
    margin: 0 0 16px;
    font-size: 22px;
}

.qtp-what-card p {
    color: var(--qtp-text-secondary);
    line-height: 1.7;
    margin: 0 0 12px;
}

.qtp-what-card p:last-child {
    margin-bottom: 0;
}

.qtp-what-card strong {
    color: var(--qtp-accent-teal);
}

.qtp-what-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.qtp-what-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--qtp-bg-card);
    border-radius: var(--qtp-radius-sm);
    padding: 20px;
    border: 1px solid var(--qtp-border);
}

.qtp-what-emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.qtp-what-text strong {
    display: block;
    color: var(--qtp-text-primary);
    margin-bottom: 4px;
}

.qtp-what-text span {
    font-size: 13px;
    color: var(--qtp-text-muted);
}

/* Portals Grid */
.qtp-portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.qtp-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Portal Card Enhancements */
.qtp-portal-card.is-trending {
    border-color: var(--qtp-warning);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}

.qtp-trending-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--qtp-warning);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
}

/* Teaser Card Styling */
.qtp-portal-card.qtp-teaser-card {
    cursor: default;
    border: 2px dashed rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(124, 58, 237, 0.1));
}

.qtp-portal-card.qtp-teaser-card:hover {
    transform: none;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.qtp-teaser-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--qtp-warning), var(--qtp-accent-purple));
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
    animation: qtp-teaser-glow 2s infinite;
}

@keyframes qtp-teaser-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.5); }
}

.qtp-portal-card-image.qtp-teaser-image {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(124, 58, 237, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.qtp-teaser-icon {
    font-size: 60px;
    animation: qtp-float 3s ease-in-out infinite;
}

@keyframes qtp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.qtp-ticker-name.qtp-teaser-name {
    color: var(--qtp-warning);
    letter-spacing: 4px;
}

.qtp-portal-card-desc.qtp-teaser-desc {
    color: var(--qtp-text-muted);
    font-style: italic;
}

.qtp-portal-card-theme.qtp-teaser-time {
    background: rgba(124, 58, 237, 0.2);
    color: var(--qtp-accent-purple);
}

.qtp-portal-card-cta.qtp-teaser-cta {
    color: var(--qtp-warning);
    opacity: 0.8;
}

.qtp-portal-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--qtp-border);
    color: var(--qtp-accent-purple);
    font-size: 14px;
    font-weight: 600;
}

.qtp-arrow {
    transition: transform 0.2s ease;
}

/* Compact Portal Cards */
.qtp-card-compact {
    background: var(--qtp-bg-card);
    border-radius: var(--qtp-radius-sm);
    padding: 0;
    overflow: hidden;
}

.qtp-portal-card-compact-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.qtp-compact-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.qtp-compact-info {
    flex: 1;
}

.qtp-compact-info h4 {
    margin: 0 0 4px;
    font-size: 16px;
    color: var(--qtp-text-primary);
}

.qtp-compact-info span {
    font-size: 13px;
    color: var(--qtp-accent-teal);
}

.qtp-compact-arrow {
    color: var(--qtp-text-muted);
    font-size: 18px;
}

/* Archived Grid */
.qtp-archived-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.qtp-archived-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--qtp-bg-card);
    border: 1px solid var(--qtp-border);
    border-radius: var(--qtp-radius-sm);
    padding: 14px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qtp-archived-card:hover {
    border-color: var(--qtp-border-light);
    background: var(--qtp-bg-card-hover);
}

.qtp-archived-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.qtp-archived-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--qtp-bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.qtp-archived-info {
    flex: 1;
    min-width: 0;
}

.qtp-archived-info h4 {
    margin: 0;
    font-size: 14px;
    color: var(--qtp-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qtp-archived-ticker {
    font-size: 12px;
    color: var(--qtp-text-muted);
}

.qtp-archived-date {
    font-size: 11px;
    color: var(--qtp-text-muted);
    flex-shrink: 0;
}

/* No Portals State */
.qtp-no-portals {
    text-align: center;
    padding: 60px 20px;
    background: var(--qtp-bg-card);
    border-radius: var(--qtp-radius);
    border: 1px dashed var(--qtp-border);
}

.qtp-no-portals-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.qtp-no-portals h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.qtp-no-portals p {
    color: var(--qtp-text-muted);
    margin: 0;
}

/* Ecosystem Section */
.qtp-ecosystem-section {
    margin-top: 80px;
}

.qtp-ecosystem-cta {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
    background: var(--qtp-gradient-primary);
    border-radius: var(--qtp-radius-lg);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.qtp-ecosystem-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.qtp-ecosystem-content {
    position: relative;
    z-index: 2;
}

.qtp-ecosystem-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.qtp-ecosystem-cta h2 {
    margin: 0 0 16px;
    font-size: 32px;
    color: white;
}

.qtp-ecosystem-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 24px;
}

.qtp-btn-white {
    background: white;
    color: var(--qtp-accent-purple);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qtp-btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--qtp-accent-purple);
}

/* Orbit Animation */
.qtp-ecosystem-graphic {
    position: relative;
    height: 200px;
}

.qtp-orbit {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: qtp-orbit-rotate 20s linear infinite;
}

.qtp-orbit-item {
    position: absolute;
    font-size: 28px;
    animation: qtp-orbit-counter 20s linear infinite;
}

.qtp-orbit-item:nth-child(1) { top: -15px; left: 50%; transform: translateX(-50%); }
.qtp-orbit-item:nth-child(2) { top: 50%; right: -15px; transform: translateY(-50%); }
.qtp-orbit-item:nth-child(3) { bottom: -15px; left: 50%; transform: translateX(-50%); }
.qtp-orbit-item:nth-child(4) { top: 50%; left: -15px; transform: translateY(-50%); }

@keyframes qtp-orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes qtp-orbit-counter {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Disclaimer Section */
.qtp-hub-disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--qtp-radius);
    padding: 24px 30px;
}

.qtp-hub-disclaimer h4 {
    margin: 0 0 12px;
    color: var(--qtp-error);
    font-size: 16px;
}

.qtp-hub-disclaimer p {
    color: var(--qtp-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Breadcrumb */
.qtp-breadcrumb {
    padding: 16px 0;
    background: var(--qtp-bg-card);
    border-bottom: 1px solid var(--qtp-border);
}

.qtp-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--qtp-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.qtp-breadcrumb a:hover {
    color: var(--qtp-accent-purple);
}

/* Info List */
.qtp-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qtp-info-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--qtp-border);
}

.qtp-info-list li:last-child {
    border-bottom: none;
}

.qtp-info-label {
    color: var(--qtp-text-muted);
    font-size: 13px;
}

.qtp-info-value {
    color: var(--qtp-text-primary);
    font-size: 14px;
}

/* Full Width Button */
.qtp-btn-full {
    width: 100%;
    justify-content: center;
}

/* Archived Notice */
.qtp-archived-notice {
    font-size: 13px;
    color: var(--qtp-text-muted);
    padding: 6px 12px;
    background: var(--qtp-bg-input);
    border-radius: 6px;
}

/* Responsive Hub */
@media (max-width: 992px) {
    .qtp-section-content {
        grid-template-columns: 1fr;
    }
    
    .qtp-ecosystem-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .qtp-ecosystem-graphic {
        display: none;
    }
}

@media (max-width: 768px) {
    .qtp-hub-title {
        font-size: 36px;
    }
    
    .qtp-hub-subtitle {
        font-size: 16px;
    }
    
    .qtp-hub-stats {
        gap: 40px;
    }
    
    .qtp-stat-num {
        font-size: 36px;
    }
    
    .qtp-what-grid {
        grid-template-columns: 1fr;
    }
    
    .qtp-portals-grid {
        grid-template-columns: 1fr;
    }
    
    .qtp-archived-grid {
        grid-template-columns: 1fr;
    }
    
    .qtp-ecosystem-cta {
        padding: 30px;
    }
}

/* ========================================
   Wallet Widget Styles
   ======================================== */
.qtp-wallet-widget {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.qtp-wallet-widget h4 {
    color: var(--qtp-text-primary);
    margin: 0 0 16px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qtp-wallet-current {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--qtp-radius-sm);
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.qtp-wallet-current.registered-elsewhere {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.qtp-wallet-label {
    font-size: 11px;
    color: var(--qtp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.qtp-wallet-address {
    font-size: 13px;
    color: var(--qtp-text-primary);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.qtp-wallet-status {
    font-size: 12px;
    color: var(--qtp-success);
    margin-left: auto;
}

.qtp-wallet-status.other {
    color: var(--qtp-warning);
}

.qtp-wallet-input-wrap {
    display: flex;
    gap: 8px;
}

.qtp-wallet-input {
    flex: 1;
    background: var(--qtp-bg-input);
    border: 1px solid var(--qtp-border);
    border-radius: var(--qtp-radius-sm);
    padding: 10px 12px;
    color: var(--qtp-text-primary);
    font-size: 13px;
    font-family: monospace;
}

.qtp-wallet-input:focus {
    outline: none;
    border-color: var(--qtp-accent-purple);
}

.qtp-wallet-input::placeholder {
    color: var(--qtp-text-muted);
    font-family: inherit;
}

.qtp-btn-small {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: var(--qtp-radius-sm);
    background: var(--qtp-accent-purple);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.qtp-btn-small:hover {
    background: var(--qtp-accent-purple-hover);
}

.qtp-btn-small.qtp-btn-outline {
    background: transparent;
    border: 1px solid var(--qtp-accent-purple);
    color: var(--qtp-accent-purple);
}

.qtp-btn-small.qtp-btn-outline:hover {
    background: rgba(124, 58, 237, 0.1);
}

.qtp-wallet-message {
    margin-top: 8px;
    font-size: 12px;
    min-height: 18px;
}

.qtp-wallet-message.success {
    color: var(--qtp-success);
}

.qtp-wallet-message.error {
    color: var(--qtp-error);
}

.qtp-wallet-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--qtp-text-muted);
    line-height: 1.4;
}

.qtp-wallet-guest {
    text-align: center;
    padding: 10px 0;
}

.qtp-wallet-guest-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.qtp-wallet-guest p {
    font-size: 13px;
    color: var(--qtp-text-secondary);
    margin: 0 0 16px;
    line-height: 1.5;
}

.qtp-wallet-guest-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.qtp-wallet-guest-buttons .qtp-btn-small {
    flex: 1;
    max-width: 100px;
    text-align: center;
    text-decoration: none;
}
