.percentage-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #334155;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.percentage-calculator-container h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    text-align: center;
}

.subtitle {
    font-size: 1.25rem;
    color: #64748b;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.feature-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.2s;
    border: 1px solid #e2e8f0;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin: 16px 0 12px;
}

.security-badge {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #bbf7d0;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.security-badge p {
    margin: 0;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
}

.number-input, .percent-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: border-color 0.2s;
}

.number-input:focus, .percent-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-with-suffix {
    position: relative;
}

.input-with-suffix span {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 500;
}

.calculate-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.calculate-btn:hover {
    background: #2563eb;
}

.result-container {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    text-align: center;
}

.result-label {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 8px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.copy-btn {
    background: #e2e8f0;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #cbd5e1;
}

.formula-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.formula-section h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.formula {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1rem;
    color: #0f172a;
    text-align: center;
    margin: 12px 0;
}

.formula-example {
    color: #64748b;
    font-style: italic;
    margin-top: 8px;
}

.section-title {
    font-size: 1.8rem;
    color: #0f172a;
    margin: 40px 0 24px;
    font-weight: 700;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.use-case-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.use-case-card h3 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.use-case-card p {
    color: #64748b;
    margin-bottom: 16px;
}

.example {
    background: #e0f2fe;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    color: #0369a1;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.step {
    display: flex;
    gap: 16px;
}

.step-number {
    background: #3b82f6;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-section {
    margin-top: 40px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
}

.faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h3 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.faq-item p {
    color: #64748b;
    line-height: 1.6;
}

.faq-item a {
    color: #3b82f6;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .percentage-calculator-container {
        padding: 20px 15px;
    }
    
    .calculator-card {
        padding: 24px 20px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}