/* Container dial 4 Widgets متبث في الجانب بجانب الـ Sidebar */
.opsik-widgets-dashboard {
    position: fixed;
    left: 20px;
    top: 75px;
    width: 250px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* تصميم الـ Widget الواحد */
.widget-box {
    background: linear-gradient(135deg, #1a0b2e 0%, #12051f 100%);
    border: 1px solid #9333ea;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.15);
    transition: all 0.3s ease;
}

.widget-box:hover {
    border-color: #00ffcc;
    box-shadow: 0 4px 25px rgba(0, 255, 204, 0.2);
}

.widget-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    padding-bottom: 4px;
}

.widget-title-text {
    font-size: 12px;
    font-weight: bold;
    color: #00ffcc;
    letter-spacing: 0.5px;
}

.widget-content-body {
    font-size: 11px;
    color: #d1d5db;
}

/* ========================================== */
/* تصميم الـ Trending Now */
/* ========================================== */
.trending-widget-box {
    padding: 8px 10px !important;
}

.trending-track-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-cover-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #9333ea;
    flex-shrink: 0;
}

.trending-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.trending-track-name {
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-track-name:hover {
    color: #00ffcc;
}

.trending-artist-name {
    font-size: 10px;
    color: #a855f7;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================== */
/* AUDIO VISUALIZER (ساكتين في الأرض وطايحين حتى تنشط الموسيقى) */
/* ========================================== */
.visualizer-wave-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100% !important;
    height: 38px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.visualizer-wave-bars span {
    flex: 1;
    max-width: 2.2px;
    margin: 0 0.5px;
    height: 3px; /* الحالة العادية: ساكتين وطايحين ف الأرض تماماً */
    background: linear-gradient(to top, #ec4899, #8b5cf6, #00ffcc);
    border-radius: 2px;
    transition: height 0.08s ease-out;
}

/* ========================================== */
/* تصميم Widget ديال Opsicoin (OPS) */
/* ========================================== */
.opsicoin-widget-box {
    background: linear-gradient(135deg, #160826 0%, #0d0314 100%) !important;
    border: 1px solid #a855f7 !important;
}

.opsicoin-widget-box:hover {
    border-color: #00ffcc !important;
    box-shadow: 0 4px 25px rgba(0, 255, 204, 0.25) !important;
}

.ops-live-dot {
    width: 7px;
    height: 7px;
    background-color: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ffcc;
}

.ops-balance-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    background: rgba(147, 51, 234, 0.12);
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.ops-label {
    font-size: 10px;
    color: #a855f7;
    font-weight: 600;
}

.ops-balance-amount {
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
}

.ops-symbol {
    color: #00ffcc;
    font-size: 11px;
}

.ops-wallet-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px dashed rgba(168, 85, 247, 0.4);
    margin-bottom: 6px;
}

.ops-wallet-address {
    font-family: monospace;
    font-size: 11px;
    color: #d1d5db;
    letter-spacing: 0.5px;
}

.ops-copy-btn {
    background: transparent;
    border: none;
    color: #00ffcc;
    cursor: pointer;
    font-size: 11px;
    transition: color 0.2s ease;
    padding: 2px 4px;
}

.ops-copy-btn:hover {
    color: #ffffff;
}

.ops-staking-status {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #9ca3af;
    padding-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.active-pool {
    color: #00ffcc;
    font-weight: bold;
}

/* ========================================== */
/* تصميم Widget الـ Latest Creators (Carousel) */
/* ========================================== */
.creators-widget-box {
    padding: 8px 10px !important;
    overflow: hidden; /* إخفاء العناصر الزائدة خارج الـ Box */
}

.creators-body {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* حاوية السلايدر اللي كتتحرك */
.creators-slider-track {
    display: flex;
    gap: 12px;
    animation: swipeLeft 15s linear infinite; /* حركة مستمرة من اليمين لليسار */
    width: max-content;
}

/* توقيف الحركة ملي يحط المستخدم الماوس فوقهم باش يقدر يشوفهم مزيان */
.creators-slider-track:hover {
    animation-play-state: paused;
}

@keyframes swipeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.creator-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(147, 51, 234, 0.2);
    min-width: 65px;
    transition: all 0.2s ease;
}

.creator-card:hover {
    border-color: #00ffcc;
    background: rgba(147, 51, 234, 0.2);
}

.creator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #00ffcc;
    margin-bottom: 4px;
}

.creator-name {
    font-size: 9.5px;
    color: #ffffff;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
}

.cam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #d8b4fe;
    font-family: monospace;
    position: relative; /* ضروري باش الـ Close يشد بلاصته مزيان */
}

.cam-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ستايل زر الإغلاق (Fermer / ✕) */
.cam-close-btn {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid rgba(255, 68, 68, 0.4);
    color: #ff4444;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    line-height: 1;
}

.cam-close-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    color: #ff1111;
    transform: scale(1.15);
    box-shadow: 0 0 6px rgba(255, 68, 68, 0.6);
}

/* ========================================== */
/* تصميم الـ 3 Mini Cards (أيقونات فقط بحجم 48px) */
/* ========================================== */
.opsik-top-tabs-container {
    display: flex;
    gap: 6px;
    width: 100%;
}

.opsik-mini-tab-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0b2e 0%, #12051f 100%);
    border: 1px solid #9333ea;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.opsik-mini-tab-card:hover {
    border-color: #00ffcc;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.15);
}

.opsik-mini-tab-card.active {
    background: linear-gradient(135deg, #250d42 0%, #170728 100%);
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.25);
}

.mini-tab-icon {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
}