.ibg-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-radius: 32px;
}

.ibg-header {
    text-align: center;
    margin-bottom: 40px;
}

.ibg-header h1 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #1e293b, #2c7da0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.ibg-header p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

.ibg-tool-wrapper {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    padding: 35px;
    margin-bottom: 40px;
}

.ibg-url-input-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ibg-url-input {
    flex: 1;
    padding: 18px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 60px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafcff;
}

.ibg-url-input:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 4px rgba(44, 125, 160, 0.1);
}

.ibg-generate-btn {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ibg-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 125, 160, 0.3);
}

.ibg-niche-section {
    margin: 20px 0;
}

.ibg-niche-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #0f172a;
}

.ibg-niche-select {
    width: 100%;
    max-width: 350px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 14px;
}

.ibg-options {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.ibg-option-group {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.ibg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
}

.ibg-stats-preview {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.ibg-stat-badge {
    background: #f1f5f9;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2c7da0;
}

.ibg-loader {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 32px;
    margin-top: 30px;
}

.ibg-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #2c7da0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ibg-progress {
    width: 300px;
    max-width: 80%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
}

.ibg-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2c7da0, #60a5fa);
    animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.ibg-results-section {
    background: white;
    border-radius: 32px;
    padding: 35px;
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ibg-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eef2f6;
}

.ibg-results-header h3 {
    font-size: 1.5rem;
    color: #0f172a;
}

.ibg-actions {
    display: flex;
    gap: 12px;
}

.ibg-icon-btn {
    padding: 8px 18px;
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.ibg-icon-btn:hover {
    background: #e2e8f0;
}

.ibg-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ibg-summary-card {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #eef2f6;
}

.card-icon {
    font-size: 2rem;
}

.card-content {
    flex: 1;
}

.card-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.card-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c7da0;
}

.ibg-filter-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 20px;
}

.ibg-filter-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 14px;
}

.ibg-filter-select {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    background: white;
    font-size: 14px;
}

.ibg-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid #eef2f6;
}

.ibg-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ibg-results-table th {
    background: #f8fafc;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.ibg-results-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f6;
    color: #334155;
}

.ibg-results-table tr:hover {
    background: #fafcff;
}

.domain-link {
    font-weight: 500;
    color: #2c7da0;
    text-decoration: none;
}

.domain-link:hover {
    text-decoration: underline;
}

.da-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.da-high {
    background: #dcfce7;
    color: #166534;
}

.da-medium {
    background: #fef9c3;
    color: #854d0e;
}

.da-low {
    background: #fee2e2;
    color: #991b1b;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
}

.type-dofollow {
    background: #dcfce7;
    color: #166534;
}

.type-nofollow {
    background: #f1f5f9;
    color: #475569;
}

.type-guestpost {
    background: #e0f2fe;
    color: #0369a1;
}

.action-btn {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.action-btn:hover {
    background: #1f5e7a;
}

.ibg-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.pagination-btn {
    padding: 8px 14px;
    background: #f1f5f9;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
}

.pagination-btn.active {
    background: #2c7da0;
    color: white;
}

.ibg-tips-section {
    margin: 35px 0 30px;
}

.ibg-tips-section h4 {
    margin-bottom: 20px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tip-card {
    background: #f0f9ff;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.tip-card span {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.tip-card h5 {
    margin-bottom: 10px;
    color: #0f172a;
}

.tip-card p {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.ibg-info-section {
    margin: 30px 0 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.info-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 18px;
}

.info-card h5 {
    margin-bottom: 10px;
    color: #2c7da0;
}

.info-card p {
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

.ibg-disclaimer {
    background: #fef9e3;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 12px;
    color: #92400e;
    margin-top: 25px;
}

.ibg-features {
    margin-top: 50px;
    text-align: center;
}

.ibg-features h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.feature {
    background: white;
    border-radius: 20px;
    padding: 22px;
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature span {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.feature p {
    font-size: 12px;
    color: #64748b;
}

.ibg-small {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

.loading-placeholder {
    text-align: center;
    color: #94a3b8;
    padding: 40px !important;
}

@media (max-width: 768px) {
    .ibg-container {
        padding: 20px 15px;
    }
    
    .ibg-header h1 {
        font-size: 1.8rem;
    }
    
    .ibg-tool-wrapper {
        padding: 20px;
    }
    
    .ibg-url-input-group {
        flex-direction: column;
    }
    
    .ibg-generate-btn {
        padding: 14px;
        justify-content: center;
    }
    
    .ibg-option-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .ibg-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ibg-filter-bar {
        flex-direction: column;
    }
    
    .ibg-results-table th, 
    .ibg-results-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}