:root {
    --bd-primary: #000000;
    --secondary: #25282c;
    --accent: #ffb11a;
    --hover: #ffb11a1a;
    --dark-bg: #0a0e27;
    --card-bg: #16171a;
    --border: #ffb11a33;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --success: #00c853;
    --danger: #ff4757;
    --info: #60a5fa;
}

:root.light-mode {
    --bd-primary: #ffffff;
    --secondary: #f5f5f5;
    --accent: #ffb11a;
    --dark-bg: #f9f9f9;
    --card-bg: #ffffff;
    --border: #f7a600;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --success: #00c853;
    --danger: #ff4757;
    --info: #3b82f6;
}

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

a {
    color: var(--text-primary);
    text-decoration: none;
}
a:hover {
    color: var(--text-primary);
}

body {
    background: var(--bd-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    min-height: 100vh;
    transition: all 0.4s ease;
}

/* Header */
/* ===== HEADER SECTION ===== */
#header {
    background: var(--bd-primary);
    position: sticky;
    top: 0;
    z-index: 500;
    border-bottom: 1px solid var(--border);
}

header {
    padding: 12px 20px;
    z-index: 100;
    height: auto;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--accent);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-weight: bold;
    font-size: 20px;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    position: relative;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 177, 26, 0.3);
}

.search-shortcut {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
}

/* ===== SEARCH SUGGESTIONS ===== */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 600px;
    overflow-y: auto;
    padding: 16px;
}

.search-section {
    margin-bottom: 20px;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-filter-btn:hover {
    background: var(--hover);
    border-color: var(--accent);
    color: var(--accent);
}

.search-filter-btn i {
    font-size: 0.85rem;
}

.recent-searches {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.recent-search-item:hover {
    background: var(--hover);
}

.recent-search-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: var(--text-primary);
}

.recent-search-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.recent-search-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.recent-search-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0;
}

.recent-search-item:hover .recent-search-remove {
    opacity: 1;
}

.recent-search-remove:hover {
    color: var(--danger);
    background: rgba(255, 71, 87, 0.1);
}

.search-suggestions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.search-suggestion-item:hover {
    background: var(--hover);
}

.suggestion-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header-search-clear {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    transition: color 0.2s ease;
}

.header-search-clear:hover {
    color: var(--text-primary);
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* ===== WALLET SUMMARY ===== */
.wallet-summary {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-right: 8px;
}

.wallet-item {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.wallet-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.wallet-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

/* ===== BUTTONS ===== */
.btn-header {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-header:hover {
    background: var(--hover);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sign-up {
    background: var(--accent);
    color: var(--dark-bg);
    border: 1px solid var(--accent);
}

.btn-sign-up:hover {
    background: var(--accent);
    color: var(--dark-bg);
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-deposit {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--dark-bg);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-deposit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===== HEADER MENU ===== */
.header-menu-wrapper {
    position: relative;
}

.header-menu-trigger {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.header-menu-trigger i {
    font-size: 16px;
}

.header-menu-trigger:hover {
    background: var(--hover);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== USER AVATAR ===== */
.header-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-user-avatar:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== HEADER DROPDOWN MENU ===== */
.header-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    padding: 8px;
    z-index: 6000;
    display: none;
}

.header-menu-dropdown.active {
    display: block;
}

.header-menu-section {
    padding: 4px 0;
}

.header-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* ===== HEADER USER INFO ===== */
.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.header-user .header-user-avatar {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
}

.header-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.header-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-sub {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== HEADER MENU ITEMS ===== */
.header-menu-item {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-menu-item:hover {
    background: var(--hover);
    color: var(--accent);
}

.header-menu-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.header-menu-item:hover .header-menu-icon {
    color: var(--accent);
}

/* Danger/Logout item */
.header-menu-item-danger {
    color: var(--danger);
}

.header-menu-item-danger .header-menu-icon {
    color: var(--danger);
}

.header-menu-item-danger:hover {
    background: rgba(239, 68, 68, 0.16);
    color: var(--danger);
}

.header-menu-label {
    flex: 1;
}

/* ===== THEME TOGGLE SWITCH ===== */
.theme-toggle-mobile {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.header-menu-switch {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: var(--border);
    border: 1px solid var(--border);
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.header-menu-switch-knob {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.header-menu-switch--on {
    background: var(--accent);
    border-color: var(--accent);
    justify-content: flex-end;
}

.header-menu-switch--on .header-menu-switch-knob {
    background: var(--dark-bg);
}

/* ===== NAVIGATION ===== */
nav {
    background: var(--bd-primary);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

nav::-webkit-scrollbar {
    display: none;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    white-space: nowrap;
    align-items: center;
    padding: 12px 20px;
    position: relative;
    overflow: visible;
    z-index: 100;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-item i {
    font-size: 0.85rem;
}

.nav-item i.fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-item-dropdown.active .nav-item i.fa-chevron-down {
    transform: rotate(180deg);
}

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

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

.nav-item-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.nav-items-wrapper {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: visible;
    position: relative;
}

/* ===== DROPDOWN MENUS ===== */
.nav-item-dropdown {
    position: relative;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.more-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
    margin-top: 0;
}

.more-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item-dropdown:hover .more-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.dropdown-item:hover {
    background: var(--hover);
    color: var(--accent);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
}

.dropdown-item:hover i {
    color: var(--accent);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.99px) {
    header {
        padding: 10px 15px;
    }

    .header-content {
        gap: 12px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .search-bar {
        display: none;
    }

    .wallet-summary {
        display: none;
    }

    .btn-deposit {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .btn-header {
        padding: 6px 14px;
        font-size: 13px;
    }

    .header-user-avatar {
        width: 36px;
        height: 36px;
    }

    .nav-content {
        padding: 10px 15px;
        gap: 20px;
    }

    .nav-item {
        font-size: 0.9rem;
    }

    .header-menu-dropdown {
        width: 260px;
    }
}

@media (max-width: 575.99px) {
    .nav-container {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .logo span {
        font-size: 1.1rem;
    }

    .btn-header {
        padding: 6px 12px;
        font-size: 12px;
    }

    .nav-content {
        gap: 16px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-item {
        font-size: 0.85rem;
    }
}

/* ===== SECONDARY FILTERS ===== */
.filter-top-bar {
    margin: 15px 0;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.secondary-search-bar {
    position: relative;
    flex: 1;
    /* min-width: 200px; */
    /* max-width: 300px; */
}

.secondary-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.secondary-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 177, 26, 0.2);
}

.secondary-search-input::placeholder {
    color: var(--text-secondary);
}

.secondary-search-bar .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.filter-icon-btn,
.bookmark-icon-btn {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-icon-btn i,
.bookmark-icon-btn i {
    font-size: 1rem;
}

.filter-icon-btn:hover,
.bookmark-icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--hover);
}

.filter-icon-btn.active {
    background: var(--accent);
    color: var(--dark-bg);
    border-color: var(--accent);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 991.99px) {
    .container {
        padding: 0 15px;
    }
}
/* Secondary Filters */

.filter-top-bar {
    margin: 15px 0;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.secondary-search-bar {
    position: relative;
    flex: 1;
    /* min-width: 200px; */
    /* max-width: 180px; */
    padding-left: 10px;
}

.secondary-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    background: var(--secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.secondary-search-input::placeholder {
    color: var(--text-secondary);
}

.secondary-search-bar .search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.filter-icon-btn,
.bookmark-icon-btn {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-icon-btn i,
.bookmark-icon-btn i {
    font-size: 1rem;
}

.sort-by-dropdown {
    display: none;
}
.sort-by-dropdown.active {
    display: block;
    max-height: 200px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-icon-btn:hover,
.bookmark-icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-icon-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Filter Pills Section */
.filters-section-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;

    position: relative;
}

.filters-section {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 0;
    flex: 1;
    scrollbar-width: none;
}

.filters-section::-webkit-scrollbar {
    height: 4px;
}

.filters-section::-webkit-scrollbar-track {
    background: transparent;
}

.filters-section::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

/* Filter Scroll Buttons */
.filter-scroll-btn {
    width: 20px;
    height: 35px;
    background: var(--secondary);
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.filter-scroll-btn:hover {
    background: var(--card-bg);
    border-color: var(--info);
    color: var(--info);
}

.filter-scroll-btn:active {
    transform: scale(0.95);
}

.filter-scroll-btn i {
    font-size: 0.85rem;
}

.filter-scroll-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Show scroll buttons on desktop only */
@media (min-width: 769px) {
    .filter-scroll-btn {
        display: flex;
    }
}

.filter-btn {
    padding: 5px 15px;
    background: var(--secondary);
    border: none;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 500;
    flex-shrink: 0;
}

.filter-btn.active {
    color: var(--accent);
    background: var(--hover);
}

.filter-btn:hover:not(.active) {
    border-color: var(--info);
    color: var(--text-primary);
}

/* Advanced Filters Dropdown */
.advanced-filters {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    margin-top: 0;
}

.advanced-filters.active {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

.filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-dropdown span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 500;
}

.dropdown-select {
    padding: 8px 12px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 140px;
    transition: all 0.3s ease;
}

.dropdown-select:focus {
    outline: none;
    border-color: var(--info);
}

.dropdown-select:hover {
    border-color: var(--info);
}

.filter-checkboxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: var(--secondary);
    padding: 6px 10px;
    border-radius: 10px;
}
.filter-checkbox-input[type="checkbox"] {
    background: var(--text-secondary) !important;
    border-radius: 50%;
    width: 16px;
    height: 16px;
}
.filter-checkbox:hover {
    color: var(--text-primary);
}

.filter-checkbox input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--info);
    width: 16px;
    height: 16px;
}

/* Filter Options Row */
.filter-options-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    opacity: 0;
    max-height: 0;
    /* overflow: hidden; */
    /* visibility: hidden; */
    transition: all 0.4s ease;
}

.filter-options-row.active {
    opacity: 1;
    max-height: 300px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px 0;
    visibility: visible;
}

.filter-buttons-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Mobile: Enable horizontal scrolling */
@media (max-width: 768px) {
    .filter-options-row.active {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
        margin-top: -20px;
    }

    .filter-options-row.active::-webkit-scrollbar {
        display: none;
    }

    .filter-options-row.active .filter-buttons-group {
        flex-wrap: nowrap;
        min-width: max-content;
        width: auto;
        flex-shrink: 0;
    }

    .filter-options-row.active .filter-checkboxes {
        flex-wrap: nowrap;
        min-width: max-content;
        flex-shrink: 0;
    }

    .filter-options-row.active .filter-dropdown-wrapper {
        flex-shrink: 0;
    }
}

.filter-dropdown-wrapper {
    position: relative;
}

.filter-option-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.filter-option-btn:hover {
    border-color: var(--info);
    background: var(--card-bg);
}

.filter-option-btn i {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.filter-dropdown-wrapper.active .filter-option-btn i {
    transform: rotate(180deg);
}

.filter-option-text {
    color: var(--text-primary);
    font-weight: 500;
}

/* Dropdown Menus */
.sort-dropdown-menu,
.frequency-dropdown-menu,
.status-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

/* Mobile: Adjust dropdown position to prevent overflow */
@media (max-width: 768px) {
    .sort-dropdown-menu,
    .frequency-dropdown-menu,
    .status-dropdown-menu {
        min-width: 180px;
    }
}

.filter-dropdown-wrapper.active .sort-dropdown-menu,
.filter-dropdown-wrapper.active .frequency-dropdown-menu,
.filter-dropdown-wrapper.active .status-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-dropdown-menu ul,
.frequency-dropdown-menu ul,
.status-dropdown-menu ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.sort-option,
.frequency-option,
.status-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    position: relative;
}

.sort-option:hover,
.frequency-option:hover,
.status-option:hover {
    background: var(--secondary);
}

.sort-option.active,
.frequency-option.active,
.status-option.active {
    background: var(--secondary);
    color: var(--info);
}

.sort-option i {
    width: 18px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sort-option.active i {
    color: var(--info);
}

.sort-dot {
    width: 6px;
    height: 6px;
    background: var(--info);
    border-radius: 50%;
    margin-left: auto;
    display: none;
}

.sort-option.active .sort-dot {
    display: block;
}

.filter-checkboxes {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-left: auto;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    user-select: none;
}

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

.filter-checkbox input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Markets Grid */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.market-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border);
}

.market-card.single-market {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
}

.market-card.single-market:hover {
    box-shadow: 0 8px 25px rgba(255, 177, 26, 0.2);
    transform: translateY(-1px);
}

.market-card.single-market .market-card-header {
    margin-bottom: 15px;
}

.market-card.single-market .d-flex {
    margin-bottom: 16px;
}

.market-chance {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
}

.chance-value {
    font-size: 22px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    transition: 0.3s ease;
}

.chance-label {
    font-size: 12px;
    color: #83899f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Colors similar to Polymarket */
.chance-value.danger {
    color: #ff4d4f;
    /* red */
}

.chance-value.warning {
    color: #f4c430;
    /* yellow */
}

.chance-value.success {
    color: #32d296;
    /* green */
}

.market-card-body-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.market-card-yes-btn-large,
.market-card-no-btn-large {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.market-card-yes-btn-large {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success);
    border: 2px solid rgba(0, 200, 83, 0.3);
}

.market-card-yes-btn-large:hover {
    background: rgba(0, 200, 83, 0.2);
    border-color: var(--success);
}

.market-card-no-btn-large {
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger);
    border: 2px solid rgba(255, 71, 87, 0.3);
}

.market-card-no-btn-large:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: var(--danger);
}

.market-card:hover {
    /* outline: 1px solid var(--border); */
    box-shadow: 0 8px 25px rgba(255, 177, 26, 0.2);
    transform: translateY(-1px);
}

.market-card-header {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.market-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(
        135deg,
        rgba(255, 177, 26, 0.2),
        rgba(247, 166, 0, 0.1)
    );
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.market-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Underline animation */
.market-card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* distance under the text */
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.market-card-title:hover {
    transition: transform 0.3s ease;
    color: var(--accent);
}

.market-card-title:hover::after {
    width: 100%;
}

.market-card-body {
    margin-bottom: 15px;
    flex: 1;
    max-height: 125px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.market-body::-webkit-scrollbar {
    display: none;
}

.market-card-outcome-row {
    display: grid;
    grid-template-columns: 1fr 60px 50px 50px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 177, 26, 0.1);
    gap: 10px;
    font-size: 0.9rem;
}

.market-card-outcome-row:last-child {
    border-bottom: none;
}

.market-card-outcome-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.market-card-outcome-probability {
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

.market-card-yes-btn,
.market-card-no-btn {
    width: 40px;
    padding: 5px 5px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.market-card-yes-btn {
    border-color: var(--success);
    color: var(--success);
}

.market-card-yes-btn:hover {
    background: rgba(0, 200, 83, 0.1);
    transform: scale(1.05);
}

.market-card-no-btn {
    border-color: var(--danger);
    color: var(--danger);
}

.market-card-no-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    transform: scale(1.05);
}

.market-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.market-card-volume {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.market-card-actions {
    display: flex;
    gap: 8px;
}

.market-card-action-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 5px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}
.market-card-action-btn:hover {
    background: rgba(255, 177, 26, 0.1);
    color: var(--accent);
}
.action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 177, 26, 0.1);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bd-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
    z-index: 2002;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure modals appear above mobile bottom nav */
@media (max-width: 768px) {
    .deposit-modal-overlay,
    .withdrawal-modal-overlay {
        z-index: 7000 !important;
    }

    .deposit-modal-popup,
    .withdrawal-modal-popup {
        z-index: 7001 !important;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 5px 0;
    transition: all 0.3s ease;
}
.nav-item-divider {
    height: 20px;
    width: 1px;
    background: #6c757d;
}

.mobile-nav-item.active {
    color: var(--accent);
}

.mobile-nav-item i {
    font-size: 1.2rem;
}

/* More Menu Sidebar */
.more-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.more-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.more-menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: var(--bd-primary);
    z-index: 1001;
    overflow-y: auto;
    transition: all 0.3s ease;
    padding: 20px;
}

.more-menu-sidebar.active {
    left: 0;
}

.more-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.more-menu-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

.more-menu-search {
    margin-bottom: 20px;
}

.more-menu-search input {
    width: 100%;
    padding: 10px 15px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
}

.more-menu-section {
    margin-bottom: 25px;
}

.more-menu-section h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.browse-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.browse-item:hover {
    background: rgba(255, 177, 26, 0.1);
    color: var(--accent);
}

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

.topic-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.topic-item:hover {
    background: rgba(255, 177, 26, 0.1);
    color: var(--accent);
}

.more-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.more-menu-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.more-menu-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.more-menu-links a:hover {
    color: var(--accent);
}

.more-menu-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.more-menu-social a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.more-menu-social a:hover {
    color: var(--accent);
}

.theme-toggle-mobile {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

.more-menu-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-login-menu,
.btn-signup-menu {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login-menu {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-signup-menu {
    background: var(--info);
    border: none;
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        min-width: 100%;
        margin-top: 10px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hide-mobile {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }

    .markets-grid {
        grid-template-columns: 1fr;
        margin-bottom: 80px;
    }

    .filter-dropdowns {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-content {
        gap: 15px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: #ffb11a;
    }
}

/************************ shaw**************************** */

/* Main Layout */
.main-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.main-content {
    flex: 1;
    padding: 1.5rem 1rem 2rem;
    min-height: calc(100vh - 140px);
}

/* Trading Panel Styles */
.trading-panel {
    width: 380px;
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 160px;
    height: fit-content;
    overflow-y: auto;
    border: 1px solid var(--border);
    margin-left: 1.5rem;
    margin-top: 2rem;
    z-index: 10;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.panel-title-section {
    flex: 1;
    min-width: 0;
}

.panel-market-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 8px 0;
    word-wrap: break-word;
}

.panel-action-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.panel-action-type {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.panel-action-separator {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.panel-outcome-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
}

.panel-outcome-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    word-wrap: break-word;
}

.panel-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.panel-close-btn {
    width: 36px;
    height: 36px;
    background: var(--secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: all 0.3s ease; */
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    z-index: 9999;
}

.panel-close-btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.panel-close-btn:active {
    transform: scale(0.95);
}

.panel-close-btn i {
    /* pointer-events: auto; */
    font-size: 16px;
}

.hide-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hide-desktop {
        display: flex;
    }
}

.action-tabs {
    display: flex;
    gap: 0.5rem;
}

.action-tab {
    flex: 1;
    padding: 5px 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-primary);
}

.action-tab.active {
    background-color: var(--border);
    color: var(--accent);
    border-radius: 6px;
}

/* Hide Sell tab on mobile when buy-only class is active */
@media (max-width: 768px) {
    .action-tabs.buy-only #sellTab {
        display: none;
    }

    .action-tabs.buy-only #buyTab {
        width: 100%;
    }
}

/* Order Type Selector */
.order-type-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.order-type-label {
    font-weight: 500;
    color: var(--text-primary);
}

.order-type-select {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    min-width: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

/* Limit Order Fields */
.limit-order-fields {
    display: none;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.limit-order-fields.active {
    display: block;
}

.limit-input-group {
    margin-bottom: 1rem;
}

.limit-input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.limit-input {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
}

/* Outcome Selection */
.outcome-selection {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.outcome-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.outcome-btn-no {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    background: var(--secondary);
    color: var(--text-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.outcome-btn-yes {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    background: var(--secondary);
    color: var(--text-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.outcome-btn-yes.active {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
}

.outcome-btn-yes:not(.active) {
    background: var(--secondary);
    border-color: var(--border);
    color: var(--text-primary);
}

.outcome-btn-no.active {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.outcome-btn-no:not(.active) {
    background: var(--secondary);
    border-color: var(--border);
    color: var(--text-primary);
}

.outcome-price {
    text-align: center;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Shares Input */
.shares-input-group {
    padding-bottom: 0;
}

.amount-section {
    margin-bottom: 24px;
}

.amount-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.input-label {
    display: block;
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 500;
}

.amount-display-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.amount-currency {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.shares-input {
    width: auto;
    min-width: 60px;
    max-width: 120px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0;
    text-align: right;
    font-size: 2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    outline: none;
}

.shares-input::placeholder {
    color: var(--text-primary);
    opacity: 1;
}

.shares-input:focus {
    outline: none;
}

/* Remove number input spinner icons */
.shares-input::-webkit-outer-spin-button,
.shares-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.shares-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Loader positioning fix */
.x-intersect {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
}

/* Loader container styling */
.text-center .d-flex.align-items-center.justify-content-center {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    min-height: 60px;
}

.loader {
    display: inline-block;
    margin: 0 auto;
    vertical-align: middle;
}

.price-buttons {
    margin-top: 12px;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shares-price {
    flex: 1;
    min-width: 60px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--secondary);
    border: 1px solid var(--border);
}

.shares-price:hover {
    background: var(--card-bg);
    border-color: var(--accent);
}

.shares-input:focus {
    outline: none;
    /* border-color: var(--accent); */
    /* box-shadow: 0 0 0 3px rgba(255, 177, 26, 0.1); */
}

.shares-btn {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.shares-btn:hover {
    background: var(--accent);
    color: var(--dark-bg);
    border: none !important;
}

.quick-amounts {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quick-btn {
    flex: 1;
    padding: 0.5rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: var(--accent);
    color: var(--dark-bg);
}

/* Expiration Toggle */
.expiration-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary);
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Trade Summary */
.trade-summary {
    padding: 0;
    margin-bottom: 24px;
}

.to-win-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.to-win-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.to-win-label {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 500;
}

.avg-price-info {
    font-size: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.avg-price-info span {
    font-weight: 600;
    margin: 0 2px;
}

.to-win-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--success);
    text-align: right;
    white-space: nowrap;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.summary-value {
    font-weight: 600;
}

/* Trade Button */
.trade-btn {
    background: #007aff;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    width: 100%;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    margin-top: 16px;
}

.trade-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 177, 26, 0.4);
}

.trade-btn:active {
    transform: translateY(0);
}

.terms-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 16px;
    margin-bottom: 0;
    line-height: 1.5;
}

.terms-text a {
    color: var(--accent);
}

/* Market Detail Header */
.market-detail-header {
    margin-bottom: 2rem;
}

.market-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.market-header-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.market-profile-img {
    width: 60px;
    /* height: 60px; */
    border-radius: 10%;
    overflow: hidden;
    flex-shrink: 0;
}

.market-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-header-info {
    flex: 1;
    min-width: 0;
}

.market-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
}

.market-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.market-volume {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.market-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.market-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.market-action-btn {
    width: 36px;
    height: 36px;
    background: var(--secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.market-action-btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Date Selection Tabs */
.date-selection-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.date-selection-tabs::-webkit-scrollbar {
    display: none;
}

.date-tab-btn {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.date-tab-btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.date-tab {
    padding: 8px 16px;
    background: var(--secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.date-tab:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.date-tab.active {
    background: var(--accent);
    color: var(--bd-primary);
    font-weight: 600;
}

/* Chart Styles */
.chart-legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chart-container {
    background: var(--bd-primary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 1.5rem;
    padding-bottom: 0.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

.chart-price-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chart-price-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-price-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.chart-time-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.chart-controls {
    display: inline-flex;
    gap: 0.5rem;
    justify-content: start;
    margin-top: 1rem;
    padding-top: 1rem;
}

.chart-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.chart-btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.chart-btn.active {
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Chart Legend (Polymarket style) */
.chart-legend-wrapper {
    margin-bottom: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 0;
    margin: 0;
    width: 100%;
}

.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    user-select: none;
    white-space: nowrap;
}

.chart-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    border: none;
    margin: 0;
}

.chart-legend-text {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

/* Custom Chart Legend with Icons */
.chart-legend-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    margin-bottom: 1rem;
    justify-content: flex-start;
    border-bottom: 1px solid var(--border);
}

.chart-legend-item-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    user-select: none;
}

/* Outcome Section */
.outcome-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.outcome-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--card-bg);
}

.outcome-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.outcome-chance-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refresh-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: var(--secondary);
    color: var(--text-primary);
}

.outcome-row {
    display: flex;
    /* flex-direction: column; */
    gap: 12px;
    padding: 16px;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.outcome-row:last-child {
    border-bottom: none;
}

.outcome-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.outcome-row-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.outcome-row.active,
.outcome-row.selected {
    background: var(--secondary);
    border: 2px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 0 0 2px rgba(255, 177, 26, 0.2);
    transform: translateY(-1px);
}

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

.outcome-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.outcome-text {
    flex: 1;
    min-width: 0;
}

.outcome-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1.4;
}

.outcome-volume {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
}

.outcome-percent-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 100px;
    text-align: right;
}

.outcome-percent {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    white-space: nowrap;
}

.percent-change {
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

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

.percent-change.text-danger {
    color: var(--danger);
}

.outcome-actions {
    display: flex;
    gap: 0.75rem;
    width: 42%;
}

.btn-yes {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    flex: 1;
}

.btn-yes:hover {
    background: #059669;
}

.btn-no {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    flex: 1;
}

.btn-no:hover {
    background: #dc2626;
}

/* Market Info Section */
.market-info-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    gap: 20px;
}

.market-context-section,
.market-rules-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
}

.market-context-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.market-context-title,
.market-rules-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.generate-btn {
    background: var(--info);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    background: #3b82f6;
}

.market-context-content {
    min-height: 60px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.market-rules-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.market-rules-content p {
    margin: 0 0 12px 0;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--info);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    color: #93c5fd;
}

.show-more-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.show-more-btn.expanded i {
    transform: rotate(180deg);
}

/* Tab Container */
.tab-container {
    margin-top: 2rem;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab-nav::-webkit-scrollbar {
    height: 4px;
}

.tab-nav::-webkit-scrollbar-track {
    background: var(--secondary);
}

.tab-nav::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 2px;
}

.tab-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
    font-size: 0.95rem;
}

.tab-item:hover {
    color: var(--accent);
}

.tab-item.active {
    color: var(--accent);
}

.tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Comment Section */

.comments-section {
    margin-bottom: 2rem;
}

.comment-input-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.comment-input-container:focus-within {
    border-color: var(--accent);
}

.comment-input-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.comment-input-container:focus-within .comment-input-avatar {
    border-color: var(--accent);
}

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

.comment-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding-left: 10px;
    min-height: 44px;
    transition: all 0.3s ease;
}

.comment-input {
    flex: 1;
    height: 48px;
    padding: 0 8px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.comment-input::placeholder {
    color: var(--text-secondary);
}

.comment-submit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: var(--accent);
    border: none;
    border-left: 1px solid var(--border);
    border-radius: 0;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.comment-submit-btn:active {
    transform: translateY(0);
}

.comment-submit-btn i {
    font-size: 0.85rem;
}

.comment-submit-btn:disabled {
    background: var(--secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.comment-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comment-section {
    background: transparent;
    border-radius: 0;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.comment-section:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.comment-body {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding-left: 2.75rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding-left: 2.75rem;
}

.comment-action {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.comment-action:hover {
    color: var(--accent);
    background: var(--secondary);
}

.comment-action.liked {
    color: #ff4d4f;
}

.comment-action.liked:hover {
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.1);
}

.comment-reply-wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.comment-reply-input-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 10px;
}

.comment-reply-input {
    flex: 1;
    height: 100%;
    padding: 0;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.comment-reply-submit-btn,
.comment-reply-cancel-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.comment-reply-submit-btn:hover {
    background: var(--accent);
    color: var(--text-primary);
}

.comment-reply-cancel-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

.comment-avatar-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4757 100%);
    overflow: hidden;
}

.comment-avatar-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50%;
    background: var(--accent);
}

.comment-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
}

.comment-filters-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-sort-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-sort-btn:hover {
    background: var(--secondary);
    border-color: var(--accent);
}

.comment-sort-btn i {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comment-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.comment-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.comment-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comment-warning i {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comment-author-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comment-position-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 77, 79, 0.15);
    color: #ff4d4f;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comment-reply-input-inline {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.comment-reply-input-inline-field {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.comment-reply-input-inline-field::placeholder {
    color: var(--text-secondary);
}

.comment-reply-submit-inline {
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: var(--accent);
    border: none;
    border-left: 1px solid var(--border);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-reply-submit-inline:hover {
    background: var(--secondary);
}

.comment-replies-toggle {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.show-replies-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.show-replies-btn:hover {
    color: var(--text-primary);
}

.show-replies-btn i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.comment-replies {
    margin-top: 0.5rem;
    padding-left: 2.5rem;
    border-left: 2px solid var(--border);
}

.comment-reply {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
}

.comment-reply:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.comment-reply-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-reply-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comment-reply-avatar-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffa502 0%, #ff6348 100%);
    overflow: hidden;
}

.comment-reply-avatar-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50%;
    background: var(--accent);
}

.comment-reply-author-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comment-reply-position-badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    background: rgba(255, 77, 79, 0.15);
    color: #ff4d4f;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.comment-reply-meta {
    flex: 1;
}

.comment-reply-author {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.comment-reply-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.comment-reply-body {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
    padding-left: 2.75rem;
    color: var(--text-primary);
}

.comment-reply-actions {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding-left: 2.75rem;
}

.comment-list {
    margin-top: 1rem;
}

.no-comments {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-comments p {
    font-size: 1rem;
    margin: 0;
}

/* Holders Section */
.holders-section {
    background: var(--bd-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.holders-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.holders-tabs {
    display: flex;
    margin-bottom: 1rem;
}

.holders-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.holders-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.holder-list {
    margin-bottom: 1rem;
}

.holder-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--secondary);
}

.holder-rank {
    width: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.holder-name {
    flex: 1;
    font-weight: 500;
}

.holder-shares {
    font-weight: 600;
}

.holder-shares.yes {
    color: var(--success);
}

.holder-shares.no {
    color: var(--danger);
}

/* Activity Section */
.activity-section {
    background: var(--bd-primary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.activity-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.activity-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.activity-filter {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.activity-filter.active {
    background: var(--accent);
    color: var(--dark-bg);
    border-color: var(--accent);
}

.activity-list {
    max-height: 500px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--secondary);
}

.activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.activity-value {
    font-weight: 600;
    text-align: right;
}

.activity-value.buy {
    color: var(--success);
}

.activity-value.sell {
    color: var(--danger);
}

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

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

.ms-3 {
    margin-left: 1rem;
}

/* Mobile Trading Panel Toggle */
.mobile-trade-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--dark-bg);
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
}

/* Mobile Panel Overlay */
.mobile-panel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
}

.mobile-panel-overlay.active {
    display: block;
}

/* Confirmation Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

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

.modal-body {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: var(--secondary);
}

.btn-confirm {
    background: var(--accent);
    color: var(--dark-bg);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-confirm:hover {
    opacity: 0.9;
}

.related-markets {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.market-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.market-tag {
    padding: 6px 12px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.market-tag:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.market-tag.active {
    background: var(--accent);
    color: var(--dark-bg);
    border-color: var(--accent);
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.related-item:hover {
    background: var(--card-bg);
}

.related-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-info {
    flex: 1;
}

.related-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.related-percent {
    font-size: 1.5rem;
    font-weight: 700;
}

.tab-container {
    margin-top: 2rem;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}

.tab-item:hover {
    color: var(--accent);
}

.tab-item.active {
    color: var(--accent);
}

.tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/************************ shaw**************************** */

/************************ login **************************** */

/* Login Container */
.login-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    margin: 3rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.login-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.google-btn {
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    padding: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}
.google-btn:hover {
    background: var(--bd-primary);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}
.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.divider span {
    margin: 0 10px;
    color: var(--text-secondary);
}

.input-row {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.email-input {
    flex: 1;
    background: var(--secondary);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem;
}
.email-input::placeholder {
    color: var(--text-secondary);
}
.continue-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
}
.continue-btn:disabled {
    background: var(--secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-icons a {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.2s;
}
.social-icons a:hover {
    transform: translateY(-2px);
    border: 1px solid var(--accent);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.footer a {
    color: var(--text-secondary);
    text-decoration: none;
}
.footer a:hover {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

/************************ login **************************** */

/************************ user dashboard **************************** */

/* Profile Dashboard Styles */
.profile-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--border);
    margin: 0;
    height: 211px;
    width: 476px;
    display: flex;
    flex-direction: column;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar-wrapper {
    flex-shrink: 0;
}

.profile-avatar-gradient {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #ffd93d, #6bcf7f, #4d9de0);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar-gradient img {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--card-bg);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* Responsive Images */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.profile-id-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.profile-id {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: monospace;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-connect-x {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-connect-x:hover {
    background: var(--card-bg);
    border-color: var(--accent);
}

.btn-icon {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--accent);
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.meta-separator {
    color: var(--text-secondary);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 24px 24px 24px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    flex: 0 0 auto;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Profit/Loss Card */
.profit-loss-card {
    width: 476px;
    /* height: 211px; */
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--border);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.profit-loss-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.profit-loss-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profit-icon {
    color: #00c853;
    font-size: 1rem;
}

.time-filters {
    display: flex;
    gap: 8px;
}

.time-filter-btn {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-filter-btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.time-filter-btn.active {
    background: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
}

.profit-loss-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.profit-loss-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pl-info-icon {
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
}

.profit-loss-timeframe {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.chart-bar {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--accent) 0%,
        rgba(0, 200, 83, 0.3) 100%
    );
    border-radius: 4px;
    width: 20%;
}

.polymarket-logo {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: right;
}

/* Positions/Activity Card */
.positions-activity-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
}

.content-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.content-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

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

.content-tab.active {
    color: var(--accent);
}

.content-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.tab-content-wrapper {
    min-height: 400px;
}

.positions-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.positions-subtabs {
    display: flex;
    gap: 8px;
}

.subtab-btn {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subtab-btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.subtab-btn.active {
    background: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
}

.positions-search-filter {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    z-index: 1;
    pointer-events: none;
}

.search-input {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px 8px 36px;
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 200px;
    transition: all 0.2s ease;
    outline: none;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    border-width: 1.5px;
    width: 250px;
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.filter-dropdown-wrapper {
    position: relative;
}

.filter-dropdown-btn {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.filter-dropdown-btn:hover {
    background: var(--card-bg);
    border-color: var(--accent);
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
}

.filter-dropdown-wrapper.active .filter-dropdown-menu {
    display: block;
}

.filter-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-dropdown-item:hover {
    background: var(--secondary);
    color: var(--text-primary);
}

.filter-dropdown-item.active {
    color: var(--accent);
    background: rgba(0, 200, 83, 0.1);
}

.positions-table,
.activity-table {
    width: 100%;
}

.position-row {
    transition: background-color 0.2s ease;
}

.position-row:hover {
    background-color: var(--hover) !important;
}

.table-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.activity-table .table-header {
    grid-template-columns: repeat(3, 1fr);
}

.table-col {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.table-empty p {
    font-size: 1rem;
    margin: 0;
}

.activity-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
    }

    .profile-id-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .profit-loss-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .time-filters {
        width: 100%;
        justify-content: space-between;
    }

    .time-filter-btn {
        flex: 1;
    }

    .positions-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .positions-search-filter {
        flex-direction: column;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .table-header {
        grid-template-columns: repeat(3, 1fr);
        font-size: 0.7rem;
    }

    .table-col:nth-child(4),
    .table-col:nth-child(5) {
        display: none;
    }
}

.no-positions-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-positions-message p {
    font-size: 0.9375rem;
    margin: 0;
}
/* Settings Container */

.settings-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

@media (max-width: 991.98px) {
    .settings-container {
        padding-top: 80px;
    }
}

.settings-header {
    margin-bottom: 2rem;
}

.profile-header-dropdown {
    display: flex;
    align-items: center;
}

.profile-dropdown-btn {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-dropdown-btn:hover {
    background: var(--card-bg);
    border-color: var(--accent);
}

.profile-dropdown-btn i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.profile-dropdown-btn.active i {
    transform: rotate(180deg);
}

.settings-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.settings-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.settings-content {
    display: flex;
    gap: 2rem;
}

.settings-sidebar {
    flex: 0 0 250px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    border: 1px solid var(--accent);
}

.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-tab {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-tab.active {
    background-color: var(--accent);
    color: #000;
}

.settings-tab:hover:not(.active) {
    background-color: var(--secondary);
    color: var(--text-primary);
}

.settings-main {
    flex: 1;
}

.settings-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background-color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.form-control:focus {
    background-color: var(--secondary);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 177, 26, 0.25);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.profile-avatar-gradient img {
    border-radius: 10px;
}

.upload-btn {
    background-color: var(--secondary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.upload-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.upload-btn i {
    font-size: 0.9rem;
}

/* Profile Avatar Section */
.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-upload {
    flex-shrink: 0;
}

.profile-avatar-gradient {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-gradient img {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--card-bg);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* Responsive Images */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Profile Form Fields */
.profile-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-field {
    width: 100%;
}

.form-field .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-field .form-control {
    width: 100%;
    background-color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-field .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 177, 26, 0.1);
}

.form-field textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Profile Save Section */
.profile-save-section {
    display: flex;
    justify-content: flex-start;
}

.btn-save-changes {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save-changes:hover {
    background: #ffc947;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 177, 26, 0.3);
}

.btn-save-changes:active {
    transform: translateY(0);
}

/* Social Connections */
.social-connections-mobile {
    width: 100%;
}

/* Mobile Profile Dropdown */
.mobile-profile-dropdown {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
    z-index: 1000;
}

.mobile-profile-dropdown-btn {
    width: 100%;
    background-color: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    /* margin-top: 10px; */
}

.mobile-profile-dropdown-btn:hover {
    background-color: var(--card-bg);
    border-color: var(--accent);
}

.mobile-profile-dropdown-btn:active {
    transform: scale(0.98);
    background-color: var(--card-bg);
}

.mobile-profile-dropdown.active .mobile-profile-dropdown-btn {
    border-color: var(--accent);
    background-color: var(--card-bg);
}

.mobile-profile-dropdown.active .mobile-profile-dropdown-btn i {
    transform: rotate(180deg);
}

.mobile-profile-dropdown-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mobile-profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    /* transform: translateY(-10px); */
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
}

.mobile-profile-dropdown.active .mobile-profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-profile-dropdown-item {
    margin-top: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    /* color: var(--text-secondary); */
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-profile-dropdown-item:hover {
    /* background: rgba(255, 255, 255, 0.05); */
    color: var(--accent);
}

.profile-dropdown-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
    display: inline-block;
    flex-shrink: 0;
}

.mobile-profile-dropdown-item.active .profile-dropdown-dot {
    background: var(--text-primary);
}

/* Connect X Button */
.connect-x-btn {
    background-color: var(--accent);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.connect-x-btn:hover {
    background-color: var(--hover);
    color: var(--text-primary);
}

.connect-x-btn i {
    font-size: 1rem;
}

.social-connections-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Save Changes Button */
/* .save-changes-btn {
  background-color: #3b82f6;
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
} */

.save-changes-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.save-changes-btn:active {
    transform: translateY(0);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary);
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: var(--text-primary);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.notification-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.radio-option input[type="radio"] {
    margin-top: 0.25rem;
}

.radio-label {
    flex: 1;
}

.radio-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.radio-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.warning-box {
    background-color: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--danger);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.warning-title {
    color: var(--danger);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.steps-list {
    margin: 1.5rem 0;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    background-color: var(--accent);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
}

.social-connect {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.25rem;
}

.social-text {
    flex: 1;
}

.social-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.social-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--danger);
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Search Popup */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    background: var(--bd-primary);
    z-index: 2001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-search-popup.active {
    transform: translateY(0);
}

.mobile-search-header {
    padding: 15px 20px;
    background: var(--bd-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    border-radius: 12px;
    padding: 10px 10px 9px 45px;
    position: relative;
    margin-bottom: 15px;
}

.mobile-search-bar .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-search-clear {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-search-clear:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.mobile-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0;
}

.mobile-search-bar input::placeholder {
    color: var(--text-secondary);
}

.mobile-search-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: absolute;
    top: 12px;
    right: 20px;
}

.mobile-search-close:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.mobile-search-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-search-tab.active {
    background: var(--secondary);
    border-radius: 10px;
    padding: 8px 20px;
}

.mobile-search-tab:hover:not(.active) {
    color: var(--text-primary);
}

.mobile-search-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.mobile-search-tab-content {
    display: none;
    padding: 15px 20px;
}

.mobile-search-tab-content.active {
    display: block;
}

/* Mobile Search Results */
.mobile-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-result-item:hover {
    background: var(--secondary);
    border-color: var(--accent);
}

.mobile-search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.mobile-search-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-search-result-icon i {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.mobile-search-result-content {
    flex: 1;
    min-width: 0;
}

.mobile-search-result-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-search-result-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mobile-search-result-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.mobile-search-result-percentage {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-search-result-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-search-result-status.success {
    color: var(--success);
}

.mobile-search-result-arrow {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.mobile-search-suggestions {
    margin-bottom: 30px;
}

.mobile-search-suggestions .suggestion-item {
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-search-suggestions .suggestion-item:hover {
    background: var(--secondary);
    border-color: var(--accent);
}

.mobile-search-suggestions .suggestion-item i {
    color: var(--text-secondary);
    font-size: 1rem;
}

.mobile-search-recent h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.recent-searches-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-search-item {
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recent-search-item:hover {
    background: var(--secondary);
    border-color: var(--accent);
}

.recent-search-item span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.recent-search-item i {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Search Livewire Styles */
.mobile-search-section {
    margin-bottom: 24px;
}

.mobile-search-section:last-child {
    margin-bottom: 0;
}

.mobile-search-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.mobile-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-search-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-filter-btn:hover {
    background: var(--secondary);
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-search-filter-btn i {
    font-size: 0.85rem;
}

.mobile-recent-searches {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-recent-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-recent-search-item:hover {
    background: var(--secondary);
    border-color: var(--accent);
}

.mobile-recent-search-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: var(--text-primary);
}

.mobile-recent-search-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-recent-search-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-recent-search-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-recent-search-remove:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.mobile-search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-search-suggestion-item:hover {
    background: var(--secondary);
    border-color: var(--accent);
}

.mobile-search-suggestion-item:last-child {
    margin-bottom: 0;
}

.mobile-suggestion-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-suggestion-content {
    flex: 1;
    min-width: 0;
}

.mobile-suggestion-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-suggestion-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mobile-search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Show only on mobile */
@media (min-width: 769px) {
    .mobile-search-overlay,
    .mobile-search-popup {
        display: none !important;
    }
}

/* Main Footer */
.main-footer {
    background: var(--bd-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.footer-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-separator {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 4px;
    opacity: 0.5;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.footer-social-link:hover {
    color: var(--accent);
    background: var(--hover);
    border-color: #ffb11a33;
    transform: translateY(-2px);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .main-footer {
        padding: 30px 0;
        margin-top: 40px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-left {
        width: 100%;
    }

    .footer-right {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-social {
        gap: 12px;
    }

    .footer-social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Market Detail Page Responsive */
@media (max-width: 768px) {
    .market-detail-header {
        margin-bottom: 1.5rem;
        padding: 0 16px;
    }

    .market-header-top {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .market-header-left {
        flex: 1;
        min-width: 0;
    }

    .market-profile-img {
        width: 36px;
        height: 36px;
    }

    .market-header-info {
        flex: 1;
        min-width: 0;
    }

    .market-title {
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .market-header-meta {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        font-size: 0.85rem;
    }

    .market-header-actions {
        flex-shrink: 0;
        gap: 6px;
    }

    .market-action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .date-selection-tabs {
        margin-top: 0;
        padding: 0;
        gap: 6px;
    }

    .date-tab {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .date-tab-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .chart-legend {
        padding: 0 16px;
        margin-bottom: 0.75rem;
        gap: 0.75rem;
    }

    .chart-container {
        padding: 0 16px;
        margin-bottom: 1.5rem;
    }

    .outcome-section {
        margin-top: 1rem;
        padding: 0 16px;
    }

    .outcome-section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding: 0 4px;
    }

    .outcome-label,
    .outcome-chance-header {
        font-size: 0.8rem;
    }

    .outcome-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .outcome-row:active {
        transform: scale(0.98);
        background: var(--secondary);
    }

    .outcome-info {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    .outcome-name {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .outcome-volume {
        font-size: 0.8rem;
    }

    /* .outcome-percent-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-right: 0;
    margin-top: 8px;
    margin-bottom: 8px;
    min-width: auto;
    width: 100%;
    justify-content: space-between;
  } */

    .outcome-percent {
        font-size: 1.3rem;
        font-weight: 700;
    }

    .percent-change {
        font-size: 0.7rem;
    }

    .outcome-actions {
        flex-direction: row;
        gap: 8px;
        flex-shrink: 0;
        width: 100%;
    }

    .outcome-actions .btn-yes,
    .outcome-actions .btn-no {
        flex: 1;
        padding: 10px 16px;
        font-size: 0.85rem;
        font-weight: 600;
        white-space: nowrap;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .outcome-actions .btn-yes:active,
    .outcome-actions .btn-no:active {
        transform: scale(0.95);
    }

    .outcome-actions .btn-yes {
        background: #10b981;
        color: #fff;
    }

    .outcome-actions .btn-yes:hover {
        background: #059669;
    }

    .outcome-actions .btn-no {
        background: #ef4444;
        color: #fff;
    }

    .outcome-actions .btn-no:hover {
        background: #dc2626;
    }

    .market-info-section {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
        margin-top: 1.5rem;
    }

    .market-context-section,
    .market-rules-section {
        padding: 16px;
    }

    .main-layout {
        flex-direction: column;
        padding: 0;
    }

    .main-content {
        padding: 1rem 0;
        padding-bottom: 80px;
    }

    /* Ensure header is visible on mobile */
    #header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bd-primary);
    }

    /* Mobile header adjustments */
    header {
        padding: 12px 16px;
    }

    .header-content {
        padding: 0;
    }

    /* Navigation adjustments */
    nav {
        padding: 0 16px;
    }

    .nav-content {
        padding: 12px 0;
    }

    .mobile-panel-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.4s ease;
        backdrop-filter: blur(2px);
    }

    .mobile-panel-overlay.active {
        display: block;
        opacity: 1;
    }

    .trading-panel {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
        position: fixed;
        bottom: -100%;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        z-index: 1000;
        transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        transform: translateZ(0);
        visibility: hidden;
    }

    .trading-panel.active {
        bottom: 0;
        visibility: visible;
    }

    /* Hide tab container on mobile initially or make it more compact */
    .tab-container {
        padding: 0 16px;
        margin-top: 1.5rem;
    }

    .tab-nav {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tab-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-item {
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}

/************************ user dashboard **************************** */

/* Profile Dashboard Styles */
/* Row with gap between cards */
.row.d-flex.justify-content-between {
    gap: 10px;
}

.row.d-flex.justify-content-between > .col-lg-6:first-child .profile-card {
    margin: 0;
}

.row.d-flex.justify-content-between > .col-lg-6:last-child .profit-loss-card {
    margin: 0;
}

/* Desktop/PC Specific Styles */
@media (min-width: 992px) {
    .row.d-flex.justify-content-between {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .row.d-flex.justify-content-between > .col-lg-6 {
        flex: 0 0 50%;
        max-width: calc(50% - 5px);
    }

    .row.d-flex.justify-content-between > .col-lg-6:first-child {
        margin-right: 5px;
    }

    .row.d-flex.justify-content-between > .col-lg-6:last-child {
        margin-left: 5px;
    }

    .container.align-items-center {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .positions-activity-card {
        margin-top: 24px;
        width: 100%;
    }

    .positions-search-filter {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .search-wrapper {
        flex: 1;
        max-width: 300px;
    }

    .filter-dropdown-wrapper {
        flex-shrink: 0;
    }
}

/* Ensure profit-loss card has bottom margin on mobile */
.row.d-flex.justify-content-between > .col-lg-6:last-child {
    margin-bottom: 0;
}

@media (max-width: 991.99px) {
    .row.d-flex.justify-content-between > .col-lg-6:last-child {
        margin-bottom: 16px;
    }
}

.row.align-items-center > .col-lg-6:first-child .profile-card {
    margin: 0;
    margin-right: 10px;
}

.row.align-items-center > .col-lg-6:last-child .profit-loss-card {
    margin: 0;
}

/* Ensure proper gap on desktop */
@media (min-width: 992px) {
    .row.align-items-center {
        display: flex;
        flex-wrap: wrap;
    }

    .row.align-items-center > .col-lg-6:first-child {
        padding-right: 5px;
    }

    .row.align-items-center > .col-lg-6:last-child {
        padding-left: 5px;
    }
}

.profile-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--border);
    margin: 0;
    height: 211px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex: 0 0 auto;
    padding: 24px 24px 0 24px;
}

.profile-avatar-wrapper {
    flex-shrink: 0;
}

.profile-avatar-gradient {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.profile-avatar-gradient img {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--card-bg);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* Responsive Images */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.profile-id-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.profile-id {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: monospace;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-connect-x {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-connect-x:hover {
    background: var(--card-bg);
    border-color: var(--accent);
}

.btn-icon {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--accent);
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.meta-separator {
    color: var(--text-secondary);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 24px 24px 24px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    flex: 0 0 auto;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Profit/Loss Card */
.profit-loss-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--border);
    margin: 0;
    /* height: 211px; */
    width: 100%;
    display: flex;
    flex-direction: column;
}

.profit-loss-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex: 0 0 auto;
    padding: 24px 24px 0 24px;
}

.profit-loss-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profit-icon {
    color: #00c853;
    font-size: 1rem;
}

.time-filters {
    display: flex;
    gap: 8px;
}

.time-filter-btn {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-filter-btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.time-filter-btn.active {
    background: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
}

.profit-loss-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: space-between;
    padding: 0 24px 24px 24px;
}

.profit-loss-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.pl-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.pl-info-icon {
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
}

.profit-loss-timeframe {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 0 0 auto;
}

.profit-loss-chart {
    height: 60px;
    background: var(--secondary);
    border-radius: 8px;
    padding: 8px;
    margin: 8px 0;
    flex: 0 0 auto;
}

.chart-bar {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--accent) 0%,
        rgba(0, 200, 83, 0.3) 100%
    );
    border-radius: 4px;
    width: 20%;
}

.polymarket-logo {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: auto;
    flex: 0 0 auto;
}

/* Positions/Activity Card */
.positions-activity-card {
    width: 100%;
    /* height: 300px; */
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
}

.content-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.content-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 0;
    position: relative;
    transition: color 0.2s ease;
}

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

.content-tab.active {
    color: var(--accent);
}

.content-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.tab-content-wrapper {
    min-height: 400px;
}

.positions-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.positions-subtabs {
    display: flex;
    gap: 8px;
}

.subtab-btn {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subtab-btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.subtab-btn.active {
    background: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
}

.positions-search-filter {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    z-index: 1;
    pointer-events: none;
}

.search-input {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px 8px 36px;
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 200px;
    transition: all 0.2s ease;
    outline: none;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    border-width: 1.5px;
    width: 250px;
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.filter-dropdown-wrapper {
    position: relative;
}

.filter-dropdown-btn {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.filter-dropdown-btn:hover {
    background: var(--card-bg);
    border-color: var(--accent);
}

.filter-dropdown-btn i {
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.filter-dropdown-wrapper.active .filter-dropdown-btn i {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    position: absolute;
    top: 0;
    right: -9px;
    left: -4px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.filter-dropdown-wrapper.active .filter-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-dropdown-item:hover {
    background: var(--secondary);
    color: var(--text-primary);
}

.filter-dropdown-item.active {
    background: var(--secondary);
    color: var(--accent);
    font-weight: 600;
}

.positions-table,
.activity-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.activity-table .table-header {
    grid-template-columns: repeat(3, 1fr);
}

.table-col {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.table-empty p {
    font-size: 1rem;
    margin: 0;
}

.activity-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
    }

    .profile-id-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .profit-loss-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .time-filters {
        width: 100%;
        justify-content: space-between;
    }

    .time-filter-btn {
        flex: 1;
    }

    .positions-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .positions-search-filter {
        flex-direction: column;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .table-header {
        grid-template-columns: repeat(3, 1fr);
        font-size: 0.7rem;
    }

    .table-col:nth-child(4),
    .table-col:nth-child(5) {
        display: none;
    }
}

/* Table Headers for Positions */
.table-headers {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.table-headers .table-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-positions-message {
    margin-top: -40px;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-positions-message p {
    font-size: 0.9375rem;
    margin: 0;
}

/* ============================================
   Mentions Page Styles
   ============================================ */
.mentions-header {
    padding: 2rem 0 1.5rem;
    text-align: center;
}

.mentions-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: center;
}

.mentions-subtitle {
    font-size: 1rem;
    color: var(--text-secondary, #9ca3af);
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.mentions-markets {
    width: 100%;
    max-width: 1168px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.mention-card {
    border: 1px solid var(--border);
    width: 100%;
    max-width: 1063px;
    min-height: 107px;
    height: 107px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 auto;
}

.mention-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mention-date-day {
    font-size: 1.5rem;
    font-weight: 700;
}

.mention-date-month {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.mention-content {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    align-items: flex-start;
    min-width: 0;
}

.mention-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mention-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.mention-details {
    flex: 1;
    min-width: 0;
}

.mention-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    position: relative;
    display: inline-block;
}

/* HOVER LINE ANIMATION */
.mention-question::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* distance under the text */
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.mention-question:hover {
    color: var(--accent);
}

.mention-question:hover::after {
    width: 100%;
}

.mention-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.mention-time,
.mention-volume {
    display: inline-block;
}

.mention-volume {
    font-weight: 600;
    color: var(--accent, #3b82f6);
}

.mention-options {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mention-option-btn {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.mention-option-btn:hover {
    /* background:  var(--bg-hover,); */
    /* border-color: var(--accent,); */
    color: var(--accent);
    transform: translateY(-2px) scale(1.02);
}

.more-options-btn {
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Option Wrapper for Tooltip */
.option-wrapper {
    position: relative;
    display: inline-block;
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    margin-bottom: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    min-width: 320px;
    max-width: 400px;
    width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.option-wrapper:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.tooltip-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--secondary);
    border-radius: 8px 8px 0 0;
}

.tooltip ul {
    list-style: none;
    margin: 0;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.tooltip ul li {
    margin: 0;
    padding: 0;
    display: inline-block;
    flex: 0 0 calc(25% - 0.375rem);
    min-width: calc(25% - 0.375rem);
    max-width: calc(25% - 0.375rem);
}

.tooltip ul li a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    line-height: 1.4;
}

.tooltip ul li a:hover {
    color: var(--accent);
    transform: translateY(-2px) scale(1.02);
}

/* Tooltip Arrow */
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--card-bg);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.mention-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.btn-trade {
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-trade:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ============================================
   Terms of Use Page Styles
   ============================================ */
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.terms-content h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.terms-content h2 {
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.terms-content h3 {
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.terms-content p {
    margin-bottom: 1rem;
    text-align: justify;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 11pt;
    font-weight: 400;
}

.terms-content .last-updated {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.terms-content section {
    margin-bottom: 2rem;
}

.terms-content .notice-box {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bd-primary);
    border-left: 4px solid var(--border);
    border-radius: 4px;
}

.terms-content .notice-box p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.terms-content .notice-box p:last-child {
    margin-bottom: 0;
}

.terms-content .notice-title {
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--danger);
    letter-spacing: 0.5px;
}

.terms-content .font-bold {
    font-weight: 600;
    color: var(--text-primary);
}

.terms-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.terms-content em {
    font-style: italic;
}

.terms-content ul,
.terms-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-primary);
    text-align: justify;
}

.terms-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.terms-content span {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}
.terms-content a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terms-content a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .terms-content {
        padding: 1.5rem 1rem;
    }

    .terms-content h1 {
        font-size: 1.5rem;
    }

    .terms-content h2 {
        font-size: 1.1rem;
    }

    .terms-content .notice-box {
        padding: 0 5px;
    }
}

/* ===== DEPOSIT MODAL ===== */
.deposit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 7000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deposit-modal-overlay.active {
    display: block;
    opacity: 1;
}

.deposit-modal-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 7001;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.deposit-modal-popup.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.deposit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.deposit-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.deposit-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.deposit-modal-close:hover {
    background: var(--hover);
    color: var(--text-primary);
}

.deposit-modal-content {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.deposit-form-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.deposit-balance-info {
    padding: 16px;
    background: var(--secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

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

.balance-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.balance-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
}

.deposit-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deposit-input-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.deposit-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.deposit-currency {
    position: absolute;
    left: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    z-index: 1;
}

.deposit-input {
    width: 100%;
    padding: 14px 16px 14px 36px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.deposit-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 177, 26, 0.1);
}

.deposit-quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.quick-amount-btn {
    padding: 10px 16px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-amount-btn:hover {
    background: var(--hover);
    border-color: var(--accent);
    color: var(--accent);
}

.quick-amount-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark-bg);
}

.deposit-method-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deposit-method-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

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

.deposit-method-btn {
    padding: 12px 20px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.deposit-method-btn i {
    font-size: 20px;
    color: var(--text-secondary);
}

.deposit-method-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark-bg);
}

.deposit-method-btn.active i {
    color: var(--dark-bg);
}

.deposit-method-btn:hover:not(.active) {
    background: var(--hover);
    border-color: var(--accent);
}

.deposit-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: var(--dark-bg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.deposit-submit-btn:hover {
    background: #ffa000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 177, 26, 0.3);
}

.deposit-submit-btn:active {
    transform: translateY(0);
}

.deposit-footer {
    text-align: center;
}

.deposit-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.deposit-note i {
    font-size: 14px;
}

/* Responsive Deposit Modal */
@media (max-width: 768px) {
    .deposit-modal-popup {
        width: 95%;
        max-width: none;
        border-radius: 20px 20px 0 0;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translate(0, 100%);
        max-height: 85vh;
        z-index: 7001;
    }

    .deposit-modal-popup.active {
        transform: translate(0, 0) !important;
    }

    .deposit-modal-header {
        padding: 16px 20px;
    }

    .deposit-modal-content {
        padding: 20px;
    }

    .deposit-quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .deposit-methods {
        grid-template-columns: 1fr;
    }

    .deposit-method-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .deposit-modal-popup {
        width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .deposit-modal-header h3 {
        font-size: 1.1rem;
    }

    .deposit-input,
    .withdrawal-input {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }

    .quick-amount-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ===== AUTH PAGES ===== */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.auth-logo:hover {
    color: var(--accent);
}

.auth-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(255, 177, 26, 0.3);
    transition: all 0.3s ease;
}

.auth-logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 177, 26, 0.4);
}

.auth-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-card .flex {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-card h1,
.auth-card h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Flux Input Override */
.auth-card [data-flux-field] {
    margin-bottom: 0;
}

.auth-card [data-flux-label] {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Flux Input Field Styling */
.auth-card [data-flux-field] input,
.auth-card [data-flux-field] input[type="text"],
.auth-card [data-flux-field] input[type="email"],
.auth-card [data-flux-field] input[type="password"],
.auth-card [data-flux-field] input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px;
    color: #1a1a1a !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-card [data-flux-field] input:focus,
.auth-card [data-flux-field] input[type="text"]:focus,
.auth-card [data-flux-field] input[type="email"]:focus,
.auth-card [data-flux-field] input[type="password"]:focus,
.auth-card [data-flux-field] input[type="tel"]:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(255, 177, 26, 0.1);
}

.auth-card [data-flux-field] input::placeholder,
.auth-card [data-flux-field] input[type="text"]::placeholder,
.auth-card [data-flux-field] input[type="email"]::placeholder,
.auth-card [data-flux-field] input[type="password"]::placeholder,
.auth-card [data-flux-field] input[type="tel"]::placeholder {
    color: #6c757d !important;
    opacity: 0.7;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="tel"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 177, 26, 0.1);
}

.auth-card input[type="text"]::placeholder,
.auth-card input[type="email"]::placeholder,
.auth-card input[type="password"]::placeholder,
.auth-card input[type="tel"]::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Flux Button Override */
.auth-card button[type="submit"],
.auth-card [data-flux-button] {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-card button[type="submit"]:hover,
.auth-card [data-flux-button]:hover {
    background: #ffc233;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 177, 26, 0.3);
}

.auth-card button[type="submit"]:active,
.auth-card [data-flux-button]:active {
    transform: translateY(0);
}

/* Checkbox */
.auth-card [data-flux-checkbox] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-card [data-flux-checkbox] input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Plain HTML Input Fields */
.auth-input {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 177, 26, 0.1);
}

.auth-input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.auth-error-text {
    display: block;
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Password Wrapper */
.auth-password-wrapper {
    position: relative;
}

.auth-password-wrapper .auth-input {
    padding-right: 44px;
}

/* Password Toggle Button */
.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
    z-index: 10;
}

.auth-password-toggle:hover {
    color: #1a1a1a;
}

.auth-password-toggle i {
    font-size: 18px;
}

/* Checkbox */
.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Links */
.auth-card a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-card a:hover {
    color: #ffc233;
    text-decoration: underline;
}

/* Social Login Buttons */
.auth-social-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.auth-social-btn {
    width: 100%;
    padding: 12px 24px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.auth-social-btn:hover {
    background: #353535;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.auth-social-btn i {
    font-size: 1.1rem;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Auth Form Elements */
.auth-title-section {
    text-align: center;
    margin-bottom: 10px;
}

.auth-title-section h1 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-title-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-forgot-link {
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-forgot-link:hover {
    color: #ffc233;
    text-decoration: underline;
}

.auth-submit-btn,
button.auth-submit-btn,
button[type="submit"].auth-submit-btn {
    width: 100% !important;
    padding: 14px 24px !important;
    background: var(--accent) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 8px !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    display: block !important;
    min-width: auto !important;
    min-height: auto !important;
    z-index: 1 !important;
}

.auth-submit-btn:hover,
button.auth-submit-btn:hover,
button[type="submit"].auth-submit-btn:hover {
    background: #ffc233 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 177, 26, 0.3) !important;
}

.auth-submit-btn:active,
button.auth-submit-btn:active,
button[type="submit"].auth-submit-btn:active {
    transform: translateY(0) !important;
}

.auth-footer-link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer-link span {
    margin-right: 5px;
}

.auth-footer-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer-link a:hover {
    color: #ffc233;
    text-decoration: underline;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.auth-alert.alert-success {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: #00c853;
}

.auth-alert.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.auth-alert ul {
    margin: 0;
    padding-left: 20px;
}

.auth-alert li {
    margin: 4px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .auth-card h1,
    .auth-card h2,
    .auth-title-section h1 {
        font-size: 1.5rem;
    }

    .auth-title-section p {
        font-size: 0.85rem;
    }
}
