/* Responsive Styles - Works with existing styles */
/* Modern Polymarket-inspired design */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #141414;
    --bg-hover: #1f1f1f;
    --border-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #6b6b6b;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

/* Base responsive settings */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary, #0a0a0a);
    color: var(--text-primary, #ffffff);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Content Container */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

@media (max-width: 767px) {
    .main-content {
        padding: 20px 15px;
    }
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Tables - horizontal scroll on mobile */
table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

@media (min-width: 768px) {
    table {
        display: table;
        white-space: normal;
    }
}

/* Navigation - stack on mobile */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Modern User Header Design */
.user-header {
    background-color: var(--bg-secondary, #111111);
    border-bottom: 1px solid var(--border-color, #2a2a2a);
    position: sticky;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: var(--text-primary, #ffffff);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
}

.country-flag {
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.logo-link:hover .country-flag {
    transform: scale(1.1);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 10000;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.username {
    color: var(--text-secondary, #a0a0a0);
    font-size: 14px;
    font-weight: 500;
}

/* Navigation Styling */
.user-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background-color: var(--bg-hover, #1f1f1f);
    color: var(--accent-blue, #3b82f6);
}

.nav-link.logout-link {
    color: var(--danger, #ef4444);
}

.nav-link.logout-link:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger, #ef4444);
}

.badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* Dropdown Styles */
.dropdown-container {
    position: relative;
    display: inline-block;
    z-index: 10000;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card, #141414) !important;
    border: 1px solid var(--border-color, #2a2a2a) !important;
    border-radius: 8px;
    color: var(--text-primary, #ffffff) !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    outline: none;
    position: relative;
    z-index: 10001;
}

.dropdown-toggle:hover {
    background: var(--bg-tertiary, #1a1a1a);
    border-color: var(--accent-blue, #3b82f6);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.dropdown-toggle.active {
    background: var(--bg-tertiary, #1a1a1a);
    border-color: var(--accent-blue, #3b82f6);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.dropdown-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    filter: brightness(1.1);
}

.dropdown-text {
    font-size: 14px;
    color: var(--text-primary, #ffffff);
    font-weight: 500;
}


.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card, #141414);
    border: 1px solid var(--border-color, #2a2a2a);
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 10000;
    overflow: hidden;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.dropdown-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 10000;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color, #2a2a2a);
    background: transparent;
    position: relative;
    z-index: 10001;
    cursor: pointer;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--bg-hover, #1f1f1f);
    color: var(--accent-blue, #3b82f6);
    padding-left: 20px;
}

.dropdown-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue, #3b82f6);
    font-weight: 600;
    cursor: default;
    border-left: 3px solid var(--accent-blue, #3b82f6);
}

.dropdown-item.active:hover {
    background: rgba(59, 130, 246, 0.2);
    padding-left: 20px;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary, #ffffff);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive Design */
@media (max-width: 767px) {
    .header-container {
        padding: 0 15px;
        height: 56px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .country-flag {
        font-size: 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .user-nav {
        position: fixed;
        top: calc(56px + 32px + 50px); /* Header + Ticker + Balance Section */
        left: 0;
        right: 0;
        background-color: var(--bg-secondary, #111111);
        border-bottom: 1px solid var(--border-color, #2a2a2a);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 999; /* Below ticker and balance section */
    }
    
    .user-nav.active {
        max-height: 500px;
        padding: 10px 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color, #2a2a2a);
        justify-content: space-between;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover {
        background-color: var(--bg-hover, #1f1f1f);
    }
    
    .user-info {
        display: none;
    }
    
    .username {
        display: none;
    }
    
    .dropdown-container {
        position: relative;
    }
    
    .dropdown-toggle {
        padding: 8px 12px;
        font-size: 13px;
        background: var(--bg-card, #141414);
        border: 1px solid var(--border-color, #2a2a2a);
    }
    
    .dropdown-toggle:hover {
        background: var(--bg-tertiary, #1a1a1a);
    }
    
    .dropdown-text {
        display: none;
    }
    
    .dropdown-menu {
        right: 0;
        min-width: 140px;
        background: var(--bg-card, #141414);
        border: 1px solid var(--border-color, #2a2a2a);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    }
    
    .dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
        color: var(--text-primary, #ffffff);
        background: transparent;
    }
    
    .dropdown-item:hover {
        background: var(--bg-hover, #1f1f1f);
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .country-flag {
        font-size: 18px;
    }
}

/* Dashboard Design */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0;
}

.balance-card {
    background: linear-gradient(135deg, var(--bg-card, #141414) 0%, var(--bg-tertiary, #1a1a1a) 100%);
    border: 1px solid var(--border-color, #2a2a2a);
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.balance-label {
    font-size: 14px;
    color: var(--text-secondary, #a0a0a0);
    font-weight: 500;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-green, #10b981);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.action-btn {
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
}

.action-btn span {
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-purple {
    background: linear-gradient(135deg, #6f42c1 0%, #8b5cf6 100%);
}

.btn-purple:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6f42c1 100%);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
}

/* Stats Card */
.stats-card {
    background: var(--bg-card, #141414);
    border: 1px solid var(--border-color, #2a2a2a);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.stats-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0;
}

.stats-card .profit-info {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
}

.stats-card .profit-info span {
    white-space: nowrap;
}

.stats-card .profit-info strong {
    font-weight: 600;
}

.stats-card .profit-30-days {
    color: #3fb950;
}

.stats-card .profit-all-time {
    color: #a855f7;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary, #ffffff);
    font-weight: 600;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

p {
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
}

/* Cards */
.card {
    background: var(--bg-card, #141414);
    border: 1px solid var(--border-color, #2a2a2a);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--accent-blue, #3b82f6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Mobile Responsive for Dashboard */
@media (max-width: 767px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .balance-card {
        width: 100%;
        min-width: auto;
        padding: 15px 20px;
    }
    
    .balance-amount {
        font-size: 22px;
    }
    
    .action-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    .action-btn {
        width: calc(50% - 6px) !important;
        justify-content: center;
    }
    
    .stats-card {
        padding: 20px;
    }
    
    .stats-card .profit-info {
        font-size: 12px;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .chart-container {
        min-height: 300px;
    }
}

/* Forms - full width on mobile */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
    }
    
    form {
        width: 100%;
    }
    
    .form-group {
        width: 100%;
    }
}

/* Containers - adjust padding on mobile */
@media (max-width: 767px) {
    body {
        padding: 10px;
        margin: 0;
    }
    
    .container,
    div[style*="max-width"] {
        padding: 10px;
        margin: 10px 0;
    }
}

/* Buttons - full width on mobile */
@media (max-width: 767px) {
    button,
    input[type="submit"],
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons a {
        width: 100%;
    }
    
    /* Exception for dashboard action buttons - 2 per row */
    .main-content .action-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    .main-content .action-buttons .action-btn {
        width: calc(50% - 6px) !important;
    }
}

/* Chat interface - stack on mobile */
@media (max-width: 767px) {
    .chat-container {
        flex-direction: column;
        height: auto;
    }
    
    .conversations-sidebar {
        width: 100%;
        max-height: 300px;
    }
    
    .chat-area {
        width: 100%;
        min-height: 500px;
    }
}

/* Side-by-side layouts - stack on mobile */
@media (max-width: 767px) {
    div[style*="display: flex"] {
        flex-direction: column !important;
    }
    
    div[style*="float: left"],
    div[style*="float: right"] {
        float: none !important;
        width: 100% !important;
    }
}

/* Text - readable on mobile */
@media (max-width: 767px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }

}

/* Quick bet widget - adjust on mobile */
@media (max-width: 767px) {
    .quick-bet-widget {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 50vh;
        z-index: 1000;
    }
}

/* Notification badge - adjust on mobile */
@media (max-width: 767px) {
    .notification-badge-container,
    .notification-dropdown {
        right: 10px;
    }
    
    .notification-dropdown {
        width: calc(100vw - 20px);
        max-width: 350px;
    }
}

/* Filters - stack on mobile */
@media (max-width: 767px) {
    .filters form {
        flex-direction: column;
    }
    
    .filters .form-group {
        width: 100%;
    }
}

/* Cards and boxes - full width on mobile */
@media (max-width: 767px) {
    .card,
    .box,
    div[style*="border"] {
        width: 100%;
        margin: 10px 0;
    }
}

/* Market Ticker - Sliding Text */
.market-ticker {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-top: 1px solid var(--border-color, #2a2a2a);
    height: 36px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 100; /* Below dropdowns */
}

.ticker-label {
    background: var(--bg-tertiary, #1a1a1a);
    color: var(--accent-blue, #3b82f6);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
    border-right: 1px solid var(--border-color, #2a2a2a);
}

.ticker-balance {
    background: var(--bg-tertiary, #1a1a1a);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 100%;
    flex-shrink: 0;
    z-index: 10;
    border-right: 1px solid var(--border-color, #2a2a2a);
}

.balance-text {
    color: var(--text-secondary, #a0a0a0);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ticker-deposit-btn {
    background: linear-gradient(135deg, var(--accent-green, #10b981) 0%, #059669 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ticker-deposit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    animation: ticker-scroll 60s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

html[dir="rtl"] .ticker-track {
    animation-name: ticker-scroll-rtl;
}

.ticker-item {
    display: inline-block;
    color: var(--text-secondary, #a0a0a0);
    font-size: 12px;
    padding: 0 20px;
    white-space: nowrap;
    font-weight: 400;
}

.ticker-item strong {
    color: var(--text-primary, #ffffff);
    font-weight: 700;
}

.ticker-odds {
    color: var(--accent-blue, #3b82f6);
    font-weight: 700;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 4px;
    font-size: 11px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.ticker-odds:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.ticker-odds-yes {
    color: var(--accent-green, #10b981);
    background: rgba(16, 185, 129, 0.15);
}

.ticker-odds-no {
    color: var(--accent-red, #ef4444);
    background: rgba(239, 68, 68, 0.15);
}

.ticker-odds-other {
    color: var(--accent-blue, #3b82f6);
    background: rgba(59, 130, 246, 0.15);
}

.ticker-separator {
    color: var(--text-tertiary, #6b6b6b);
    font-size: 10px;
    padding: 0 10px;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes ticker-scroll-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* Pause ticker on hover */
.market-ticker:hover .ticker-track {
    animation-play-state: paused;
}

/* Balance Section - Below Ticker */
.balance-section {
    background: var(--bg-secondary, #111111);
    border-top: 1px solid var(--border-color, #2a2a2a);
    border-bottom: 1px solid var(--border-color, #2a2a2a);
    padding: 10px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 100; /* Below dropdowns */
}

.balance-section .balance-text {
    color: var(--text-primary, #ffffff);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.balance-deposit-btn {
    background: linear-gradient(135deg, var(--accent-green, #10b981) 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.balance-deposit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Dashboard charts - adjust on mobile */
@media (max-width: 767px) {
    canvas {
        max-width: 100%;
        height: auto;
    }
    
    .market-ticker {
        height: 32px;
        flex-wrap: wrap;
    }
    
    .ticker-label {
        font-size: 10px;
        padding: 0 12px;
    }
    
    .ticker-item {
        font-size: 11px;
        padding: 0 15px;
    }
    
    .ticker-separator {
        padding: 0 8px;
    }
    
    .balance-section {
        padding: 8px 15px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    
    .balance-section .balance-text {
        font-size: 11px;
        text-align: left;
    }
    
    .balance-deposit-btn {
        width: auto;
        padding: 4px 8px;
        font-size: 10px;
        text-align: center;
        flex-shrink: 0;
    }
}

/* Footer Links - Modern Style */
.page-footer-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #2a2a2a);
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-tertiary, #1a1a1a);
    border: 1px solid var(--border-color, #2a2a2a);
    border-radius: 8px;
    color: var(--text-secondary, #a0a0a0);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-link:hover {
    background: var(--bg-hover, #1f1f1f);
    border-color: var(--accent-blue, #3b82f6);
    color: var(--accent-blue, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.footer-link-icon {
    font-size: 16px;
    display: inline-block;
}

@media (max-width: 767px) {
    .page-footer-links {
        flex-direction: column;
        gap: 10px;
        padding-top: 15px;
    }
    
    .footer-link {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green, #10b981);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red, #ef4444);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue, #3b82f6);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    color: var(--text-secondary, #a0a0a0);
    font-size: 14px;
    font-weight: 500;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary, #1a1a1a);
    border: 1px solid var(--border-color, #2a2a2a);
    border-radius: 8px;
    color: var(--text-primary, #ffffff);
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-blue, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder {
    color: var(--text-tertiary, #6b6b6b);
}

select {
    cursor: pointer;
    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='%23a0a0a0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

