:root {
    /* Distinctive Color Palette - Cyber Auction Theme */
    --primary: #00ff88;
    --primary-dark: #00cc6e;
    --secondary: #ff0080;
    --accent: #00d4ff;
    --background: #0a0e27;
    --surface: #141b3d;
    --surface-light: #1e2951;
    --text: #ffffff;
    --text-secondary: #a0aec0;
    --success: #00ff88;
    --warning: #ffc107;
    --error: #ff0055;
    --border: rgba(0, 255, 136, 0.2);
    
    /* Shadows & Effects */
    --glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --glow-strong: 0 0 30px rgba(0, 255, 136, 0.6);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Readex Pro', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(255, 0, 128, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

.hidden {
    display: none !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--surface);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--border);
    box-shadow: var(--shadow), var(--glow);
    animation: slideUp 0.4s ease;
    position: relative;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Modal */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(var(--glow));
}

.auth-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--surface-light);
    padding: 0.5rem;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--background);
    box-shadow: var(--glow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Readex Pro', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Button Styles */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 0.5rem;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: var(--background);
    box-shadow: var(--glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

.btn-primary:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: var(--glow);
}
    box-shadow: var(--glow-strong);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-link {
    background: var(--surface-light);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Header */
.header {
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(var(--glow));
}

.logo-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance-display {
    background: var(--surface-light);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border);
}

.balance-label {
    color: var(--text-secondary);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.balance-amount {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

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

.dashboard-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--error);
}

.pulse {
    width: 12px;
    height: 12px;
    background: var(--error);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.live-indicator span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--error);
}

/* Auction Grid */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.auction-card {
    background: var(--surface);
    border-radius: 20px;
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.auction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 212, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.auction-card:hover::before {
    opacity: 1;
}

.auction-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-5px);
}

.auction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--surface-light);
}

.product-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
}

.status-badge.live {
    background: var(--error);
    color: white;
    animation: pulse 2s infinite;
}

.auction-body {
    padding: 2rem;
}

.product-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.bid-info {
    background: var(--surface-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.info-row .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-row .value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

.info-row.current-bid .value {
    color: var(--primary);
    font-size: 1.2rem;
}

.calls-available {
    color: var(--accent);
    font-weight: 700;
    animation: pulse 2s infinite;
}

.bidders-list {
    margin-bottom: 1.5rem;
}

.bidders-list h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.bidder-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--surface-light);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary);
    animation: slideIn 0.3s ease;
}

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

.bidder-item.admin-bid {
    border-left-color: var(--secondary);
}

.bidder-name {
    font-weight: 600;
}

.bid-amount {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
}

.bid-controls {
    margin-top: 1.5rem;
}

.bid-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.bid-input {
    flex: 1;
    padding: 1rem;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

.bid-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.btn-bid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--background);
    border: none;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow);
}

.btn-bid:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-bid:hover .btn-icon {
    transform: translateX(5px);
}

.bid-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

.bid-hint span {
    color: var(--primary);
    font-weight: 600;
}

/* Top-up Modal */
.topup-modal {
    max-width: 600px;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface-light);
    color: var(--text);
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--error);
    transform: rotate(90deg);
}

.topup-modal h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.step h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.wallet-info {
    background: var(--surface-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.info-label {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.wallet-address {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--background);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.wallet-address code {
    flex: 1;
    font-family: 'Orbitron', monospace;
    color: var(--primary);
    word-break: break-all;
    font-size: 0.9rem;
}

.btn-copy {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--background);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.warning {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid var(--warning);
    color: var(--warning);
    border-radius: 4px;
}

.verification-link {
    background: var(--surface-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.button-group .btn {
    flex: 1;
}

.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: var(--background);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-message h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.new-balance {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 1.5rem 0;
}

/* Transaction History */
.transaction-history {
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--border);
}

.transaction-history h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.history-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--surface-light);
}

th {
    padding: 1rem;
    text-align: left;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tr:hover {
    background: var(--surface-light);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem !important;
}

.status-won {
    color: var(--success);
    font-weight: 600;
}

.status-outbid {
    color: var(--warning);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow), var(--glow);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 2000;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-color: var(--error);
    background: rgba(255, 0, 85, 0.1);
}

.toast.success {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .auction-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .user-section {
        width: 100%;
        justify-content: space-between;
    }

    .modal-content {
        padding: 2rem;
    }

    .wallet-address {
        flex-direction: column;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 380px;
    max-height: 600px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow), var(--glow);
    display: none;
    flex-direction: column;
    z-index: 1500;
    animation: slideUp 0.3s ease;
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    background: var(--surface-light);
    padding: 1rem 1.5rem;
    border-radius: 18px 18px 0 0;
    border-bottom: 2px solid var(--border);
}

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

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.online-indicator {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-close-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close-btn:hover {
    background: var(--error);
    transform: rotate(180deg);
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--surface-light);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--primary);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--accent);
}

.message-content {
    background: var(--surface-light);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 75%;
}

.user-message .message-content {
    background: var(--primary);
    color: var(--background);
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 2px solid var(--border);
    background: var(--surface-light);
}

#chatInput {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Readex Pro', sans-serif;
}

#chatInput:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: var(--background);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
    transform: translateX(3px);
}

.chat-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--background);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow), var(--glow);
    transition: all 0.3s ease;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chat-toggle-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.chat-icon {
    font-size: 1.8rem;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    border: 2px solid var(--background);
}

.chat-badge.hidden {
    display: none;
}

/* Mobile Responsive for Chat */
@media (max-width: 768px) {
    .chat-widget {
        width: calc(100% - 2rem);
        right: 1rem;
        bottom: 90px;
        max-height: 70vh;
    }

    .chat-body {
        height: 400px;
    }

    .chat-toggle-btn {
        width: 55px;
        height: 55px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    /* Fix modal issues on mobile */
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
        max-height: 85vh;
    }
    
    .auth-modal {
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure forms are accessible */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* Make buttons more tappable */
    .btn {
        padding: 1.1rem 2rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    /* Ensure checkboxes are tappable */
    .checkbox-label {
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Security Overlay (Anti-Copy Protection) */
.security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.security-overlay.active {
    display: flex;
}

.security-message {
    background: var(--surface);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--error);
    text-align: center;
    max-width: 500px;
}

.security-message h2 {
    color: var(--error);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.security-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Disable text selection */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection only in input fields */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo-section h1 {
        font-size: 1.2rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .balance-display {
        padding: 0.5rem 1rem;
    }

    .balance-amount {
        font-size: 0.95rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .dashboard-header h2 {
        font-size: 1.5rem;
    }

    .auction-card {
        border-radius: 15px;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 90vh;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    /* Fix signup form on small screens */
    .auth-modal {
        padding: 1.5rem 1rem;
    }
    
    .tab-content {
        max-height: calc(90vh - 200px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }
    
    /* Ensure button is always visible */
    .btn-primary {
        position: sticky;
        bottom: 0;
        background: var(--primary);
        z-index: 100;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
    }
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .auction-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Large Desktop Optimization */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }

    .auction-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
