/* ============================================
   TRADE MODAL - Liquid Glass Design
   Premium Glass Morphism Interface
   ============================================ */

.trade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.trade-modal-window {
    position: fixed;
    width: auto;
    min-width: 520px;
    max-width: 90vw;
    height: 80vh; /* Fixed height for scroll */
    max-height: calc(100vh - 40px);
    background: rgba(30, 32, 36, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4),
                0 4px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: all;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.15s ease;
    opacity: 1;
}

/* Glass border effect */
.trade-modal-window::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0.05) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.trade-modal-window.dragging {
    cursor: grabbing !important;
    opacity: 0.95;
    transition: none;
}

.trade-modal-window.dragging .trade-modal-header {
    cursor: grabbing !important;
}

/* Header */
.trade-modal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    border-radius: 24px 24px 0 0;
    cursor: grab;
}

.trade-modal-header:active {
    cursor: grabbing;
}

.drag-handle {
    flex: 1;
    cursor: grab;
    user-select: none;
    color: var(--text-tertiary);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.25rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
}

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

/* Tabs */
.trade-modal-tabs {
    display: flex;
    gap: 0;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
    background: var(--bg-surface);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    padding: 12px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Content */
.trade-modal-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.tab-content {
    display: none;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Let children handle scroll */
    min-height: 0;
}

.tab-content::-webkit-scrollbar {
    display: none;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Trade Form */
.trade-form-container {
    height: auto;
    display: block;
    padding: 16px;
    overflow: hidden;
}

.trade-form-section {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--bg-elevated);
    padding: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

/* Chart Container */
.chart-full-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-surface);
}

.chart-full-container .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.chart-full-container .chart-container {
    flex: 1;
    min-height: 400px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.chart-full-container .chart-controls {
    margin-top: 12px;
    flex-shrink: 0;
}

.trade-layout {
    display: none;
}

.trade-chart-section {
    display: none;
}

/* Chart Header */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h3 {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-prices {
    display: flex;
    gap: 8px;
}

.chart-price {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
}

.chart-price.yes {
    color: var(--positive);
    border-color: rgba(16, 185, 129, 0.3);
    background: var(--positive-muted);
}

.chart-price.no {
    color: var(--negative);
    border-color: rgba(239, 68, 68, 0.3);
    background: var(--negative-muted);
}

/* Chart Outcome Tabs */
.chart-outcome-tabs {
    display: flex;
    gap: 8px;
}

.chart-outcome-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.15s;
}

.chart-outcome-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-default);
}

.chart-outcome-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}

.outcome-label-small {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.chart-outcome-btn.active .outcome-label-small {
    color: rgba(255, 255, 255, 0.8);
}

.outcome-price-small {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.chart-outcome-btn.active .outcome-price-small {
    color: #FFFFFF;
}

/* Chart Container */
.chart-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.chart-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Chart Controls */
.chart-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.time-buttons {
    display: flex;
    gap: 0;
    background: var(--bg-elevated);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.time-btn {
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    padding: 8px 14px;
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.time-btn:last-child {
    border-right: none;
}

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

.time-btn.active {
    background: var(--accent);
    color: white;
}

/* Outcome Selector */
.outcome-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.outcome-btn {
    background: var(--bg-overlay);
    border: 2px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.outcome-btn:hover {
    border-color: var(--border-default);
    background: var(--bg-hover);
}

.outcome-btn.active.yes-btn {
    background: var(--positive-muted);
    border-color: var(--positive);
}

.outcome-btn.active.no-btn {
    background: var(--negative-muted);
    border-color: var(--negative);
}

.outcome-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

.outcome-btn.active.yes-btn .outcome-label {
    color: var(--positive);
}

.outcome-btn.active.no-btn .outcome-label {
    color: var(--negative);
}

.outcome-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

/* Trade Type & Order Type Tabs */
.trade-type-tabs,
.order-type-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-overlay);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.trade-type-btn,
.order-type-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    padding: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.trade-type-btn:last-child,
.order-type-btn:last-child {
    border-right: none;
}

.trade-type-btn:hover,
.order-type-btn:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.trade-type-btn.active,
.order-type-btn.active {
    background: var(--accent);
    color: white;
}

/* Price Input Group */
.price-input-group,
.amount-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-input-group label,
.amount-input-group label {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-input {
    display: flex;
    align-items: center;
    background: var(--bg-overlay);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}

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

.price-btn {
    background: var(--bg-elevated);
    border: none;
    color: var(--text-tertiary);
    padding: 12px 14px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s;
    border-right: 1px solid var(--border-subtle);
}

.price-btn:last-of-type {
    border-right: none;
    border-left: 1px solid var(--border-subtle);
}

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

.price-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    padding: 12px 8px;
}

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

.price-unit {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 500;
    padding-right: 14px;
}

/* Amount Input */
.amount-input {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input input {
    width: 100%;
    background: var(--bg-overlay);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 12px 70px 12px 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    transition: border-color 0.15s;
}

.amount-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.amount-unit {
    position: absolute;
    right: 14px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
}

/* Amount Buttons */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.amount-btn {
    background: var(--bg-overlay);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-tertiary);
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.amount-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-default);
    color: var(--text-secondary);
}

.amount-btn.max {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.amount-btn.max:hover {
    background: var(--accent-hover);
}

/* Trade Info */
.trade-info {
    background: var(--bg-overlay);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trade-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.trade-info-row span:first-child {
    color: var(--text-tertiary);
}

.trade-info-row .value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.trade-info-row.small {
    font-size: 0.6875rem;
    color: var(--text-disabled);
}

.trade-info-row.highlight {
    background: var(--accent-subtle);
    padding: 8px;
    border-radius: 6px;
    margin: 4px 0;
}

.trade-info-row.highlight .value {
    color: var(--accent);
    font-weight: 700;
}

/* Submit Button */
.trade-submit-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.trade-submit-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.trade-submit-btn:disabled {
    background: var(--bg-overlay);
    color: var(--text-disabled);
    cursor: not-allowed;
    transform: none;
}

.trade-submit-btn.processing {
    position: relative;
}

.trade-submit-btn.processing::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Footer Stats */
.market-stats-footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    padding: 12px 16px;
    display: flex;
    gap: 24px;
    flex-shrink: 0;
    border-radius: 0 0 12px 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.5625rem;
    color: var(--text-disabled);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.stat-value.yes {
    color: var(--positive);
}

.stat-value.no {
    color: var(--negative);
}

/* Holders Container */
.holders-container {
    padding: 16px;
    height: 100%;
    overflow-y: auto;
}

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

.holders-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.outcome-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-elevated);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.outcome-tab {
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.outcome-tab:last-child {
    border-right: none;
}

.outcome-tab:hover {
    background: var(--bg-hover);
}

.outcome-tab.active {
    background: var(--accent);
    color: white;
}

/* Holders Table */
.holders-table {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
}

.holders-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 12px 14px;
    background: var(--bg-overlay);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-disabled);
    letter-spacing: 0.05em;
}

.holder-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.15s;
    align-items: center;
    font-size: 0.8125rem;
}

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

.holder-row:hover {
    background: var(--bg-hover);
}

.holder-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.holder-rank {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    min-width: 24px;
}

.holder-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.holder-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
}

.holder-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.holder-shares,
.holder-value,
.holder-percentage {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

/* Loading States */
.holders-loading,
.trade-loading,
.rules-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    gap: 12px;
    color: var(--text-tertiary);
}

.holders-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-tertiary);
}

/* Rules Container */
.rules-container {
    padding: 20px;
    max-width: 700px;
    height: 100%;
    overflow-y: auto;
}

.rules-container h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.rules-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.rules-content p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.rules-content p:last-child {
    margin-bottom: 0;
}

.rules-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.rules-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.back-to-trading-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.15s;
}

.back-to-trading-btn:hover {
    background: var(--accent-hover);
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--negative);
    font-size: 0.875rem;
}

/* Scrollbars */
.trade-form-section::-webkit-scrollbar,
.holders-container::-webkit-scrollbar,
.rules-container::-webkit-scrollbar {
    width: 5px;
}

.trade-form-section::-webkit-scrollbar-track,
.holders-container::-webkit-scrollbar-track,
.rules-container::-webkit-scrollbar-track {
    background: transparent;
}

.trade-form-section::-webkit-scrollbar-thumb,
.holders-container::-webkit-scrollbar-thumb,
.rules-container::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.trade-form-section::-webkit-scrollbar-thumb:hover,
.holders-container::-webkit-scrollbar-thumb:hover,
.rules-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-disabled);
}

/* Success/Error States */
.trade-success,
.trade-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    text-align: center;
    min-height: 400px;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    font-weight: bold;
}

.success-icon {
    background: var(--positive-muted);
    color: var(--positive);
    border: 2px solid var(--positive);
}

.error-icon {
    background: var(--negative-muted);
    color: var(--negative);
    border: 2px solid var(--negative);
}

.trade-success h3,
.trade-error h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.trade-success p,
.trade-error p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0 0 32px 0;
    max-width: 400px;
}

.success-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

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

/* Wallet Prompt */
.wallet-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    text-align: center;
    min-height: 400px;
}

.wallet-prompt-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    border: 1px solid var(--border-subtle);
}

.wallet-prompt h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.wallet-prompt p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0 0 32px 0;
    max-width: 400px;
}

/* Loading Overlay */
.trade-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 9, 12, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 12px;
}

.trade-loading-overlay .spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-default);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.trade-loading-overlay p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

/* Responsive */
@media (max-width: 560px) {
    .trade-modal-window {
        min-width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .trade-modal-header {
        border-radius: 0;
    }
    
    .market-stats-footer {
        border-radius: 0;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .holders-table-header,
    .holder-row {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .holder-percentage {
        display: none;
    }
}

/* ============================================
   NEWS TAB - Twitter Feed Styles
   ============================================ */

.news-container {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

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

.news-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin: 0;
}

.news-type-toggle {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 3px;
}

.news-type-btn {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}

.news-type-btn:hover {
    color: var(--text-secondary);
}

.news-type-btn.active {
    background: var(--accent);
    color: white;
}

.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    gap: 12px;
    color: var(--text-tertiary);
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 4px;
    min-height: 0;
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.news-feed::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Tweet Card - Clean Design */
.tweet-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.tweet-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tweet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}

.tweet-author {
    flex: 1;
    min-width: 0;
}

.tweet-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verified-badge {
    flex-shrink: 0;
}

.tweet-handle {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.tweet-time {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.tweet-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tweet-link {
    color: var(--accent);
    word-break: break-all;
}

.tweet-hashtag {
    color: var(--accent);
}

.tweet-mention {
    color: var(--accent);
}

.tweet-stats {
    display: flex;
    gap: 16px;
    padding-top: 8px;
}

.tweet-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    transition: color 0.15s;
}

.tweet-stat svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.tweet-card:hover .tweet-stat:nth-child(1) { color: #1DA1F2; }
.tweet-card:hover .tweet-stat:nth-child(2) { color: #17BF63; }
.tweet-card:hover .tweet-stat:nth-child(3) { color: #E0245E; }
.tweet-card:hover .tweet-stat:nth-child(4) { color: #794BC4; }
.tweet-card:hover .tweet-stat svg { opacity: 1; }

/* Empty State */
.news-empty,
.news-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: var(--text-tertiary);
    gap: 10px;
}

.news-empty svg,
.news-error svg {
    opacity: 0.4;
    width: 40px;
    height: 40px;
}

.news-empty p,
.news-error p {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.news-empty span {
    font-size: 0.75rem;
}

.retry-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 4px;
}

.retry-btn:hover {
    background: var(--accent-hover);
}
