:root {
    --mt-bg: #0A141B;
    --mt-panel: #111F28;
    --mt-panel-hover: #162A34;
    --mt-border: rgba(159, 190, 199, .15);
    --mt-border-hover: rgba(0, 191, 166, .55);
    --mt-primary: #00BFA6;
    --mt-primary-hover: #00A38F;
    --mt-primary-soft: rgba(0, 191, 166, .10);
    --mt-text: #EDF5F6;
    --mt-muted: #91A7B2;
    --mt-radius: 17px;
    --mt-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(ellipse at 85% 0%, rgba(0, 191, 166, .075), transparent 38%),
        var(--mt-bg) !important;
    color: var(--mt-text) !important;
}

body .app-header,
body .navbar {
    background: rgba(13, 27, 35, .96) !important;
    border-color: var(--mt-border) !important;
    backdrop-filter: blur(15px);
}

body .app-header {
    border-bottom: 1px solid var(--mt-border) !important;
}

body .navbar-brand,
body .brand {
    color: var(--mt-text) !important;
    font-weight: 800;
    letter-spacing: -.35px;
}

body .brand-dot {
    color: var(--mt-primary) !important;
}

body .nav-link {
    color: #B8C9D0 !important;
    transition: color .2s ease;
}

body .nav-link:hover,
body .nav-link.active {
    color: #64E4D1 !important;
}

/* بطاقات موحّدة */
body .panel,
body .user-card,
body .feature-card,
body .market-card,
body .quote-card,
body .forex-card,
body .market-choice,
body .news-panel,
body .wallet-card,
body .chart-heading,
body .topbar,
body .sidebar,
body .section-card,
body .hero-visual,
body .bottom-cta {
    background: linear-gradient(145deg, #13242D, #101D25) !important;
    border: 1px solid var(--mt-border) !important;
    border-radius: var(--mt-radius) !important;
    box-shadow: var(--mt-shadow);
}

body .panel,
body .topbar,
body .sidebar,
body .section-card {
    padding: 23px;
}

body .feature-card,
body .market-card,
body .quote-card,
body .forex-card,
body .market-choice,
body .news-panel,
body .user-card {
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

body .feature-card:hover,
body .market-card:hover,
body .quote-card:hover,
body .forex-card:hover,
body .market-choice:hover,
body .user-card:hover {
    border-color: var(--mt-border-hover) !important;
    background: linear-gradient(145deg, #172D36, #11232B) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .25);
}

/* أزرار موحّدة */
body .btn-main,
body .action-deposit {
    background: linear-gradient(135deg, #00C9AD, #00A88F) !important;
    color: #04221E !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    padding: 11px 19px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0, 191, 166, .12);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

body .btn-main:hover,
body .action-deposit:hover {
    color: #031B18 !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 21px rgba(0, 191, 166, .19);
}

body .btn-outline-custom,
body .action-withdraw,
body .btn-outline-light {
    background: rgba(255, 255, 255, .025) !important;
    color: #DDEBED !important;
    border: 1px solid #3B535E !important;
    border-radius: 11px !important;
    padding: 10px 17px;
    font-weight: 700;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

body .btn-outline-custom:hover,
body .action-withdraw:hover,
body .btn-outline-light:hover {
    background: var(--mt-primary-soft) !important;
    color: #7DEAD9 !important;
    border-color: var(--mt-primary) !important;
}

body .chart-btn {
    display: block;
    text-align: center;
    border: 1px solid rgba(0, 191, 166, .38) !important;
    border-radius: 10px !important;
    color: #70E4D3 !important;
    background: rgba(0, 191, 166, .07) !important;
    padding: 11px 14px;
    font-weight: 700;
    transition: background .18s ease, border-color .18s ease;
}

body .chart-btn:hover {
    background: rgba(0, 191, 166, .15) !important;
    border-color: var(--mt-primary) !important;
}

body .market-tab {
    border: 1px solid var(--mt-border) !important;
    border-radius: 10px !important;
    color: #AFC2CB !important;
    background: rgba(255, 255, 255, .02) !important;
    transition: .18s ease;
}

body .market-tab.active,
body .market-tab:hover {
    color: #85F0DF !important;
    background: var(--mt-primary-soft) !important;
    border-color: rgba(0, 191, 166, .48) !important;
}

/* أشرطة الأسعار */
body .market-row {
    background: #111F28 !important;
    border: 1px solid var(--mt-border) !important;
    border-radius: 13px !important;
    color: var(--mt-text) !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

body .market-row:hover {
    background: #162A34 !important;
    border-color: var(--mt-border-hover) !important;
    color: #FFFFFF !important;
    transform: translateX(-2px);
}

body .market-action {
    color: #70E4D3 !important;
}

/* الأيقونات العامة - مع الحفاظ على ألوان شعارات العملات */
body .icon-box,
body .feature-icon,
body .news-icon,
body .visual-icon {
    background: rgba(0, 191, 166, .11) !important;
    color: #68E4D1 !important;
    border: 1px solid rgba(0, 191, 166, .13);
    border-radius: 14px;
}

body .market-icon:not(.asset-mark) {
    background: rgba(0, 191, 166, .11) !important;
    color: #68E4D1 !important;
}

body .asset-mark {
    border: 1px solid rgba(255, 255, 255, .13);
}

/* شريط التنقل السفلي */
body .app-bottom-nav {
    background: rgba(12, 26, 34, .97) !important;
    border-color: rgba(148, 184, 195, .18) !important;
    box-shadow: 0 13px 42px rgba(0, 0, 0, .36);
    backdrop-filter: blur(20px);
}

body .bottom-link {
    border-radius: 12px;
    transition: background .18s ease, color .18s ease;
}

body .bottom-link:hover {
    background: rgba(0, 191, 166, .075) !important;
    color: #C8F9F0 !important;
}

body .bottom-link.active {
    background: rgba(0, 191, 166, .11) !important;
    color: #72E9D7 !important;
}

body .bottom-link.active i {
    color: #58DCC7 !important;
}

/* شريط الأخبار */
body .news-ticker,
body .dashboard-news-ticker {
    background: #111F28 !important;
    border: 1px solid var(--mt-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 7px 25px rgba(0, 0, 0, .14);
}

body .news-ticker-label,
body .dashboard-ticker-label {
    background: linear-gradient(135deg, #00BFA6, #009F8A) !important;
    color: #04221E !important;
    font-weight: 800;
}

body .news-ticker-item,
body .dashboard-ticker-item {
    color: #E5F0F2 !important;
}

body .news-ticker-item:hover,
body .dashboard-ticker-item:hover {
    color: #72E9D7 !important;
}

body .news-item {
    background: #0D1B23 !important;
    border-color: var(--mt-border) !important;
    border-radius: 12px !important;
}

body .news-item:hover {
    border-color: var(--mt-border-hover) !important;
    color: #76E6D5 !important;
}

/* العناوين والنصوص */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    color: #EFF7F8;
    letter-spacing: -.25px;
}

body .muted,
body .market-muted,
body .quote-label,
body .forex-muted,
body .news-ticker-meta,
body .dashboard-ticker-meta {
    color: var(--mt-muted) !important;
}

body .hero-badge {
    background: rgba(0, 191, 166, .08) !important;
    border-color: rgba(0, 191, 166, .3) !important;
    color: #7CE9D9 !important;
}

body .hero h1 span {
    color: #60E5D1 !important;
}

/* نماذج الإدخال */
body .form-control,
body .form-select,
body textarea,
body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    background: #0A171E !important;
    color: #EDF5F6 !important;
    border: 1px solid #2D4651 !important;
    border-radius: 10px !important;
}

body .form-control:focus,
body .form-select:focus,
body textarea:focus,
body input:focus {
    border-color: #00BFA6 !important;
    box-shadow: 0 0 0 .2rem rgba(0, 191, 166, .13) !important;
}

body .form-check-input:checked {
    background-color: #00BFA6 !important;
    border-color: #00BFA6 !important;
}

/* اتجاهات السعر */
body .quote-up,
body .change-up,
body .market-up,
body .forex-up {
    color: #56D9A6 !important;
}

body .quote-down,
body .change-down,
body .market-down,
body .forex-down {
    color: #FF8797 !important;
}

/* أزرار الروابط العامة */
body a {
    text-underline-offset: 3px;
}

body a:focus-visible,
body button:focus-visible {
    outline: 2px solid #61E7D3;
    outline-offset: 3px;
}

body .alert {
    border-radius: 12px;
}

@media (max-width: 576px) {
    body .panel,
    body .topbar,
    body .sidebar,
    body .section-card {
        padding: 17px;
    }

    body .btn-main,
    body .action-deposit,
    body .action-withdraw {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body *,
    body *::before,
    body *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
