    /* ============================================
       DESIGN V3 - Fintech Dashboard Style
       ============================================ */

    /* Header Banner */
    .stock-header-v3 {
        background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 10px;
        position: relative;
    }

    .header-bg-pattern {
        position: absolute;
        inset: 0;
        background-image:
            radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
        pointer-events: none;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 28px;
        position: relative;
        z-index: 1;
        gap: 20px;
        flex-wrap: wrap;
    }

    .header-main {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .stock-avatar {
        width: 64px;
        height: 64px;
        background: var(--bg-card, #fff);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .stock-avatar img {
        max-width: 80%;
        max-height: 80%;
        object-fit: contain;
    }

    /* DI-127 / CV-058: fallback when $stock->logo_small is empty.
       Renders Symbol initials inside the avatar circle so layout stays
       intact (no broken-image icon, no collapsed avatar). */
    .stock-avatar-fallback {
        font-size: 22px;
        font-weight: 800;
        color: var(--navy);
        font-family: var(--font);
        letter-spacing: -0.5px;
    }

    .stock-identity {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .stock-symbol {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .stock-name-v3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-on-navy, #fff);
        margin: 0;
        line-height: 1.2;
    }

    .header-price {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .price-main-col {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .price-label {
        font-size: 0.75rem;
        color: var(--text-muted);
    }

    .current-price {
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .current-price.positive {
        color: var(--success);
    }

    .current-price.negative {
        color: var(--danger);
    }

    .price-change-badge {
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.875rem;
        font-weight: 700;
    }

    .price-change-badge.up {
        background: rgba(74, 222, 128, 0.2);
        color: var(--success);
    }

    .price-change-badge.down {
        background: rgba(248, 113, 113, 0.2);
        color: var(--danger);
    }

    .price-change-col {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .change-item {
        display: flex;
        align-items: center;
        gap: 0;
    }

    .change-label {
        font-size: 0.75rem;
        color: var(--text-muted);
        min-width: 70px;
    }

    .price-change-amount {
        font-size: 0.875rem;
        font-weight: 600;
    }

    .price-change-amount.up {
        color: var(--success);
    }

    .price-change-amount.down {
        color: var(--danger);
    }

    /* Metrics Strip */
    .metrics-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        margin-bottom: 10px;
    }

    .metric-card {
        background: var(--bg-card, #fff);
        border-radius: 12px;
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        border: 1px solid var(--border);
        transition: all 0.2s ease;
    }

    .halal-metric-card {
        justify-content: space-between;
    }

    .halal-metric-card .metric-icon,
    .halal-metric-card .metric-info {
        flex-shrink: 0;
    }

    .more-link {
        font-size: 0.75rem;
        color: #0284c7;
        text-decoration: none;
        margin-inline-end: auto;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.2s;
    }

    .more-link:hover {
        background: #e0f2fe;
        color: #0369a1;
    }

    .metric-card:hover {
        border-color: var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .icon-circle {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: 700;
    }

    .icon-circle.halal {
        background: linear-gradient(135deg, var(--green-bg) 0%, #bbf7d0 100%);
        color: var(--green-text);
    }

    .icon-circle.haram {
        background: linear-gradient(135deg, var(--danger-bg) 0%, #fecaca 100%);
        color: #b91c1c;
    }

    .icon-circle.mixed {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        color: #b45309;
    }

    .icon-circle.unknown {
        background: linear-gradient(135deg, var(--bg-muted) 0%, var(--border) 100%);
        color: var(--text-mid);
    }

    .icon-circle.change.up {
        background: linear-gradient(135deg, var(--green-bg) 0%, #bbf7d0 100%);
        color: var(--green-text);
    }

    .icon-circle.change.down {
        background: linear-gradient(135deg, var(--danger-bg) 0%, #fecaca 100%);
        color: #b91c1c;
    }

    .icon-circle.rating {
        background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
        color: #a16207;
    }

    .icon-circle.analyst {
        background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
        color: #4338ca;
    }

    .icon-circle.update {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        color: #0284c7;
    }

    .metric-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .metric-label {
        font-size: 0.75rem;
        color: var(--text-mid);
    }

    .metric-value {
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--navy);
    }

    .metric-value.text-up {
        color: var(--green);
    }

    .metric-value.text-down {
        color: var(--danger);
    }

    /* Details Grid */
    .stock-details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }

    .detail-card {
        background: var(--bg-card, #fff);
        border-radius: 12px;
        border: 1px solid var(--border);
        overflow: hidden;
    }

    /* Info Card */
    .info-card {
        padding: 20px;
    }

    .card-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--navy);
    }

    .title-bar {
        width: 4px;
        height: 20px;
        background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
        border-radius: 2px;
    }

    .info-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .info-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px dashed var(--border);
    }

    .info-row:last-child {
        border-bottom: none;
    }

    .info-icon {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .info-key {
        font-size: 0.875rem;
        color: var(--text-mid);
    }

    .info-val {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--navy);
        text-align: left;
    }

    .info-val.link {
        color: #0284c7;
        text-decoration: none;
        transition: color 0.2s;
    }

    .info-val.link:hover {
        color: #0369a1;
    }

    /* Action Card */
    .action-card {
        background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
        display: flex;
        align-items: center;
    }

    .action-content {
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .action-text h3 {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--text-on-navy, #fff);
        margin: 0 0 4px 0;
    }

    .action-text p {
        font-size: 0.875rem;
        color: var(--text-on-navy-muted);
        margin: 0;
    }

    .trade-btn-v3 {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 24px;
        background: var(--bg-card, #fff);
        color: #0f766e;
        border: none;
        border-radius: 10px;
        font-size: 0.9375rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        align-self: flex-start;
    }

    .trade-btn-v3:hover {
        background: #f0fdfa;
        transform: translateX(-4px);
        color: #0f766e;
    }

    .trade-btn-v3 svg {
        transition: transform 0.3s ease;
    }

    .trade-btn-v3:hover svg {
        transform: translateX(4px);
    }

    /* Description Card */
    .stock-desc-card {
        background: var(--bg-card, #fff);
        border-radius: 12px;
        padding: 20px;
        border: 1px solid var(--border);
    }

    .desc-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--navy);
        margin: 0 0 16px 0;
    }

    .desc-text {
        font-size: 0.9375rem;
        line-height: 1.8;
        color: var(--text-mid);
        margin: 0;
    }


    /* ============================================
       Responsive Styles
       ============================================ */

    @media (max-width: 1024px) {
        .stock-details-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .header-content {
            flex-direction: column;
            align-items: flex-start;
            padding: 20px;
        }

        .header-price {
            width: 100%;
            justify-content: space-between;
            flex-direction: revert-layer;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stock-name-v3 {
            font-size: 1.25rem;
        }

        .current-price {
            font-size: 1.75rem;
        }

        .metrics-strip {
            grid-template-columns: repeat(2, 1fr);
        }

        .metric-card {
            padding: 12px;
        }

        .icon-circle {
            width: 36px;
            height: 36px;
            font-size: 0.875rem;
        }

        .metric-value {
            font-size: 0.8125rem;
        }
    }

    @media (max-width: 480px) {
        .stock-header-v3 {
            border-radius: 12px;
            margin-inline-start: -5px;
            margin-inline-end: -5px;
        }

        .header-main {
            gap: 12px;
        }

        .stock-avatar {
            width: 52px;
            height: 52px;
        }

        .stock-name-v3 {
            font-size: 1.125rem;
        }

        .current-price {
            font-size: 1.5rem;
        }

        .metrics-strip {
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-inline-start: -5px;
            margin-inline-end: -5px;
        }

        .metric-card {
            border-radius: 10px;
            padding: 10px;
            gap: 8px;
        }

        .icon-circle {
            width: 32px;
            height: 32px;
            font-size: 0.75rem;
            border-radius: 8px;
        }

        .metric-label {
            font-size: 0.6875rem;
        }

        .metric-value {
            font-size: 0.75rem;
        }

        .stock-details-grid,
        .stock-desc-card {
            margin-inline-start: -5px;
            margin-inline-end: -5px;
        }

        .detail-card {
            border-radius: 10px;
        }

        .info-card {
            padding: 16px;
        }

        .action-content {
            padding: 16px;
        }

        .trade-btn-v3 {
            width: 100%;
            justify-content: center;
        }
    }
