/* ============================================
   Target Page Widget - CS2 Gamer Profile
   Elementor Widget Styles
   ============================================ */

.target-page-widget {
    --tp-primary: #ff6b1a;
    --tp-secondary: #ffb800;
    --tp-dark: #060810;
    --tp-darker: #0a0e13;
    --tp-card-bg: linear-gradient(135deg, rgba(20, 24, 32, 0.7), rgba(10, 14, 19, 0.7));
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    color: #fff;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
    direction: rtl;
    box-sizing: border-box;
}

.target-page-widget *,
.target-page-widget *::before,
.target-page-widget *::after {
    box-sizing: border-box;
}

/* ============ Top Bar ============ */
.tp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.tp-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tp-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 40px rgba(255, 107, 26, 0.4);
}

.tp-logo svg {
    width: 22px;
    height: 22px;
}

.tp-logo-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-logo-sub {
    font-size: 10px;
    color: #9ca3af;
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-btn-login {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

@media (min-width: 640px) {
    .tp-btn-login { display: flex; }
}

.tp-btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tp-btn-login svg {
    width: 14px;
    height: 14px;
}

.tp-btn-support {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
    color: #fff;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.tp-btn-support::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.tp-btn-support:hover::before {
    left: 100%;
}

.tp-btn-support svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.tp-btn-support span {
    display: none;
}

@media (min-width: 640px) {
    .tp-btn-support span { display: inline; }
}

/* ============ Hero Section ============ */
.tp-hero-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.tp-hero-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(90deg, rgba(255, 107, 26, 0.3), rgba(255, 184, 0, 0.2), rgba(255, 107, 26, 0.3));
    border-radius: 24px;
    filter: blur(20px);
    z-index: 0;
}

.tp-hero-card {
    position: relative;
    background: rgba(10, 14, 19, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 26, 0.2);
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
}

.tp-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 24px;
}

.tp-hero-bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, var(--tp-dark) 100%);
}

.tp-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, rgba(255, 107, 26, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 107, 26, 0.05) 87.5%),
        linear-gradient(150deg, rgba(255, 107, 26, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 107, 26, 0.05) 87.5%);
    background-size: 80px 140px;
    opacity: 0.3;
}

.tp-hero-content {
    position: relative;
    z-index: 2;
    padding: 24px;
}

@media (min-width: 640px) {
    .tp-hero-content { padding: 32px; }
}

@media (min-width: 1024px) {
    .tp-hero-content { padding: 40px; }
}

.tp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 24px;
}

.tp-hero-badges > div:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-badge-live {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.tp-badge-pro {
    background: rgba(255, 184, 0, 0.2);
    border: 1px solid rgba(255, 184, 0, 0.4);
}

.tp-badge-team {
    background: rgba(255, 107, 26, 0.2);
    border: 1px solid rgba(255, 107, 26, 0.4);
}

.tp-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    animation: tp-blink 1.5s ease-in-out infinite;
}

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

.tp-btn-follow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.tp-btn-follow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tp-btn-follow svg {
    width: 14px;
    height: 14px;
}

.tp-hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

@media (min-width: 1024px) {
    .tp-hero-main {
        flex-direction: row;
        align-items: flex-end;
        gap: 32px;
    }
}

.tp-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.tp-avatar-glow {
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary), var(--tp-primary));
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.6;
    animation: tp-pulse 2s ease-in-out infinite;
}

@keyframes tp-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.tp-avatar {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 107, 26, 0.6);
    box-shadow: 0 0 40px rgba(255, 107, 26, 0.4);
}

@media (min-width: 640px) {
    .tp-avatar {
        width: 160px;
        height: 160px;
    }
}

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

.tp-avatar-status {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    border: 4px solid var(--tp-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-avatar-status::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.tp-avatar-rank {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, var(--tp-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--tp-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tp-avatar-rank svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.tp-player-info {
    flex: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .tp-player-info {
        text-align: right;
    }
}

.tp-player-bio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tp-primary);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tp-player-name {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px;
    font-family: 'Vazirmatn', sans-serif;
    text-shadow: 0 0 20px rgba(255, 107, 26, 0.6), 0 0 40px rgba(255, 107, 26, 0.3);
    line-height: 1.2;
}

@media (min-width: 640px) {
    .tp-player-name { font-size: 48px; }
}

@media (min-width: 1024px) {
    .tp-player-name { font-size: 60px; }
}

.tp-player-username {
    font-size: 16px;
    color: #d1d5db;
    margin: 0 0 4px;
    font-family: 'Vazirmatn', sans-serif;
}

@media (min-width: 640px) {
    .tp-player-username { font-size: 18px; }
}

.tp-player-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 16px;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-player-location span {
    margin: 0 6px;
    color: #4b5563;
}

.tp-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

@media (min-width: 1024px) {
    .tp-social-icons { justify-content: flex-start; }
}

.tp-social {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #fff;
}

.tp-social svg {
    width: 16px;
    height: 16px;
    transition: color 0.3s;
}

.tp-social-twitch {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
}
.tp-social-twitch svg { color: #c084fc; }
.tp-social-twitch:hover { background: #a855f7; transform: scale(1.1); }
.tp-social-twitch:hover svg { color: #fff; }

.tp-social-youtube {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.tp-social-youtube svg { color: #f87171; }
.tp-social-youtube:hover { background: #ef4444; transform: scale(1.1); }
.tp-social-youtube:hover svg { color: #fff; }

.tp-social-discord {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
}
.tp-social-discord svg { color: #60a5fa; }
.tp-social-discord:hover { background: #3b82f6; transform: scale(1.1); }
.tp-social-discord:hover svg { color: #fff; }

.tp-social-share {
    background: rgba(255, 107, 26, 0.2);
    border: 1px solid rgba(255, 107, 26, 0.4);
}
.tp-social-share svg { color: #fb923c; }
.tp-social-share:hover { background: var(--tp-primary); transform: scale(1.1); }
.tp-social-share:hover svg { color: #fff; }

.tp-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (min-width: 1024px) {
    .tp-tags { justify-content: flex-start; }
}

.tp-tag {
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: #d1d5db;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s;
    cursor: pointer;
}

.tp-tag:hover {
    border-color: rgba(255, 107, 26, 0.4);
    color: var(--tp-primary);
}

.tp-hero-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .tp-hero-stats { flex-direction: column; }
}

.tp-stat-mini {
    text-align: center;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.tp-stat-mini:nth-child(1) { border: 1px solid rgba(255, 107, 26, 0.2); }
.tp-stat-mini:nth-child(2) { border: 1px solid rgba(255, 184, 0, 0.2); }
.tp-stat-mini:nth-child(3) { border: 1px solid rgba(255, 107, 26, 0.2); }

.tp-stat-mini-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    font-family: 'Orbitron', monospace;
    line-height: 1;
}

@media (min-width: 640px) {
    .tp-stat-mini-value { font-size: 28px; }
}

.tp-stat-mini:nth-child(2) .tp-stat-mini-value {
    color: var(--tp-secondary);
}

.tp-stat-mini:nth-child(3) .tp-stat-mini-value {
    color: var(--tp-primary);
}

.tp-stat-mini-label {
    font-size: 10px;
    color: #9ca3af;
    font-family: 'Vazirmatn', sans-serif;
    margin-top: 4px;
}

/* ============ Stats Grid ============ */
.tp-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .tp-stats-grid { gap: 16px; }
}

@media (min-width: 1024px) {
    .tp-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.tp-stat-card {
    position: relative;
    padding: 16px;
    border-radius: 16px;
    background: var(--tp-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 26, 0.2);
    overflow: hidden;
    transition: transform 0.3s;
}

@media (min-width: 640px) {
    .tp-stat-card { padding: 20px; }
}

.tp-stat-card:hover {
    transform: scale(1.02);
}

.tp-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.tp-stat-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
    stroke: #fff;
}

.tp-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    font-family: 'Orbitron', monospace;
    line-height: 1.1;
    margin-bottom: 4px;
}

@media (min-width: 640px) {
    .tp-stat-value { font-size: 28px; }
}

.tp-stat-label {
    font-size: 11px;
    color: #9ca3af;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-stat-change {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 10px;
    color: #4ade80;
    font-family: 'Vazirmatn', sans-serif;
}

@media (min-width: 640px) {
    .tp-stat-change { top: 20px; left: 20px; }
}

/* ============ Grid 2 Columns ============ */
.tp-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .tp-grid-2col { grid-template-columns: 1fr 1fr; }
}

/* ============ Card ============ */
.tp-card {
    position: relative;
    border-radius: 20px;
    background: var(--tp-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 26, 0.2);
    overflow: hidden;
}

.tp-card-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(90deg, var(--tp-primary), var(--tp-secondary), var(--tp-primary));
    border-radius: 20px;
    filter: blur(8px);
    opacity: 0.3;
    z-index: 0;
    transition: opacity 0.5s;
}

.tp-card:hover .tp-card-glow {
    opacity: 0.6;
}

.tp-card-inner {
    position: relative;
    padding: 24px;
    z-index: 1;
    background: var(--tp-card-bg);
    border-radius: 20px;
}

@media (min-width: 640px) {
    .tp-card-inner { padding: 32px; }
}

.tp-card-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: 2;
}

.tp-corner-tl {
    top: 0;
    left: 0;
    border-top: 2px solid rgba(255, 107, 26, 0.5);
    border-left: 2px solid rgba(255, 107, 26, 0.5);
    border-top-left-radius: 20px;
}

.tp-corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid rgba(255, 107, 26, 0.5);
    border-right: 2px solid rgba(255, 107, 26, 0.5);
    border-bottom-right-radius: 20px;
}

.tp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.tp-card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tp-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-card-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
    stroke: #fff;
}

.tp-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
}

@media (min-width: 640px) {
    .tp-card-title { font-size: 20px; }
}

.tp-card-subtitle {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-status-active,
.tp-status-live,
.tp-status-free,
.tp-status-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-status-active {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.tp-status-live {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.tp-status-free {
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.3);
    color: var(--tp-secondary);
}

.tp-status-gold {
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.3);
    color: var(--tp-secondary);
}

.tp-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    animation: tp-blink 1.5s ease-in-out infinite;
}

.tp-pulse-red { background: #f87171; }

/* ============ Station Code ============ */
.tp-station-code-wrapper {
    margin-bottom: 20px;
}

.tp-station-code {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 107, 26, 0.2);
    overflow: hidden;
}

.tp-station-stripes {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 107, 26, 0.05) 10px,
        rgba(255, 107, 26, 0.05) 20px
    );
    opacity: 0.3;
}

.tp-station-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tp-station-label {
    font-size: 11px;
    color: rgba(255, 107, 26, 0.7);
    margin: 0 0 4px;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-code-display {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
    word-break: break-all;
}

@media (min-width: 640px) {
    .tp-code-display { font-size: 28px; }
}

.tp-copy-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 0 40px rgba(255, 107, 26, 0.4);
}

.tp-copy-btn:hover {
    transform: scale(1.1);
}

.tp-copy-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
    stroke: #fff;
}

.tp-copy-btn.copied {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* ============ Mini Stats ============ */
.tp-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tp-mini-stat {
    background: rgba(255, 107, 26, 0.05);
    border: 1px solid rgba(255, 107, 26, 0.2);
    border-radius: 10px;
    padding: 12px;
}

.tp-mini-stat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #9ca3af;
    font-size: 11px;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-mini-stat-header svg {
    color: var(--tp-primary);
}

.tp-mini-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    margin-bottom: 2px;
}

.tp-mini-stat-elo {
    font-size: 11px;
    color: var(--tp-secondary);
    font-family: 'Vazirmatn', sans-serif;
}

/* ============ Streams ============ */
.tp-streams-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tp-stream-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--tp-card-bg);
    transition: all 0.3s;
    text-decoration: none;
}

.tp-stream-item:hover {
    border-color: rgba(255, 107, 26, 0.4);
    transform: translateY(-2px);
}

.tp-stream-thumb {
    position: relative;
    height: 144px;
    background: linear-gradient(135deg, #111827, rgba(255, 107, 26, 0.1), #000);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-stream-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, rgba(255, 107, 26, 0.05) 12%, transparent 12.5%),
        linear-gradient(150deg, rgba(255, 107, 26, 0.05) 12%, transparent 12.5%);
    background-size: 80px 140px;
    opacity: 0.2;
}

.tp-stream-play {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 107, 26, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 107, 26, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    z-index: 1;
}

.tp-stream-item:hover .tp-stream-play {
    transform: scale(1.1);
}

.tp-stream-play svg {
    width: 28px;
    height: 28px;
    color: var(--tp-primary);
    fill: var(--tp-primary);
}

.tp-stream-live-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(220, 38, 38, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-stream-viewers {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-stream-viewers svg {
    color: var(--tp-primary);
}

.tp-stream-platform-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tp-stream-platform-icon svg {
    width: 16px;
    height: 16px;
    color: #fff;
    fill: #fff;
}

.tp-platform-twitch { background: linear-gradient(135deg, #9333ea, #581c87); }
.tp-platform-youtube { background: linear-gradient(135deg, #dc2626, #7f1d1d); }
.tp-platform-kick { background: linear-gradient(135deg, #16a34a, #14532d); }

.tp-stream-info {
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.tp-stream-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    font-family: 'Vazirmatn', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-stream-meta {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
}

/* ============ Config ============ */
.tp-config-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tp-config-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.03), transparent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.tp-config-item:hover {
    background: linear-gradient(270deg, rgba(255, 107, 26, 0.1), transparent);
    border-color: rgba(255, 107, 26, 0.3);
}

.tp-config-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.tp-config-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
    stroke: #fff;
}

.tp-config-item:hover .tp-config-icon {
    transform: scale(1.1);
}

.tp-color-1 { background: linear-gradient(135deg, #f97316, #ef4444); }
.tp-color-2 { background: linear-gradient(135deg, #eab308, #f97316); }
.tp-color-3 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.tp-color-4 { background: linear-gradient(135deg, #a855f7, #ec4899); }

.tp-config-info {
    flex: 1;
    min-width: 0;
}

.tp-config-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    font-family: 'Vazirmatn', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .tp-config-name { font-size: 15px; }
}

.tp-config-desc {
    font-size: 11px;
    color: #9ca3af;
    margin: 0 0 6px;
    font-family: 'Vazirmatn', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-config-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tp-config-size,
.tp-config-downloads {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-config-size {
    color: var(--tp-primary);
}

.tp-config-downloads {
    color: var(--tp-secondary);
}

.tp-config-download-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 107, 26, 0.1);
    border: 1px solid rgba(255, 107, 26, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tp-config-item:hover .tp-config-download-btn {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
    transform: scale(1.1);
}

.tp-config-download-btn svg {
    width: 16px;
    height: 16px;
    color: var(--tp-primary);
    stroke: var(--tp-primary);
    transition: color 0.3s;
}

.tp-config-item:hover .tp-config-download-btn svg {
    color: #fff;
}

/* ============ Achievements ============ */
.tp-achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .tp-achievements-grid { grid-template-columns: repeat(3, 1fr); }
}

.tp-achievement {
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.tp-achievement:hover {
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.1), transparent);
    border-color: rgba(255, 107, 26, 0.4);
}

.tp-achievement-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tp-achievement-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
    fill: #fff;
    stroke: #fff;
}

.tp-achievement:hover .tp-achievement-icon {
    transform: scale(1.1) rotate(3deg);
}

.tp-achievement-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    font-family: 'Vazirmatn', sans-serif;
}

.tp-achievement-desc {
    font-size: 10px;
    color: #9ca3af;
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ Responsive ============ */
@media (max-width: 640px) {
    .target-page-widget {
        padding: 8px;
    }

    .tp-hero-content,
    .tp-card-inner {
        padding: 20px;
    }

    .tp-player-name {
        font-size: 32px;
    }

    .tp-code-display {
        font-size: 18px;
    }
}

/* ============ Elementor Editor ============ */
.elementor-editor-active .target-page-widget {
    pointer-events: auto;
}
