.customer-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.customer-portal h1,
.customer-portal h2,
.customer-portal h3 {
    margin-top: 0;
}

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

.pricing-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.pricing-card.popular {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.pricing-card.popular::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2271b1;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.pricing-specs {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f1;
}

.pricing-specs li::before {
    content: '✓ ';
    color: #00a32a;
    font-weight: 700;
}

.credentials-card,
.usage-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.credential-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.credential-row label {
    font-weight: 600;
    min-width: 100px;
    color: #1d2327;
}

.credential-row code {
    background: #f0f0f1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    word-break: break-all;
}

.usage-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #f0f6fc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d2327;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #646970;
    margin-top: 0.25rem;
}

.usage-chart {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
}

.usage-table th,
.usage-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.usage-table th {
    font-weight: 600;
    background: #f0f6fc;
}

.usage-table tr:hover {
    background: #f9f9f9;
}

.no-subscription {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.no-subscription h2 {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #135e96;
}

.btn-secondary {
    background: #f0f0f1;
    color: #1d2327;
}

.btn-secondary:hover {
    background: #dcdcde;
}

@media (max-width: 600px) {
    .credential-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .credential-row label {
        min-width: auto;
    }
}
