/* BTC-MIG — Enhanced UI v2 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(247,147,26,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(247,147,26,0.6); }

:root {
    --primary-color: #F7931A;
    --secondary-color: #E8780A;
    --success-color: #00cc66;
    --danger-color: #ff4d4d;
    --warning-color: #F0B429;
    --info-color: #00d4ff;
    --purple-color: #a855f7;
    --dark-bg: #0D0D0D;
    --darker-bg: #060606;
    --card-bg: #111111;
    --card-bg2: #161616;
    --border-color: rgba(247,147,26,0.12);
    --border-hover: rgba(247,147,26,0.35);
    --text-primary: #F5F0E8;
    --text-secondary: #9A8878;
    --text-muted: #4A4038;
    --glow-gold: 0 0 20px rgba(247,147,26,0.25);
    --glow-green: 0 0 20px rgba(0,204,102,0.25);
    --glow-blue: 0 0 20px rgba(0,212,255,0.25);
    --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #080808;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(247,147,26,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 90% 80%, rgba(0,212,255,0.04) 0%, transparent 50%),
        linear-gradient(180deg, #0d0800 0%, #080808 30%);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
}

/* Entrance animation */
@keyframes fadeUp {
    from { opacity:0; transform:translateY(16px); }
    to   { opacity:1; transform:translateY(0); }
}
.card, .stat-card { animation: fadeUp .35s ease both; }

/* الحاوية الرئيسية */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الرأس */
header {
    background: rgba(6, 6, 6, 0.96);
    border-bottom: 1px solid rgba(247,147,26,0.18);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(247,147,26,0.08), 0 4px 30px rgba(0,0,0,0.6);
}
header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247,147,26,0.5), rgba(0,212,255,0.3), transparent);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #b85e00 0%, #F7931A 20%, #FFD700 50%, #F7931A 80%, #b85e00 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 14px rgba(247,147,26,0.55)) drop-shadow(0 0 30px rgba(255,215,0,0.2));
    animation: logoShimmer 2.5s linear infinite;
    position: relative;
}
@keyframes logoShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 300% center; }
}
@keyframes shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* الأزرار */
.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background .2s;
}
.btn:hover::after { background: rgba(255,255,255,0.06); }

.btn-primary {
    background: linear-gradient(135deg, #F7931A 0%, #FF6B00 50%, #E8780A 100%);
    background-size: 200% auto;
    color: #000;
    box-shadow: 0 4px 20px rgba(247,147,26,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(247,147,26,0.5), 0 0 0 1px rgba(247,147,26,0.3);
}

.btn-secondary {
    background: rgba(247,147,26,0.06);
    color: var(--primary-color);
    border: 1px solid rgba(247,147,26,0.3);
}
.btn-secondary:hover {
    background: rgba(247,147,26,0.14);
    border-color: var(--primary-color);
    box-shadow: 0 0 18px rgba(247,147,26,0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4d4d, #cc2200);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,77,77,0.3);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,77,77,0.45);
}

.btn-success {
    background: linear-gradient(135deg, #00cc66, #009944);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,204,102,0.3);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,204,102,0.45);
}

/* البطاقات */
.card {
    background: linear-gradient(145deg, #141414, #0e0e0e);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247,147,26,0.5), rgba(0,212,255,0.2), transparent);
}
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(247,147,26,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(247,147,26,0.1), var(--glow-gold);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 1px solid rgba(247, 147, 26, 0.15);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* النماذج */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(247,147,26,0.15);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
    font-size: 14px;
}
input:hover, textarea:hover, select:hover {
    border-color: rgba(247,147,26,0.3);
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(247,147,26,0.05);
    box-shadow: 0 0 0 3px rgba(247,147,26,0.1), 0 0 16px rgba(247,147,26,0.12);
}
select option { background: #141414; color: var(--text-primary); }

/* الجداول */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.table thead {
    background: linear-gradient(135deg, rgba(247,147,26,0.1), rgba(247,147,26,0.04));
    border-bottom: 1px solid rgba(247,147,26,0.2);
}

.table th {
    padding: 14px 15px;
    text-align: right;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 12.5px;
    text-transform: uppercase;
}

.table td {
    padding: 14px 15px;
    border-bottom: 1px solid rgba(247,147,26,0.06);
    font-size: 14px;
    transition: background .15s;
}

.table tbody tr:hover td {
    background: rgba(247,147,26,0.04);
}
.table tbody tr:last-child td { border-bottom: none; }

/* الشبكات */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* الإحصائيات */
.stat-card {
    background: linear-gradient(145deg, #141414, #0e0e0e);
    border: 1px solid rgba(247,147,26,0.15);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #FFD700, var(--primary-color));
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}
.stat-card::after {
    content: '';
    position: absolute;
    bottom: -30px; right: -30px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(247,147,26,0.08), transparent 70%);
    border-radius: 50%;
}
.stat-card:hover {
    border-color: rgba(247,147,26,0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), var(--glow-gold);
}

/* تلوين stat-cards بألوان مختلفة */
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, var(--info-color), #0080ff, var(--info-color)); background-size:200% auto; animation: shimmer 3s linear infinite; }
.stat-card:nth-child(2)::after  { background: radial-gradient(circle, rgba(0,212,255,0.08), transparent 70%); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, var(--success-color), #00ff88, var(--success-color)); background-size:200% auto; animation: shimmer 3s linear infinite; }
.stat-card:nth-child(3)::after  { background: radial-gradient(circle, rgba(0,204,102,0.08), transparent 70%); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, var(--purple-color), #d946ef, var(--purple-color)); background-size:200% auto; animation: shimmer 3s linear infinite; }
.stat-card:nth-child(5)::before { background: linear-gradient(90deg, var(--danger-color), #ff6b6b, var(--danger-color)); background-size:200% auto; animation: shimmer 3s linear infinite; }

.stat-value {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #F7931A, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0 6px;
    filter: drop-shadow(0 0 10px rgba(247,147,26,0.4));
    line-height: 1.2;
}

.stat-label {
    font-size: 11.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* آلة التعدين */
.mining-machine {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.mining-animation {
    animation: mining 2s infinite;
}

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

.mining-status {
    text-align: center;
    font-size: 14px;
    color: var(--success-color);
    margin-top: 10px;
}

/* Bottom Navigation Bar */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8,8,8,0.95);
    border-top: 1px solid rgba(247,147,26,0.15);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 40px rgba(0,0,0,0.8), 0 -1px 0 rgba(247,147,26,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #5C5040;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    min-width: 56px;
}

.bottom-nav-item span.nav-icon {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.bottom-nav-item:hover {
    color: var(--primary-color);
}

.bottom-nav-item:hover .nav-icon {
    transform: translateY(-2px);
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.nav-icon img {
    display: block;
    object-fit: contain;
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #E8780A, #F7931A, #FFD700);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 8px rgba(247, 147, 26, 0.6);
}

/* تابلت */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-layout {
        grid-template-columns: 200px 1fr;
        gap: 16px;
    }
    .sidebar-item {
        font-size: 0.82rem;
        padding: 10px;
    }
}

/* إخفاء الشريط الجانبي في الموبايل وإظهار الشريط السفلي */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    .sidebar {
        display: none !important;
    }
    main.container {
        padding-bottom: 80px;
    }
    .main-layout {
        display: block !important;
    }
    .content {
        overflow: visible;
    }
}

/* عجلة الحظ */
.lucky-wheel {
    width: 300px;
    height: 300px;
    margin: 20px auto;
    position: relative;
    animation: spin 4s linear infinite;
    filter: drop-shadow(0 0 20px rgba(247, 147, 26, 0.3));
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wheel-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%);
    transform-origin: 50% 50%;
}

/* الإشعارات */
.notification {
    background: linear-gradient(135deg, #141414, #0e0e0e);
    border-right: 3px solid var(--primary-color);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
    transition: var(--transition);
    border: 1px solid rgba(247,147,26,0.08);
    border-right: 3px solid var(--primary-color);
}
.notification:hover {
    border-color: rgba(247,147,26,0.2);
    transform: translateX(-2px);
}
.notification.success { border-right-color: var(--success-color); }
.notification.error   { border-right-color: var(--danger-color); }
.notification.warning { border-right-color: var(--warning-color); }

.notification-close {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--primary-color);
}

/* الشارات */
.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(247,147,26,0.1);
    color: var(--primary-color);
    border: 1px solid rgba(247,147,26,0.25);
    letter-spacing: 0.02em;
}
.badge.verified {
    background: rgba(0,204,102,0.1);
    color: var(--success-color);
    border-color: rgba(0,204,102,0.25);
}
.badge.pending {
    background: rgba(240,180,41,0.1);
    color: var(--warning-color);
    border-color: rgba(240,180,41,0.25);
}
.badge-blue   { background:rgba(0,212,255,0.1);  color:#00d4ff; border:1px solid rgba(0,212,255,0.25); border-radius:20px; padding:3px 12px; font-size:11.5px; font-weight:700; display:inline-block; }
.badge-purple { background:rgba(168,85,247,0.1); color:#a855f7; border:1px solid rgba(168,85,247,0.25); border-radius:20px; padding:3px 12px; font-size:11.5px; font-weight:700; display:inline-block; }
.badge-red    { background:rgba(255,77,77,0.1);  color:#ff4d4d; border:1px solid rgba(255,77,77,0.25); border-radius:20px; padding:3px 12px; font-size:11.5px; font-weight:700; display:inline-block; }

/* الشريط الجانبي */
.sidebar {
    background: linear-gradient(180deg, #121212, #0c0c0c);
    border: 1px solid rgba(247,147,26,0.1);
    border-radius: 16px;
    padding: 20px 14px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247,147,26,0.4), transparent);
    border-radius: 16px 16px 0 0;
}

.sidebar-item {
    padding: 11px 14px;
    margin-bottom: 4px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.875rem;
    position: relative;
}
.sidebar-item:hover {
    background: rgba(247,147,26,0.07);
    color: var(--text-primary);
    padding-right: 18px;
}
.sidebar-item.active {
    background: linear-gradient(135deg, rgba(247,147,26,0.15), rgba(247,147,26,0.05));
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
    padding-right: 11px;
    box-shadow: inset 0 0 20px rgba(247,147,26,0.05);
    font-weight: 600;
}

/* التخطيط */
.main-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}

.content {
    min-height: calc(100vh - 200px);
    min-width: 0; /* منع تمدد المحتوى خارج الشبكة */
    overflow: hidden;
}

/* الرسائل */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}
.alert-success {
    background: rgba(0,204,102,0.08);
    border-color: rgba(0,204,102,0.25);
    color: var(--success-color);
    box-shadow: 0 0 20px rgba(0,204,102,0.08);
}
.alert-error {
    background: rgba(255,77,77,0.08);
    border-color: rgba(255,77,77,0.25);
    color: var(--danger-color);
    box-shadow: 0 0 20px rgba(255,77,77,0.08);
}
.alert-warning {
    background: rgba(240,180,41,0.08);
    border-color: rgba(240,180,41,0.25);
    color: var(--warning-color);
}
.alert-info {
    background: rgba(0,212,255,0.06);
    border-color: rgba(0,212,255,0.2);
    color: var(--info-color);
}

/* التذييل */
footer {
    background: rgba(5,5,5,0.98);
    border-top: 1px solid rgba(247,147,26,0.1);
    padding: 28px 0;
    margin-top: 50px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247,147,26,0.3), transparent);
}

/* الاستجابة */
@media (max-width: 768px) {
    .grid,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .main-layout {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        max-height: none;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 20px;
        overflow-y: visible;
        z-index: auto;
        box-shadow: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .sidebar h3 {
        grid-column: 1 / -1;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .sidebar-item {
        padding: 8px;
        margin-bottom: 0;
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .content {
        margin-bottom: 0;
        min-height: auto;
    }

    nav ul {
        gap: 15px;
    }

    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 10px;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* شاشات صغيرة جداً */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .sidebar {
        grid-template-columns: repeat(3, 1fr);
        padding: 10px;
        margin-bottom: 15px;
    }

    .sidebar h3 {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .sidebar-item {
        padding: 6px;
        font-size: 10px;
    }

    .content {
        margin-bottom: 0;
    }

    .card {
        padding: 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .grid {
        gap: 15px;
    }

    .stat-value {
        font-size: 20px;
    }

    .card-title {
        font-size: 16px;
    }
}

/* تأثيرات التحميل */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(247, 147, 26, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* الشفافية والظلال */
.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 40px rgba(247, 147, 26, 0.06);
}

/* النص */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: #E85540;
}

/* الهوامش والحشوات */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-10  { padding: 10px; }
.p-20  { padding: 20px; }
.p-30  { padding: 30px; }

/* ============================================
   مكونات التعدين المتقدمة - Mining Components
   ============================================ */

/* حاوية الموبايل الرئيسية */
.system-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    height: 420px;
}

/* زون التعدين المركزية */
.core-mining-zone {
    width: 240px;
    height: 240px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

/* الحلقات الصناعية - مضبوطة على السنتر */
.industrial-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px dashed #997a00;
    opacity: 0.15;
    transition: all 0.5s ease;
    pointer-events: none;
}

.ring-outer {
    width: 220px;
    height: 220px;
    animation: spinClockwise 40s linear infinite;
}

.ring-inner {
    width: 240px;
    height: 240px;
    animation: spinCounter 25s linear infinite;
    border: 1px dotted var(--primary-color);
}

/* الهيكل الداخلي */
.interior-layout {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    position: relative; /* مهم */
}

/* شعار BTC المركزي */
.btc-core-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 85px;
    font-weight: 900;
    color: rgba(247, 147, 26, 0.05);

    z-index: 1;
    pointer-events: none;
}
/* شاشة الأرقام */
.data-stream-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.core-mining-circle {
    position: relative;
    width: 240px;
    height: 240px;
}

.crypto-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: color 0.4s;
}

.fiat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #444444;
    margin-top: 2px;
    transition: color 0.4s;
}

.status-text {
    font-size: 8px;
    font-weight: 700;
    color: #222222;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
    transition: all 0.4s;
}

/* الحالة النشطة - system-active */
.system-active .industrial-ring {
    opacity: 0.7;
}

.system-active .ring-outer {
    border-color: var(--primary-color);
    animation: spinClockwiseActive 4s linear infinite;
}

.system-active .ring-inner {
    border-color: #ffffff;
    animation: spinCounterActive 2s linear infinite;
}

.system-active .btc-core-symbol {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
    animation: pulseCore 0.6s ease-in-out infinite alternate;
}

.system-active .fiat-value {
    color: var(--primary-color);
}

.system-active .status-text {
    color: var(--primary-color);
}

/* جزيئات الأرقام الطائرة */
.mining-particle {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    transform: translate(-50%, -50%);
    animation: particleFade 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    text-shadow: 0 0 4px rgba(247, 147, 26, 0.5);
}

/* زر التشغيل */
.action-trigger-btn {
    margin: 0 auto;
    margin-top: 15px;
    background: #050505;
    border: 1px solid #1f1f1f;
    padding: 11px 18px;
    border-radius: 10px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 85%;
    max-width: 260px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transition: all 0.25s ease;

    z-index: 15;
    -webkit-tap-highlight-color: transparent;
}

.action-trigger-btn:active {
    border-color: var(--primary-color);
    background: #050505;
}

.action-trigger-btn:hover {
    border-color: var(--primary-color);
    background: #050505;
    box-shadow: 0 0 15px rgba(247, 147, 26, 0.1);
}

.btn-indicator-light {
    width: 6px;
    height: 6px;
    background-color: #333333;
    transition: all 0.3s;
}

.btn-label {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.system-active .action-trigger-btn {
    border-color: var(--primary-color);
}

.system-active .btn-indicator-light {
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    animation: blinkLight 0.5s infinite alternate;
}

.interior-layout {
    position: static;
    display: block;
}

/* كيفريمز - محافظة على السنتر للموبايل */
@keyframes spinClockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

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

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

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

@keyframes pulseCore {
    from { transform: scale(1); }
    to   { transform: scale(1.03); }
}

@keyframes blinkLight {
    0%   { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes particleFade {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.8) translateY(0); }
    15%  { opacity: 1; transform: translate(-50%, -50%) scale(1)   translateY(-3px); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8) translateY(-25px); }
}