/* Self-Listing Modern Dark-First Design */

.form-controlx {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: var(--card-bg);
    color: var(--dark);
    width: 100%;
}
.form-controlx:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    outline: none;
}

/* Page Hero Banner */
.listing-hero {
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.08) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.listing-hero h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.listing-hero .subtitle {
    color: var(--gray-dark);
    font-size: 1rem;
    margin: 0;
}

/* Feature Badges */
.listing-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray-dark);
}
.feature-badge i {
    color: var(--success, #10b981);
    font-size: 0.9rem;
}

/* Tabs */
.tabs-container { margin-bottom: 1.5rem; }
.tabs-header {
    display: flex;
    gap: 0.25rem;
    background: var(--bg);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.5rem;
}
.tab-button {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-dark);
    transition: all 0.25s ease;
}
.tab-button:hover { color: var(--primary); background: rgba(99,102,241,0.06); }
.tab-button.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.tab-content { display: none; }

/* Listing Card */
.listing-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-bg);
    overflow: hidden;
}
.listing-card .card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.listing-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.listing-card .card-body { padding: 1.5rem; }

/* Token Preview */
.token-preview {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    background: var(--card-bg);
}
.token-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 1rem;
}
.token-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.token-name { font-size: 1.35rem; font-weight: 700; }
.token-symbol {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin-left: 8px;
    font-weight: 500;
}
.token-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.detail-item {
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.detail-label {
    font-weight: 500;
    color: var(--gray-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.detail-value { word-break: break-all; font-weight: 600; font-size: 0.95rem; }
.detail-value a { color: var(--primary); text-decoration: none; }
.detail-value a:hover { text-decoration: underline; }
.contract-address {
    font-family: 'Roboto Mono', monospace;
    background: var(--bg);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

/* Payment Section */
.payment-section {
    margin-top: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-bg);
}
.payment-section h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.payment-section > p { color: var(--gray-dark); font-size: 0.9rem; margin-bottom: 1rem; }
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.payment-method {
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--dark);
}
.payment-method:hover { border-color: var(--primary); background: rgba(99,102,241,0.06); }
.payment-method.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.wallet-connect { margin-top: 1rem; }
.wallet-address {
    font-family: 'Roboto Mono', monospace;
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    word-break: break-all;
    border: 1px solid var(--border);
}
.payment-details { margin-top: 1rem; }

/* Market Maker Section */
.market-maker-section {
    margin-top: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}
.market-maker-section h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.market-maker-section > p { color: var(--gray-dark); font-size: 0.9rem; margin-bottom: 1rem; }

/* Volume Tiers */
.volume-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.volume-tier {
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}
.volume-tier::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.volume-tier:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.1);
}
.volume-tier:hover::before { opacity: 1; }
.volume-tier.active {
    border-color: var(--primary);
    background: rgba(99,102,241,0.08);
    box-shadow: 0 4px 16px rgba(99,102,241,0.15);
}
.volume-tier.active::before { opacity: 1; }
.volume-tier h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; color: var(--dark); }
.volume-tier p { margin: 0 0 8px; font-size: 0.82rem; color: var(--gray-dark); line-height: 1.4; }
.tier-price { font-weight: 700; font-size: 0.95rem; color: var(--primary); }

/* Payment Steps */
.payment-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.payment-step {
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.payment-step h4 { margin: 0 0 0.75rem; font-size: 0.95rem; font-weight: 600; color: var(--primary); }

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.75rem;
}
.info-card {
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.info-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.dark-mode .info-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.info-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}
.info-card-header h3 {
    margin: 0; font-size: 1rem; font-weight: 600;
    display: flex; align-items: center; gap: 0.5rem;
}
.info-card-header i { color: var(--primary); font-size: 1rem; }
.info-card-body { padding: 1.25rem; }

/* Process Steps */
.process-steps { list-style: none; padding: 0; margin: 0; }
.process-steps li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
}
.process-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 14px; top: 32px;
    width: 1px;
    height: calc(100% - 8px);
    background: var(--border);
}
.process-steps li:last-child { margin-bottom: 0; }
.step-number {
    width: 28px; height: 28px; min-width: 28px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 14px;
}
.step-content { padding-top: 4px; font-size: 0.9rem; color: var(--dark); line-height: 1.5; }

/* Requirements List */
.requirements-list { list-style: none; padding: 0; margin: 0; }
.requirements-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.5;
}
.requirements-list li:last-child { margin-bottom: 0; }
.requirements-list i { color: var(--success, #10b981); margin-right: 10px; margin-top: 3px; font-size: 0.85rem; }

/* Alerts */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #ef4444; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: #10b981; }
.alert-info { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25); color: var(--primary); }
.close-btn { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: inherit; opacity: 0.7; padding: 0; line-height: 1; }
.close-btn:hover { opacity: 1; }

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .listing-hero { padding: 1.5rem; }
    .listing-hero h2 { font-size: 1.35rem; }
    .listing-features { gap: 0.75rem; }
    .info-section, .token-details, .payment-steps, .volume-tiers { grid-template-columns: 1fr; }
    .payment-methods { flex-direction: column; }
    .payment-method {
        width: 100%;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .token-header { flex-wrap: wrap; }
    .token-preview, .listing-card .card-body { padding: 1rem; }
}

@media (max-width: 480px) {
    .form-controlx { font-size: 16px; min-height: 48px; padding: 0.6rem 0.75rem; }
    .token-icon { width: 40px; height: 40px; }
    .token-name { font-size: 1.15rem; }
    .token-symbol { display: block; margin-left: 0; margin-top: 4px; }
    .listing-hero { padding: 1.25rem; }
    .listing-hero h2 { font-size: 1.2rem; }
    .feature-badge { font-size: 0.78rem; }
}
