@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

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

/* Custom Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideDown {
    animation: slideDown 0.2s ease-out;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #a3a3a3;
    --border-color: #333333;
    --green: #22c55e;
    --red: #ef4444;
    --blue: #3b82f6;
    --purple: #8b5cf6;

    /* Font families */
    --font-main-title: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-title: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Content Overlay with Glassmorphism */
.content-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(0, 0, 0, 0.7) 100%);
}

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

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-brand h1 {
    font-family: var(--font-main-title);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, opacity 0.2s;
    padding: 8px 16px;
}

.nav-link:hover {
    opacity: 0.7;
}

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(51, 51, 51, 0.6);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 8px;
    z-index: 2000;
}

.menu-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

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

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 4px;
}

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

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

/* Button Base Styles */
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    border: none;
}

/* Button Variants */
.btn-border {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-border:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-text {
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
}

.btn-text:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--blue);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid rgba(51, 51, 51, 0.4);
}

.btn-secondary:hover {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
}

/* Main Content */
.main-content {
    padding: 32px 20px;
}

/* Search and Filter Bar */
.search-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 48px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.8);
    background: rgba(26, 26, 26, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    color: var(--blue);
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.filter-toggle-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

.filter-icon {
    width: 18px;
    height: 18px;
}

.filters-panel {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    animation: slideDown 0.3s ease;
}

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

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

.filter-btn {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-secondary);
    border: 1px solid rgba(51, 51, 51, 0.5);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.filter-btn:hover {
    background: rgba(26, 26, 26, 0.6);
    color: var(--text-primary);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-indicator.connected {
    background: var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Markets Grid */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

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

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--blue);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 8px 4px;
}

.market-card {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.market-card:hover {
    transform: translateY(-4px);
    background: rgba(20, 20, 20, 0.5);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
}

.market-card.resolved {
    cursor: default;
    border-color: rgba(34, 197, 94, 0.2);
    box-shadow: none;
}

.market-card.resolved:hover {
    transform: none;
    box-shadow: none;
}

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

.market-category {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.market-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.market-status-badge.open {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
}

.market-status-badge.resolved {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.market-question {
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    flex: 1;
    margin: 0;
}

.market-question-standalone {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.market-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.market-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.market-tags .tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

.market-tags .tag.hidden {
    display: none;
}

.tags-toggle {
    background: var(--bg-tertiary);
    color: var(--blue);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.tags-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.market-profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.market-image-circular {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.market-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
}

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

.bet-button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bet-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bet-button.yes {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--green);
    color: var(--green);
}

.bet-button.yes:hover {
    background: var(--green);
    color: white;
}

.bet-button.no {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--red);
    color: var(--red);
}

.bet-button.no:hover {
    background: var(--red);
    color: white;
}

.bet-label {
    font-size: 14px;
}

.bet-price {
    font-size: 18px;
    font-weight: 700;
}

.final-outcome {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.resolve-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.resolve-btn.yes {
    border-color: rgba(34, 197, 94, 0.4);
}

.resolve-btn.no {
    border-color: rgba(239, 68, 68, 0.4);
}

.resolve-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(51, 51, 51, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.modal-header h2 {
    font-size: 24px;
}

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

.modal-close:hover {
    background: var(--bg-hover);
}

.modal-body {
    padding: 24px;
}

.bet-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.bet-selection {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 51, 51, 0.3);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.bet-side {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.bet-input-group {
    margin-bottom: 24px;
}

.bet-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

#betAmount {
    width: 100%;
    padding: 12px 16px 12px 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
}

#betAmount:focus {
    outline: none;
    border-color: var(--blue);
}

.bet-summary {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 8px;
}

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

.summary-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

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

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.modal-footer button {
    flex: 1;
}

.portfolio-panel {
    margin-top: 48px;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.panel-header {
    margin-bottom: 20px;
}

.panel-header h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.panel-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.bets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-bets {
    padding: 24px;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
    color: var(--text-secondary);
    background: rgba(45, 55, 72, 0.3);
}

.bet-entry {
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    padding: 16px 20px;
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s;
}

.bet-entry:hover {
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(51, 51, 51, 0.8);
}

.bet-entry-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.bet-ticket {
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.bet-question {
    font-size: 15px;
    font-weight: 600;
}

.bet-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue);
}

.status-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green);
}

.status-fail {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

.bet-entry-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.bet-metric span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.bet-metric strong {
    font-size: 15px;
}

.bet-entry-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.bet-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item code {
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

.meta-pending {
    color: var(--text-muted);
}

.text-yes {
    color: var(--green);
}

.text-no {
    color: var(--red);
}

/* How It Works Modal */
.how-modal-content {
    max-width: 900px;
    width: 95%;
}

.how-modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

.how-hero {
    text-align: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.how-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.how-section {
    margin-bottom: 48px;
}

.how-section h3 {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.how-section > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.how-card {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.how-card:hover {
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(51, 51, 51, 0.8);
}

.how-card h4 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.how-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-card ul {
    list-style: none;
    padding: 0;
}

.how-card ul li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.how-card ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: bold;
}

.how-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.feature-item {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.feature-item:hover {
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(51, 51, 51, 0.8);
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.step-item {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.2s;
}

.step-item:hover {
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(51, 51, 51, 0.8);
}

.step-number {
    background: var(--blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-cta {
    text-align: center;
    padding: 48px 24px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    margin-top: 32px;
}

.how-cta h3 {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.how-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.how-cta .btn-primary {
    font-size: 18px;
    padding: 14px 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .search-filter-bar {
        flex-direction: column;
        padding: 12px 16px;
    }

    .search-wrapper {
        width: 100%;
    }

    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .markets-grid {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        flex-direction: column;
    }

    .bet-entry-footer {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
    }

    .how-section h3 {
        font-size: 24px;
    }

    .how-subtitle {
        font-size: 16px;
    }
}

/* Input Component Styles */
.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.input-required {
    color: var(--red);
    margin-left: 4px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.2s;
    font-size: 16px;
}

.input--text,
.input--email,
.input--tel,
.input--password {
    padding: 12px 16px;
}

.input--number {
    padding: 12px 16px;
}

.input--small {
    padding: 8px 12px;
    font-size: 14px;
}

.input--large {
    padding: 14px 18px;
    font-size: 18px;
}

.input:focus {
    outline: none;
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input:disabled {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

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

.input--error {
    border-color: var(--red);
    background: rgba(239, 68, 68, 0.05);
}

.input--error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input--ghost {
    background: transparent;
    border-color: transparent;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
}

.input--ghost:focus {
    border-bottom-color: var(--blue);
    background: transparent;
}

.input--subtle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.input--subtle:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

.input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-prefix {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.input-suffix {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.input-error {
    font-size: 13px;
    color: var(--red);
    font-weight: 500;
    margin-top: 4px;
}

.input-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Button Component Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    position: relative;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: var(--btn-content-order, row);
}

.btn-text {
    display: inline;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn--small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn--large {
    padding: 12px 32px;
    font-size: 16px;
}

.btn--full-width {
    width: 100%;
}

.btn--primary {
    background: var(--blue);
    color: white;
    border: 1px solid var(--blue);
}

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

.btn--primary:active:not(:disabled) {
    transform: translateY(0);
}

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

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

.btn--danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border: 1px solid var(--red);
}

.btn--danger:hover:not(:disabled) {
    background: var(--red);
    color: white;
}

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

.btn--ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
}

.btn--border {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn--border:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--text {
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 8px 12px;
}

.btn--text:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.btn--disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn--loading {
    color: transparent;
    pointer-events: none;
}

.btn--loading .btn-text {
    visibility: hidden;
}

.btn--loading .btn-icon {
    visibility: hidden;
}

.btn--loading .btn-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    visibility: visible;
}

/* Button Group Styles */
.btn-group {
    display: flex;
    gap: 12px;
}

.btn-group--vertical {
    flex-direction: column;
}

.btn-group--horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.btn-group--horizontal .btn--full-width {
    flex: 1 1 auto;
    min-width: 150px;
}
