﻿/* Website içi alert stili - Premium Glassmorphism */
.website-alert {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 10000;
    max-width: 380px;
    width: calc(100% - 40px);
    padding: 16px 20px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: alertSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    overflow: hidden;
    border: none;
}

.website-alert.success {
    background: rgba(16, 185, 129, 0.2);
    border-left: 4px solid #10b981;
    color: #fff;
}

.website-alert.error {
    background: rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    color: #fff;
}

.website-alert i {
    font-size: 22px;
    flex-shrink: 0;
}

.website-alert.success i {
    color: #10b981;
}

.website-alert.error i {
    color: #ef4444;
}

.website-alert .content {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.website-alert .close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.website-alert .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Progress Bar */
.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.alert-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
}

.website-alert.success .alert-progress-bar {
    background: #10b981;
}

.website-alert.error .alert-progress-bar {
    background: #ef4444;
}

@keyframes alertSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes alertSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.website-alert.hiding {
    animation: alertSlideOut 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@media (max-width: 768px) {
    .website-alert {
        top: 20px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}

/* LOADING SCREEN SYSTEM */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0b0e11;
    background-image: url('../../img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s;
    pointer-events: none;
    /* Altındaki ögelere erişimi engellememesi için */
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-logo {
    height: 55px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain;
    animation: logo-pulse 1.5s infinite ease-in-out;
}

.loading-text {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes logo-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* MOBİL MARKET TABLOSU */
.market-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    background: var(--card-bg);
}

.market-table {
    width: 100%;
    table-layout: fixed;
    min-width: 100%;
    margin: 0;
}

.market-table th:nth-child(1),
.market-table td:nth-child(1) {
    width: 40% !important;
    text-align: left;
    padding-left: 12px;
    padding-right: 8px;
}

.market-table th:nth-child(2),
.market-table td:nth-child(2) {
    width: 20% !important;
    text-align: center;
    padding: 12px 4px;
}

.market-table th:nth-child(3),
.market-table td:nth-child(3) {
    width: 20% !important;
    text-align: center;
    padding: 12px 4px;
}

.market-table th:nth-child(4),
.market-table td:nth-child(4) {
    width: 20% !important;
    text-align: center;
    padding: 12px 8px;
}

.market-table th,
.market-table td {
    padding: 14px 6px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.market-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 16px;
}

.stock-info-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.stock-symbol-compact {
    font-weight: bold;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 2px;
}

.stock-name-compact {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.price-mobile {
    font-weight: 600;
    font-size: 15px;
}

.change-mobile {
    font-size: 13px;
    font-weight: 500;
}

.positive {
    color: #10b981 !important;
}

.negative {
    color: #ef4444 !important;
}

.market-table .btn {
    padding: 10px 14px;
    font-size: 14px;
    white-space: nowrap;
    min-width: 80px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .market-table-container {
        margin: 0 -10px;
        width: calc(100% + 20px);
        border-radius: 0;
    }

    .market-table {
        min-width: 100%;
    }

    .market-table th:nth-child(1),
    .market-table td:nth-child(1) {
        width: 45% !important;
        padding-left: 15px;
    }

    .market-table th:nth-child(2),
    .market-table td:nth-child(2) {
        width: 18% !important;
    }

    .market-table th:nth-child(3),
    .market-table td:nth-child(3) {
        width: 17% !important;
    }

    .market-table th:nth-child(4),
    .market-table td:nth-child(4) {
        width: 20% !important;
        padding-right: 15px;
    }

    .market-table th,
    .market-table td {
        padding: 12px 5px;
        font-size: 14px;
    }

    .stock-symbol-compact {
        font-size: 15px;
    }

    .stock-name-compact {
        font-size: 12px;
    }

    .market-table .btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .market-table-container {
        margin: 0 -8px;
        width: calc(100% + 16px);
    }

    .market-table th:nth-child(1),
    .market-table td:nth-child(1) {
        width: 40% !important;
        padding-left: 12px;
    }

    .market-table th:nth-child(2),
    .market-table td:nth-child(2) {
        width: 20% !important;
    }

    .market-table th:nth-child(3),
    .market-table td:nth-child(3) {
        width: 20% !important;
    }

    .market-table th:nth-child(4),
    .market-table td:nth-child(4) {
        width: 20% !important;
        padding-right: 12px;
    }

    .market-table th,
    .market-table td {
        padding: 10px 4px;
        font-size: 13px;
    }

    .stock-symbol-compact {
        font-size: 14px;
    }

    .stock-name-compact {
        font-size: 11px;
    }

    .price-mobile {
        font-size: 14px;
    }

    .change-mobile {
        font-size: 12px;
    }

    .market-table .btn {
        padding: 7px 10px;
        font-size: 12px;
        min-width: 65px;
    }
}

@media (max-width: 360px) {

    .market-table th:nth-child(1),
    .market-table td:nth-child(1) {
        width: 38% !important;
        padding-left: 10px;
    }

    .market-table th:nth-child(2),
    .market-table td:nth-child(2) {
        width: 22% !important;
    }

    .market-table th:nth-child(3),
    .market-table td:nth-child(3) {
        width: 20% !important;
    }

    .market-table th:nth-child(4),
    .market-table td:nth-child(4) {
        width: 20% !important;
        padding-right: 10px;
    }

    .market-table th,
    .market-table td {
        padding: 8px 3px;
        font-size: 12px;
    }

    .market-table .btn {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 60px;
    }
}

/* YATAY MOD İÇİN OPTİMİZASYON */
@media (max-width: 768px) and (orientation: landscape) {

    .market-table th,
    .market-table td {
        padding: 10px 4px;
        font-size: 13px;
    }

    .market-table .btn {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* KAYDIRMA ÇUBUĞU STİLİ */
.market-table-container::-webkit-scrollbar {
    height: 4px;
}

.market-table-container::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 2px;
}

.market-table-container::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 2px;
}

.market-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Orijinal CSS kodunun geri kalanı */
/* PROFESYONEL TRADING TEMA DEĞİŞKENLERİ */
:root {
    --primary-color: #c8272b;
    --primary-hover: #e32d32;
    --secondary-color: #707a8a;
    --accent-color: #c8272b;
    --success-color: #0ecb81;
    --danger-color: #c8272b;
    --warning-color: #f0b90b;

    --light-bg: #f5f6fa;
    --card-bg: #ffffff;
    --input-bg: #f0f1f5;

    --text-color: #1e2329;
    --text-muted: #707a8a;

    --border-color: #eaecef;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);

    --header-height: 64px;
}

[data-theme="dark"] {
    --light-bg: #131722;
    --card-bg: #1c212d;
    --input-bg: #2a2e39;
    --text-color: #e6e8ea;
    --text-muted: #848e9c;
    --border-color: #2b3139;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Transition kaldırıldı: Performans ve profesyonel anlık tepki için */
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 80px;
}

main.container {
    padding-top: 24px;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* YENİ TRADER TASARIMI - GERÇEK RESİMLER */
.traders-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    justify-items: center;
}

.trader-profile-new {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.trader-avatar-new {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    border: 3px solid var(--accent-color);
    transition: all 0.3s ease;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #444444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trader-avatar-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.trader-profile-new:hover .trader-avatar-new {
    transform: scale(1.1);
    border-color: var(--success-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Avatar yüklenirken yedek emoji gösterimi */
.trader-avatar-new .avatar-emoji {
    font-size: 30px;
    display: none;
}

.trader-avatar-new img.loading+.avatar-emoji {
    display: flex;
}

/* TRADER UZMANLARI STİLLERİ */
.trader-card {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.trader-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.trader-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.trader-info {
    flex: 1;
}

.trader-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.trader-description {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    margin-bottom: 15px;
}

.trader-experience {
    display: flex;
    align-items: center;
    font-size: 13px;
    opacity: 0.8;
}

.trader-experience i {
    margin-right: 5px;
    color: var(--accent-color);
}

/* Trader Modal Stilleri */
.trader-modal-content {
    max-width: 400px;
    width: 90%;
}

.trader-detail-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.detail-stat {
    background: var(--light-bg);
    padding: 12px;
    border-radius: var(--border-radius);
    text-align: center;
}

.detail-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 5px;
}

.detail-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.rating-stars {
    color: #ffc107;
    margin: 8px 0;
    font-size: 18px;
}

/* PREMIUM HEADER & NAVIGATION */
header {
    background: #ffffff;
    /* backdrop-filter: blur(12px); Removed for solid white */
    /* -webkit-backdrop-filter: blur(12px); Removed for solid white */
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Light border for contrast */
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 32px;
    /* Header yüksekliğine uygun boyut */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* SEARCH BOX */
.header-search-container {
    flex: 1;
    margin-right: 20px;
    /* Space between search and actions */
    position: relative;
    display: block !important;
    /* Ensure it's never hidden by default */
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.header-search-container input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 8px 12px 8px 40px;
    border-radius: 10px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.header-search-container input:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(246, 70, 93, 0.1);
    outline: none;
}

.global-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: none;
    z-index: 1001;
}

.global-search-item {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.global-search-item:hover {
    background: rgba(246, 70, 93, 0.05);
}

.s-symbol {
    font-weight: 800;
    color: var(--text-color);
}

.s-name {
    font-size: 12px;
    color: var(--text-muted);
}

/* ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-btn {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-btn i {
    font-size: 18px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.header-btn:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
}

.header-btn:hover i {
    color: var(--primary-color);
}

/* PROFILE DROPDOWN */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 6px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-btn i {
    font-size: 22px;
    color: var(--primary-color);
}

.user-dropdown-btn:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1002;
    overflow: hidden;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 10px;
    opacity: 0.5;
}

.theme-toggle-item {
    cursor: pointer;
}

.dropdown-item {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
}

.dropdown-item:hover {
    background: rgba(246, 70, 93, 0.05);
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

/* NOTIFICATION BADGE */
.header-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
}

.notification-dropdown {
    width: 320px !important;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(246, 70, 93, 0.05);
}

.n-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.n-content {
    flex: 1;
}

.n-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.n-text {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.n-time {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
}

.logout-item {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--danger-color);
}

.show {
    display: block;
}

@media (max-width: 900px) {
    .header-search-container {
        margin-right: 10px;
    }
}

@media (max-width: 600px) {
    .header-search-container {
        margin-right: 5px;
    }

    .header-content {
        gap: 10px;
    }

    .logo {
        margin-right: 5px;
    }
}

/* User Balance Display - New Premium Element */
.user-balance-header {
    margin-right: 15px;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.user-balance-header .balance-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.user-balance-header .balance-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

/* Dropdowns */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background: var(--card-bg);
    min-width: 280px;
    max-width: 320px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    z-index: 1500;
    animation: dropdownFade 0.25s ease;
}


.dropdown-header {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(246, 70, 93, 0.02);
}

.dropdown-item {
    padding: 14px 20px;
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: rgba(246, 70, 93, 0.05);
}

.dropdown-item i {
    width: 24px;
    color: var(--primary-color);
    font-size: 16px;
    margin-right: 8px;
}

.dropdown-item.unread {
    background-color: rgba(246, 70, 93, 0.03);
    border-left: 3px solid var(--primary-color);
}

.notif-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
    color: var(--text-color);
}

.notif-msg {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 4px;
}

.notif-time {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(246, 70, 93, 0.02);
}

.view-all-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Profile Btn */
.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(246, 70, 93, 0.05);
    border: 1px solid transparent;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.user-dropdown-btn:hover {
    background: rgba(246, 70, 93, 0.1);
    border-color: rgba(246, 70, 93, 0.2);
}

.user-dropdown-btn i:first-child {
    color: var(--primary-color);
    font-size: 16px;
}

/* DUYURULAR SLIDER */
.announcements-slider {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.announcements-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    background: var(--card-bg);
}

.announcement-item {
    min-width: 100%;
    padding: 24px;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.announcement-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.announcement-content {
    font-size: 14px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.announcement-date {
    font-size: 12px;
    color: #cccccc;
}

.slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: white;
}

/* HIZLI İŞLEMLER KUTUCUKLARI - SADECE ANA SAYFA İÇİN */
.home-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.home-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    padding: 15px 8px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.home-action-btn i {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.home-action-btn span {
    font-size: 12px;
    font-weight: 500;
}

.home-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    background-color: var(--accent-color);
    color: white;
}

.home-action-btn:hover i {
    color: white;
}

/* DİĞER SAYFALAR İÇİN QUICK ACTIONS (ORİJİNAL) */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.action-btn i {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    background-color: var(--accent-color);
    color: white;
}

.action-btn:hover i {
    color: white;
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

/* Butons */
/* Buttons */
.btn {
    padding: 8px 16px;
    /* Daha kompakt */
    border: 1px solid transparent;
    border-radius: 4px;
    /* Keskin */
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #ff0000;
    /* Biraz daha koyu mavi */
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #0bb573;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #d93d51;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(41, 98, 255, 0.05);
}

.btn:active {
    transform: translateY(1px);
}

/* Stock List */
.stock-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stock-item {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: none;
    /* Temiz görünüm */
}

.stock-item:hover {
    border-color: var(--primary-color);
    background-color: var(--light-bg);
}

.stock-info h3 {
    font-size: 14px;
    /* Daha kompakt */
    margin-bottom: 4px;
    color: var(--text-color);
    font-weight: 600;
}

.stock-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    /* Fiyatlar için monospaced */
}

.stock-change {
    font-size: 14px;
}

.positive {
    color: var(--success-color);
}

.negative {
    color: var(--accent-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    display: flex;
    justify-content: space-around;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid var(--border-color);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.bottom-nav-item.active {
    color: var(--accent-color);
}

/* Page Content */
.page-content {
    display: none;
    padding: 20px 0;
}

.page-content.active {
    display: block;
}

/* User dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

/* Gereksiz mükerrer tanım kaldırıldı, üstteki asıl tanım kullanılıyor */

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
}

.show {
    display: block;
}

/* Error/Success Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

[data-theme="dark"] .alert-success {
    background-color: #d4edda;
    color: #155724;
}

[data-theme="dark"] .alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* SL/TP için özel stiller */
.sltp-info {
    font-size: 12px;
    line-height: 1.3;
}

.sltp-sl {
    color: #e74c3c;
    font-weight: bold;
}

.sltp-tp {
    color: #2ecc71;
    font-weight: bold;
}

/* LONG/SHORT için yeni stiller - KÜÇÜK YAZI */
.position-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
    margin-left: 3px;
}

.position-long {
    background-color: #2ecc71;
    color: white;
}

.position-short {
    background-color: #e74c3c;
    color: white;
}

.leverage-badge {
    background-color: #3498db;
    color: white;
    padding: 1px 4px;
    border-radius: 6px;
    font-size: 8px;
    margin-left: 3px;
}

/* YENİ: KALDIRAÇ BAR STİLLERİ - KALDIRILDI */
.leverage-bar-container {
    display: none;
    /* KALDIRAÇ BAR KALDIRILDI */
}

/* Trade Modal için responsive düzenlemeler */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-height: 700px) {
    .modal-content {
        max-height: 95vh;
        margin: 10px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-control {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* KÜÇÜLTÜLMÜŞ LONG/SHORT BUTONLARI - MOBİL İÇİN YAN YANA */
.position-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.position-type-btn {
    flex: 1;
    padding: 8px 4px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 12px;
}

.position-type-btn i {
    font-size: 16px;
    margin-bottom: 3px;
    display: block;
}

.position-type-btn.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
}

.position-type-btn.long.active {
    border-color: #2ecc71;
    background: #2ecc71;
}

.position-type-btn.short.active {
    border-color: #e74c3c;
    background: #e74c3c;
}

/* Margin bilgisini küçült */
.margin-info {
    background: var(--light-bg);
    padding: 8px;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    font-size: 12px;
}

/* Modal içeriğini sığdırmak için düzenlemeler */
.modal-content {
    width: 95%;
    max-width: 400px;
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5px;
        padding: 15px;
    }

    .modal-header {
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    /* MOBİL İÇİN LONG/SHORT BUTONLARI YAN YANA */
    .position-type-selector {
        flex-direction: row;
        gap: 6px;
    }

    .position-type-btn {
        padding: 6px 3px;
        font-size: 11px;
    }

    .position-type-btn i {
        font-size: 14px;
        margin-bottom: 2px;
    }
}

/* MOBİL ÖZEL STİLLER */
.mobile-only {
    display: none;
}

.desktop-only {
    display: inline;
}

/* MOBİL KART TASARIMI - ESKİ SİTEDEN ENTEGRE */
.mobile-portfolio-view {
    display: none;
}

.desktop-view {
    display: block;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.portfolio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.portfolio-card-symbol {
    font-weight: bold;
    font-size: 16px;
    color: var(--accent-color);
}

.portfolio-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.portfolio-card-detail {
    font-size: 12px;
}

.portfolio-card-detail label {
    font-weight: bold;
    display: block;
    color: var(--text-muted);
    font-size: 10px;
}

.portfolio-card-actions {
    display: flex;
    gap: 5px;
    justify-content: space-between;
}

.portfolio-card-actions .btn {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

.container {
    padding: 0 10px;
}

main.container {
    padding-bottom: 80px;
}

.bottom-nav {
    padding: 12px 5px;
}

.bottom-nav-item {
    font-size: 11px;
    padding: 5px;
}

.bottom-nav-item i {
    font-size: 18px;
    margin-bottom: 3px;
}

/* HIZLI İŞLEMLER MOBİL - SADECE ANA SAYFA */
.home-quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.home-action-btn {
    padding: 12px 5px;
}

.home-action-btn i {
    font-size: 18px;
    margin-bottom: 5px;
}

.home-action-btn span {
    font-size: 11px;
}

/* DİĞER SAYFALAR İÇİN MOBİL */
.quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.action-btn {
    padding: 12px 8px;
}

.action-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}

/* YENİ TRADER TASARIMI MOBİL */
.traders-grid-new {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.trader-avatar-new {
    width: 60px;
    height: 60px;
}

/* MOBİL KART GÖRÜNÜMÜ AKTİF */
@media (max-width: 480px) {
    .mobile-portfolio-view {
        display: block;
    }

    .desktop-view {
        display: none;
    }

    .traders-grid-new {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .position-type-selector {
        flex-direction: row;
    }

    .leverage-options {
        flex-wrap: wrap;
    }

    .leverage-option {
        flex: 1 0 45%;
    }
}

@media (max-width: 360px) {
    .traders-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .home-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Diğer responsive stiller */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 992px) {
    .stock-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .data-table th,
    .data-table td {
        padding: 10px;
        font-size: 14px;
    }

    .card {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .stock-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .stock-item {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .stock-info h3 {
        font-size: 14px;
    }

    .stock-price {
        font-size: 16px;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .action-btn {
        padding: 10px;
    }

    .action-btn i {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
        font-size: 12px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-title {
        margin-bottom: 10px;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px;
    }

    .tab {
        padding: 8px 12px;
        font-size: 14px;
    }

    .form-control {
        padding: 10px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .stock-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .home-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .register-tabs {
        flex-direction: column;
    }

    .register-tab {
        margin-bottom: 5px;
    }

    .login-form,
    .register-form {
        padding: 20px;
    }
}

/* Notification Dropdown Styling - REFINED */
.notification-dropdown {
    position: relative;
}

.notification-dropdown .dropdown-content {
    min-width: 320px;
    max-height: 450px;
    overflow-y: auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

.notification-dropdown .dropdown-header {
    padding: 15px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-bg);
    color: var(--text-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.notification-dropdown .dropdown-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.notification-dropdown .dropdown-item:hover {
    background: var(--light-bg);
}

.notification-dropdown .dropdown-item.unread {
    background: rgba(13, 110, 253, 0.05);
    border-left: 3px solid #0d6efd;
}

.notif-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-color);
}

.notif-msg {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 6px;
}

.notif-time {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-dropdown .dropdown-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--light-bg);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.view-all-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Modal stilleri */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Form stilleri */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
}

/* Tab stilleri */
.tabs {
    display: flex;
    overflow-x: auto;
    margin-bottom: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.tab {
    padding: 10px 20px;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    border-bottom: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
}

/* Table stilleri */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .data-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Login/Register stilleri */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #444444 100%);
}

.login-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.register-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid var(--border-color);
}

/* YENİ: Giriş/Kayıt butonları form içinde */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    background-color: var(--light-bg);
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background-color: var(--accent-color);
    color: white;
}

/* Market tab stilleri */
.market-tab {
    display: block;
}

/* YENİ: TÜM POZİSYONLARI KAPATMA MODAL STİLLERİ */
.close-position-modal {
    max-width: 450px;
}

.close-position-info {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #ffeaa7;
}

[data-theme="dark"] .close-position-info {
    background: #332701;
    color: #ffd351;
    border-color: #665200;
}

.position-summary {
    background: var(--light-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: var(--text-muted);
}

.summary-value {
    font-weight: 600;
}

.profit-positive {
    color: var(--success-color);
}

.profit-negative {
    color: var(--accent-color);
}

/* YENİ: Kilitli alan stilleri */
.locked-field {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: var(--border-radius);
    color: var(--text-muted);
    font-size: 14px;
}

.locked-field i {
    color: var(--accent-color);
    margin-right: 8px;
}

.security-notice {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border: 1px solid #ffeaa7;
    font-size: 13px;
}

[data-theme="dark"] .security-notice {
    background: #332701;
    color: #ffd351;
    border-color: #665200;
}

/* Mobile Markets Fix */
@media (max-width: 480px) {

    .market-table th:last-child,
    .market-table td:last-child {
        min-width: 100px;
    }

    .market-action-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .market-action-group .btn {
        width: 100% !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
}

.market-action-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* Mobile Navigation Improvement */
@media (max-width: 768px) {
    .logo span.desktop-only {
        display: none;
    }

    .logo span.mobile-only {
        display: inline;
    }
}

/* PREMIUM UI UTILITIES */
.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    border-color: rgba(246, 70, 93, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item-premium:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(246, 70, 93, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* LIVE PRICE FLASH ANIMATIONS */
@keyframes flashSuccess {
    0% {
        background-color: rgba(16, 185, 129, 0.4);
        color: white;
    }

    100% {
        background-color: transparent;
    }
}

@keyframes flashDanger {
    0% {
        background-color: rgba(239, 68, 68, 0.4);
        color: white;
    }

    100% {
        background-color: transparent;
    }
}

.flash-success {
    animation: flashSuccess 0.8s ease-out;
    border-radius: 4px;
    padding: 2px 4px;
}

.flash-danger {
    animation: flashDanger 0.8s ease-out;
    border-radius: 4px;
    padding: 2px 4px;
}

.stat-label-premium {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.stat-value-premium {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-color);
}

.btn-premium {
    background: var(--primary-color);
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
}

.btn-premium:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 70, 93, 0.3);
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr;
    }

    .stat-group {
        grid-template-columns: 1fr;
    }
}