.iar-pro-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.iar-pro-header {
    text-align: center;
    margin-bottom: 40px;
}

.iar-pro-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1e293b, #2c7da0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.iar-pro-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.iar-pro-tool-wrapper {
    background: white;
    border-radius: 28px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    padding: 35px;
    margin-bottom: 40px;
}

.iar-pro-mode-section {
    margin-bottom: 25px;
}

.iar-pro-mode-section label {
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    color: #0f172a;
}

.iar-pro-modes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 10px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.mode-btn small {
    font-size: 11px;
    color: #94a3b8;
    font-weight: normal;
}

.mode-btn.active {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
    border-color: #2c7da0;
    color: white;
}

.mode-btn.active small {
    color: rgba(255,255,255,0.8);
}

.iar-pro-input-area, .iar-pro-output-area {
    margin-bottom: 20px;
}

.iar-pro-input-header, .iar-pro-output-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 500;
    color: #334155;
}

.iar-pro-stats, .iar-pro-output-stats {
    font-size: 12px;
    color: #64748b;
    display: flex;
    gap: 15px;
}

#iar-pro-input {
    width: 100%;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

#iar-pro-input:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44,125,160,0.1);
}

.iar-pro-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.iar-pro-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.iar-pro-btn.primary {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
    color: white;
    flex: 1;
    justify-content: center;
}

.iar-pro-btn.secondary {
    background: #f1f5f9;
    color: #334155;
}

.iar-pro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.iar-pro-loader {
    text-align: center;
    padding: 40px;
}

.iar-pro-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #e2e8f0;
    border-top-color: #2c7da0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.iar-pro-progress {
    width: 280px;
    max-width: 80%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 15px auto 0;
    overflow: hidden;
}

.iar-pro-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2c7da0, #60a5fa);
    animation: fillProgress 2s ease-out forwards;
}

@keyframes fillProgress {
    0% { width: 0%; }
    40% { width: 60%; }
    80% { width: 90%; }
    100% { width: 100%; }
}

.iar-pro-output {
    background: #fafcff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    min-height: 200px;
    line-height: 1.7;
    font-size: 15px;
}

.iar-pro-output-footer {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.iar-pro-small-btn {
    padding: 6px 14px;
    background: #f1f5f9;
    border: none;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.iar-pro-small-btn:hover {
    background: #e2e8f0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    text-align: center;
    padding: 22px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card span {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature-card h4 {
    margin: 8px 0;
    color: #0f172a;
}

.feature-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.iar-pro-disclaimer {
    background: #fff8e7;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 12px;
    color: #b76e0e;
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .iar-pro-tool-wrapper {
        padding: 20px;
    }
    
    .mode-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .mode-btn small {
        display: none;
    }
    
    .iar-pro-actions {
        flex-direction: column;
    }
    
    .iar-pro-btn.primary {
        order: -1;
    }
}