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

:root {
    --primary-gold: #FFC700;
    --primary-gold-dark: #FFB800;
    --primary-gold-light: #FFD700;
    --bg-dark: #0D0D0E;
    --bg-darker: #1D1D1F;
    --bg-panel: #252528;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --text-muted: #6B6B6B;
    --border-color: #2D2D30;
    --success: #31D0AA;
    --danger: #ED4B9E;
    --warning: #FFC700;
    --turquoise: #00eaff;
    --turquoise-dark: #0099cc;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-content {
    max-width: 87.5rem; /* 1400px */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    min-width: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-panel);
}

.nav-link.active {
    color: var(--primary-gold);
    background: var(--bg-panel);
}

.nav-more {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-more:hover {
    background: var(--bg-panel);
    color: var(--text-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-info .label {
    color: var(--text-secondary);
    font-size: 14px;
}

.price-info .value {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 16px;
}

.demo-mode-btn {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    margin-right: 8px;
}

.demo-mode-btn:hover {
    background: #357ABD;
}

.connect-btn {
    background: var(--primary-gold);
    color: var(--bg-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.connect-btn:hover {
    background: var(--primary-gold-dark);
}

.connect-btn:disabled {
    background: var(--bg-panel);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.disconnect-btn {
    background: var(--bg-panel);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.disconnect-btn:hover {
    background: var(--bg-darker);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.set-price-btn {
    background: var(--bg-panel);
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.set-price-btn:hover {
    background: rgba(255, 199, 0, 0.1);
}

.network-select {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    margin-right: 8px;
}

.network-select:hover {
    border-color: var(--primary-gold);
}

.network-select:focus {
    border-color: var(--primary-gold);
    background: var(--bg-darker);
}

.network-select option {
    background: var(--bg-darker);
    color: var(--text-primary);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    padding: 8px 12px;
    background: var(--bg-panel);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    background: var(--bg-darker);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.dark-mode-toggle .toggle-icon {
    font-size: 16px;
    transition: transform 0.3s;
}

.dark-mode-toggle .toggle-text {
    font-size: 13px;
}

/* Main Container */
.main-container {
    max-width: 87.5rem; /* 1400px */
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 25rem; /* 400px */
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Left Panel */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chart-container {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 37.5rem; /* 600px */
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.chart-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
    overflow: visible;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tradingview-widget-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 31.25rem; /* 500px */
    width: 100%;
}

.tradingview-chart {
    flex: 1;
    width: 100%;
    min-height: 31.25rem; /* 500px */
    max-width: 100%;
}

.tradingview-widget-copyright {
    padding: 8px;
    text-align: center;
    font-size: 11px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.tradingview-widget-copyright a {
    color: var(--text-muted);
    text-decoration: none;
}

.tradingview-widget-copyright .blue-text {
    color: var(--primary-gold);
}

.pair-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1000;
    overflow: visible !important;
}

.pair-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pair-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.oi-display {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

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

.oi-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-darker);
}

.timeframe-selector {
    display: flex;
    gap: 4px;
}

.timeframe-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.timeframe-btn.active {
    background: var(--primary-gold);
    color: var(--bg-dark);
    border-color: var(--primary-gold);
}

.chart-type-controls {
    display: flex;
    gap: 4px;
}

.chart-type-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.chart-type-btn.active {
    background: var(--primary-gold);
    color: var(--bg-dark);
    border-color: var(--primary-gold);
}

.chart-footer {
    padding: 8px 20px;
    text-align: right;
    border-top: 1px solid var(--border-color);
    background: var(--bg-darker);
}

.pyth-badge {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.symbol-select {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 200px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    z-index: 10000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    clip: unset !important;
    clip-path: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFC700' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.symbol-select::-ms-expand {
    display: none;
}

.symbol-select:hover {
    border-color: var(--primary-gold);
}

.symbol-select:focus {
    border-color: var(--primary-gold);
    background: var(--bg-darker);
}

.symbol-select option {
    background: var(--bg-darker) !important;
    color: var(--text-primary) !important;
    padding: 8px !important;
}

.symbol-select optgroup {
    background: var(--bg-darker) !important;
    color: var(--primary-gold) !important;
    font-weight: 700 !important;
    padding: 8px !important;
}

.symbol-select optgroup option {
    background: var(--bg-panel) !important;
    color: var(--text-primary) !important;
    padding: 8px 16px !important;
}

.pair {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.price-change.positive {
    background: rgba(49, 208, 170, 0.2);
    color: var(--success);
}

.chart-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-gold);
}

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

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

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.market-stats-panel {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--bg-panel);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

.positions-panel {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-panel);
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.positions-list {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.recent-trades-panel {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.trades-list {
    padding: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: var(--bg-panel);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 13px;
}

.trade-item.long {
    border-left: 3px solid var(--success);
}

.trade-item.short {
    border-left: 3px solid var(--danger);
}

.trade-price {
    font-weight: 600;
}

.trade-size {
    color: var(--text-secondary);
}

.trade-time {
    color: var(--text-muted);
    font-size: 11px;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 14px;
}

/* Right Panel */
.right-panel {
    display: flex;
    flex-direction: column;
}

.trading-panel {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

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

.tab.active {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

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

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

/* Responsive adjustments for tab-content */
@media (max-width: 768px) {
    .tab-content {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .tab-content {
        padding: 8px;
    }
}

.direction-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.direction-btn {
    padding: 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-panel);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.direction-btn span:first-child {
    font-weight: 700;
    font-size: 16px;
}

.direction-btn.long.active {
    border-color: var(--success);
    background: rgba(49, 208, 170, 0.1);
    color: var(--success);
}

.direction-btn.short.active {
    border-color: var(--danger);
    background: rgba(237, 75, 158, 0.1);
    color: var(--danger);
}

.order-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.order-type-btn {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-panel);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: var(--text-secondary);
}

.order-type-btn.active {
    border-color: var(--primary-gold);
    background: rgba(255, 199, 0, 0.1);
    color: var(--primary-gold);
}

.order-type-btn:hover {
    border-color: var(--primary-gold);
}

.direction-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.leverage-selector {
    margin-bottom: 20px;
}

.leverage-selector label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.leverage-buttons {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.leverage-btn {
    padding: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.leverage-btn.active {
    background: var(--primary-gold);
    color: var(--bg-dark);
    border-color: var(--primary-gold);
}

.leverage-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
}

.leverage-arrow {
    background: transparent;
    border: none;
    color: var(--primary-gold);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
    border-radius: 4px;
}

.leverage-arrow:hover {
    background: rgba(255, 199, 0, 0.1);
}

.leverage-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 8px;
}

.leverage-input-wrapper input:focus {
    outline: none;
}

.leverage-x {
    color: var(--text-secondary);
    font-weight: 600;
    padding-right: 8px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.balance-text {
    color: var(--primary-gold);
    font-size: 12px;
    font-weight: 600;
}

/* Mark Price Box */
.mark-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.mark-price-box span:first-child {
    color: var(--text-secondary);
}

.mark-price-box span:last-child {
    color: var(--primary-gold);
    font-size: 16px;
    font-weight: 700;
}

.futures-type-selector {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.futures-type-selector label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.futures-type-select,
.collateral-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFD700' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

.futures-type-select:hover,
.collateral-select:hover {
    border-color: var(--primary-gold);
}

.futures-type-select:focus,
.collateral-select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.input-wrapper {
    display: flex;
    gap: 8px;
}

.input-wrapper input {
    flex: 1;
    padding: 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.input-wrapper input[readonly] {
    background: var(--bg-dark);
    color: var(--text-muted);
}

.max-btn {
    padding: 12px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-gold);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.max-btn:hover {
    background: var(--bg-darker);
}

.trade-info {
    background: var(--bg-panel);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.info-value.warning {
    color: var(--danger);
}

.trade-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.long-btn {
    background: var(--success);
    color: white;
}

.long-btn:hover {
    background: #28b896;
}

.short-btn {
    background: var(--danger);
    color: white;
}

.short-btn:hover {
    background: #d43d8a;
}

.trade-btn:disabled {
    background: var(--bg-panel);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Positions Section in Main Page (Below Chart) */
.positions-section-main {
    margin-top: 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.positions-section-main .positions-table-container {
    margin: 0;
}

.position-symbol {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Positions Table (PancakeSwap Style) */
.positions-table-container {
    background: var(--bg-panel);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.positions-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.positions-table-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.positions-count {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.positions-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.positions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.positions-table thead {
    background: var(--bg-darker);
}

.positions-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.positions-table th:first-child {
    border-top-left-radius: 8px;
}

.positions-table th:last-child {
    border-top-right-radius: 8px;
}

.positions-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.positions-table tbody tr:hover {
    background: var(--bg-darker);
}

.positions-table tbody tr:last-child {
    border-bottom: none;
}

.positions-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: middle;
}

.positions-table td.empty-positions {
    text-align: center;
    padding: 40px 20px;
}

.position-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-type-badge.long {
    background: rgba(49, 208, 170, 0.15);
    color: var(--success);
}

.position-type-badge.short {
    background: rgba(237, 75, 158, 0.15);
    color: var(--danger);
}

.position-size {
    font-weight: 600;
    color: var(--text-primary);
}

.position-price {
    font-weight: 500;
    color: var(--text-primary);
}

.position-pnl {
    font-weight: 600;
    font-size: 14px;
}

.position-pnl.positive {
    color: var(--success);
}

.position-pnl.negative {
    color: var(--danger);
}

.position-roe {
    font-weight: 600;
    font-size: 14px;
}

.position-roe.positive {
    color: var(--success);
}

.position-roe.negative {
    color: var(--danger);
}

.position-liq {
    font-weight: 500;
    color: var(--warning);
    font-size: 13px;
}

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

.position-close-btn {
    padding: 6px 14px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.position-close-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

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

.position-close-btn:disabled {
    background: var(--bg-darker);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Editable Price Cells */
.editable-price-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-edit-input {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--text-primary);
    font-size: 13px;
    width: 90px;
    transition: all 0.2s;
}

.price-edit-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--bg-panel);
}

.price-edit-input:hover {
    border-color: var(--text-secondary);
}

.edit-price-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    line-height: 1;
}

.edit-price-btn:hover {
    background: var(--bg-darker);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.edit-price-btn:active {
    transform: scale(0.95);
}

/* Edit Targets Section in Trade Panel */
.edit-targets-section {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.section-header {
    margin-bottom: 16px;
}

.section-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.section-header small {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.targets-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.targets-edit-grid .input-group {
    margin-bottom: 0;
}

.targets-edit-grid .input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.targets-edit-grid .input-wrapper input {
    flex: 1;
}

.update-target-btn {
    padding: 8px 16px;
    background: var(--primary-gold);
    color: var(--bg-dark);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.update-target-btn:hover {
    background: var(--primary-gold-dark);
    transform: translateY(-1px);
}

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

.current-targets-display {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

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

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

.target-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.target-value.positive {
    color: var(--success);
}

.target-value.warning {
    color: var(--warning);
}

/* Responsive adjustments for edit targets section */
@media (max-width: 768px) {
    .targets-edit-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .current-targets-display {
        flex-direction: column;
        gap: 12px;
    }
    
    .edit-targets-section {
        padding: 12px;
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .right-panel {
        order: -1; /* Trade Panel اول نمایش داده شود */
    }
    
    .positions-table {
        min-width: 700px;
    }
    
    .positions-table th,
    .positions-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .chart-container {
        min-height: 500px;
    }
    
    .tradingview-chart {
        min-height: 400px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .right-panel {
        order: -1; /* Trade Panel اول نمایش داده شود */
    }
    
    .left-panel {
        gap: 12px;
    }
    
    /* Header */
    .header {
        padding: 8px 12px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-left {
        gap: 16px;
    }
    
    .header-nav {
        display: none; /* مخفی کردن nav در موبایل */
    }
    
    /* Chart */
    .chart-container {
        min-height: 400px;
    }
    
    .chart-header {
        padding: 12px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .pair-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .oi-display {
        gap: 16px;
    }
    
    .chart-toolbar {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tradingview-chart {
        min-height: 300px;
    }
    
    /* Market Stats */
    .market-stats-panel {
        padding: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Trade Panel */
    .trading-panel {
        padding: 12px;
    }
    
    .tabs {
        gap: 4px;
        padding: 4px;
    }
    
    .tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Mark Price Box */
    .mark-price-box {
        padding: 10px 12px;
        margin-bottom: 12px;
        font-size: 13px;
    }
    
    .mark-price-box span:last-child {
        font-size: 14px;
    }
    
    /* Direction Selector */
    .direction-selector {
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .direction-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    /* Leverage */
    .leverage-selector {
        margin-bottom: 16px;
    }
    
    .leverage-input-group {
        gap: 8px;
    }
    
    /* Collateral Input */
    .collateral-input-group {
        margin-bottom: 16px;
    }
    
    /* Trade Info */
    .trade-info {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .info-row {
        font-size: 13px;
    }
    
    /* Trade Button */
    .trade-btn {
        padding: 14px;
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    /* Positions Table */
    .positions-table-container {
        padding: 12px;
    }
    
    .positions-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 8px;
    }
    
    .positions-table-header h3 {
        font-size: 16px;
    }
    
    .positions-table {
        min-width: 600px;
        font-size: 12px;
    }
    
    .positions-table th {
        padding: 8px 6px;
        font-size: 10px;
    }
    
    .positions-table td {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .position-type-badge {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .position-close-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    /* Positions Panel (Left) */
    .positions-panel {
        padding: 12px;
    }
    
    .panel-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .panel-tabs {
        gap: 4px;
    }
    
    .panel-tab {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .panel-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Recent Trades */
    .recent-trades-panel {
        padding: 12px;
    }
    
    .trades-list {
        font-size: 12px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .main-container {
        padding: 8px;
        gap: 8px;
    }
    
    .header {
        padding: 8px;
    }
    
    .logo span {
        font-size: 14px;
    }
    
    /* Chart */
    .chart-container {
        min-height: 350px;
    }
    
    .chart-header {
        padding: 8px;
    }
    
    .pair-price {
        font-size: 16px;
    }
    
    .tradingview-chart {
        min-height: 250px;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Trade Panel */
    .trading-panel {
        padding: 8px;
    }
    
    .tab {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* Mark Price Box */
    .mark-price-box {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    /* Direction Buttons */
    .direction-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    /* Positions Table */
    .positions-table {
        min-width: 500px;
    }
    
    .positions-table th {
        padding: 6px 4px;
        font-size: 9px;
    }
    
    .positions-table td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .position-type-badge {
        padding: 2px 6px;
        font-size: 10px;
    }
    
    .position-close-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* Position Card (Keep for backward compatibility) */
.position-card {
    background: var(--bg-panel);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

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

.long-badge {
    background: rgba(49, 208, 170, 0.2);
    color: var(--success);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.short-badge {
    background: rgba(237, 75, 158, 0.2);
    color: var(--danger);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.close-position-btn {
    padding: 6px 12px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.position-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.position-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.action-btn.add-btn {
    background: var(--success);
    color: white;
}

.action-btn.add-btn:hover {
    background: rgba(49, 208, 170, 0.8);
}

.action-btn.close-btn {
    background: var(--warning);
    color: white;
}

.action-btn.close-btn:hover {
    background: rgba(255, 199, 0, 0.8);
}

.full-close-btn {
    background: var(--danger);
    color: white;
}

.full-close-btn:hover {
    background: rgba(237, 75, 158, 0.8);
}

.warning {
    color: var(--warning);
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.detail-row span:first-child {
    color: var(--text-secondary);
}

.detail-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.pnl.positive {
    color: var(--success);
}

.pnl.negative {
    color: var(--danger);
}

.roe.positive {
    color: var(--success);
}

.roe.negative {
    color: var(--danger);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.modal-content input {
    width: 100%;
    padding: 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: var(--primary-gold);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}

/* Responsive - Large Tablet */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr 350px;
        gap: 20px;
        padding: 20px;
    }
    
    .right-panel {
        width: 100%;
    }
    
    .chart-container {
        min-height: 550px;
    }
    
    .tradingview-chart {
        min-height: 450px;
    }
}

/* Order History Styles */
.order-history {
    padding: 16px;
}

.history-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item.long {
    border-left: 3px solid var(--success);
}

.history-item.short {
    border-left: 3px solid var(--danger);
}

.history-item.closed {
    opacity: 0.6;
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-type {
    font-weight: 700;
    font-size: 14px;
}

.history-type.long {
    color: var(--success);
}

.history-type.short {
    color: var(--danger);
}

.history-details {
    font-size: 12px;
    color: var(--text-secondary);
}

.history-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.history-status.open {
    background: var(--success);
    color: var(--bg-dark);
}

.history-status.closed {
    background: var(--text-muted);
    color: var(--text-primary);
}

/* Calculator */
.calc-open-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1500;
    background: var(--primary-gold);
    color: var(--bg-dark);
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1600;
}

.modal-content.calc-modal {
    width: 720px;
    max-width: 95vw;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.close-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
}

.calc-inputs .direction-toggle {
    display: flex;
    gap: 8px;
}

.calc-results {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
}

.calc-results .result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.calc-results .result-row:last-child {
    border-bottom: none;
}

.calc-inline-btn {
    margin-top: 8px;
    width: 100%;
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-inline-btn:hover {
    background: rgba(255, 215, 0, 0.08);
}

/* Percentage Buttons */
.percentage-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.percent-btn {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.percent-btn:hover {
    background: var(--bg-darker);
    color: var(--text-primary);
    border-color: var(--primary-gold);
}

.percent-btn:active {
    background: var(--primary-gold);
    color: var(--bg-dark);
    border-color: var(--primary-gold);
}

/* Duration Selector */
.duration-selector {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.duration-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.duration-btn.active {
    background: var(--primary-gold);
    color: var(--bg-dark);
    border-color: var(--primary-gold);
}

/* Input USD Display */
.input-usd {
    color: var(--text-secondary);
    font-size: 12px;
    padding: 0 8px;
}

/* Panel Tabs */
.panel-tabs {
    display: flex;
    gap: 4px;
}

.panel-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.panel-tab.active {
    color: var(--primary-gold);
    background: var(--bg-panel);
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-all-btn {
    background: var(--danger);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.close-all-btn:hover {
    background: rgba(237, 75, 158, 0.8);
}

.expiry-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-panel);
    border-radius: 6px;
    padding: 2px;
}

.expiry-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.expiry-btn.active {
    background: var(--bg-darker);
    color: var(--primary-gold);
}

/* Liquidation Warning Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Liquidation Price Warning Styles */
#positionLiq.warning-danger {
    color: var(--danger) !important;
    font-weight: bold !important;
    animation: pulse 1s infinite;
}

#positionLiq.warning-close {
    color: var(--warning) !important;
    font-weight: bold !important;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 450px;
    padding: 16px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--text-secondary);
}

.toast.success::before {
    background: var(--success);
}

.toast.error::before {
    background: var(--danger);
}

.toast.warning::before {
    background: var(--warning);
}

.toast.info::before {
    background: var(--primary-gold);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

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

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

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

.toast.info .toast-icon {
    color: var(--primary-gold);
}

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

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
    border-radius: 4px;
}

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

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

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

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Home Page Button - Turquoise & Gold */
.home-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-dark) 50%, var(--primary-gold) 100%);
    background-size: 200% 200%;
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--bg-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 234, 255, 0.3), 0 2px 8px rgba(255, 199, 0, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: gradientShift 3s ease infinite;
}

.home-page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.home-page-btn:hover::before {
    left: 100%;
}

.home-page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 234, 255, 0.5), 0 4px 12px rgba(255, 199, 0, 0.3);
    background-position: 100% 0;
}

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

.home-page-btn .btn-icon {
    font-size: 16px;
    line-height: 1;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (max-width: 768px) {
    .home-page-btn {
        padding: 8px 16px;
        font-size: 13px;
        gap: 6px;
    }
    
    .home-page-btn .btn-icon {
        font-size: 14px;
    }
}


