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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    color: #fff;
    min-height: 100vh;
}

/* Header */
.explorer-header {
    background: linear-gradient(135deg, #5a0f53 0%, #2fa8a1 100%);
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.explorer-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
}

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

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(90, 15, 83, 0.8) 0%, rgba(47, 168, 161, 0.6) 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Register Section */
.register-section {
    margin: 2rem 0;
    text-align: center;
}

.register-btn {
    background: linear-gradient(135deg, #5a0f53 0%, #7e1f73 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(90, 15, 83, 0.4);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 15, 83, 0.6);
}

/* Pricing Section */
.pricing-section {
    margin: 3rem 0;
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: rgba(90, 15, 83, 0.8);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(90, 15, 83, 0.1) 100%);
}

.pricing-card.permanent {
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(47, 168, 161, 0.1) 100%);
}

.tier-badge {
    background: linear-gradient(135deg, #5a0f53 0%, #2fa8a1 100%);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tier-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    color: #2fa8a1;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.tier-features li {
    padding: 0.5rem 0;
    opacity: 0.9;
}

/* Search Section */
.search-section {
    margin: 2rem 0;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1rem;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-bar button {
    background: linear-gradient(135deg, #2fa8a1 0%, #5a0f53 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    transform: translateY(-2px);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.filters select option {
    background: #2d2d2d;
    color: white;
}

/* CIDs Grid */
.cids-section {
    margin: 2rem 0;
}

.cids-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.cids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.cid-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cid-card:hover {
    border-color: #2fa8a1;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(47, 168, 161, 0.3);
}

.cid-card.featured {
    border-color: #ffd700;
}

.cid-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.cid-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tier-badge-small {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #5a0f53 0%, #2fa8a1 100%);
}

.tier-badge-small.featured {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
}

.cid-value {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem;
    border-radius: 6px;
    word-break: break-all;
    margin: 1rem 0;
}

.cid-description {
    margin: 1rem 0;
    opacity: 0.8;
    line-height: 1.6;
}

.cid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

.cid-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tag {
    background: rgba(47, 168, 161, 0.2);
    color: #2fa8a1;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.cid-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.action-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.action-btn:hover {
    background: rgba(47, 168, 161, 0.3);
    border-color: #2fa8a1;
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    opacity: 0.7;
}

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

.page-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-btn:hover:not(:disabled) {
    background: rgba(47, 168, 161, 0.3);
    border-color: #2fa8a1;
}

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

#page-info {
    font-weight: 600;
}

/* Modal */
.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;
}

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

.modal-content {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease;
}

.modal-large {
    max-width: 900px;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
}

.form-group select option {
    background: #2d2d2d;
    color: white;
    padding: 0.5rem;
}

.form-group textarea {
    resize: vertical;
}

.helper-text {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #5a0f53 0%, #2fa8a1 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 15, 83, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Details Modal */
.details-content-wrapper {
    padding: 1rem;
}

.details-header {
    margin-bottom: 2rem;
}

.details-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.details-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.meta-item {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #2fa8a1;
}

.meta-label {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.details-preview {
    margin: 2rem 0;
}

.preview-iframe {
    width: 100%;
    height: 400px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .cids-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .details-meta {
        grid-template-columns: 1fr;
    }
}

