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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: #000000;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ffffff;
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.icon-btn:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #1a1a1a;
    border-color: #555555;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 64px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(0.7);
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 80px 24px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #d1d5db;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab {
    background-color: #1a1a1a;
    color: #9ca3af;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
}

.tab:hover:not(.active) {
    background-color: #262626;
    color: #ffffff;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.category-filter {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #262626;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-filter.active {
    background-color: #262626;
    border-color: #7c3aed;
}

.category-filter:hover {
    background-color: #262626;
}

.category-icon {
    font-size: 16px;
}

.category-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Market Grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 64px;
}

/* Market Card */
.market-card {
    background-color: #141414;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
    cursor: pointer;
}

.market-card:hover {
    border-color: #333333;
    transform: translateY(-2px);
}

.market-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.market-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.market-category {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.market-category.crypto {
    background-color: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.market-category.tech {
    background-color: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.market-category.sports {
    background-color: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.market-category.entertainment {
    background-color: rgba(244, 114, 182, 0.1);
    color: #f472b6;
}

.market-category.politics {
    background-color: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.market-badge {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.market-question {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #ffffff;
}

.market-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.option-btn {
    padding: 12px;
    border: 1px solid;
    border-radius: 8px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.option-btn.yes {
    border-color: #22c55e;
}

.option-btn.no {
    border-color: #ef4444;
}

.option-btn:hover.yes {
    background-color: rgba(34, 197, 94, 0.1);
}

.option-btn:hover.no {
    background-color: rgba(239, 68, 68, 0.1);
}

.option-label {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.option-btn.yes .option-label {
    color: #22c55e;
}

.option-btn.no .option-label {
    color: #ef4444;
}

.option-percentage {
    font-size: 20px;
    font-weight: 700;
}

.option-btn.yes .option-percentage {
    color: #22c55e;
}

.option-btn.no .option-percentage {
    color: #ef4444;
}

.market-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.market-volume {
    display: flex;
    align-items: center;
    gap: 4px;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

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

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.modal-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-modal:hover {
    background-color: #262626;
    color: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
}

.form-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.modal-footer {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    flex: 1;
    justify-content: center;
}

/* About Modal Specific Styles */
.modal-about {
    max-width: 800px;
}

.about-content {
    color: #d1d5db;
    line-height: 1.8;
}

.about-image {
    margin-bottom: 32px;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.image-caption {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

.about-section {
    margin-bottom: 32px;
}

.about-heading {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-icon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.about-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.holy-coin-icon {
    font-size: 24px;
}

.about-text {
    font-size: 15px;
    color: #d1d5db;
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-text em {
    color: #a855f7;
    font-style: italic;
    font-weight: 600;
}

.about-final {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.about-cta {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #333333;
}

.about-cta .btn-primary {
    width: auto;
    padding: 16px 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        margin-top: 16px;
        justify-content: center;
    }

    .hero-title {
        font-size: 40px;
    }

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

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

    .modal-content {
        padding: 24px;
        width: 95%;
    }

    .modal-about {
        max-width: 95%;
    }

    .about-heading {
        font-size: 18px;
    }

    .about-text {
        font-size: 14px;
    }

    .about-icon-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-footer {
        flex-direction: column;
    }
}
