/* web/static/css/pricing.css */

.pricing-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-hero h1 {
    font-size: 32px;
    color: #1a237e;
    margin-bottom: 8px;
}

.pricing-hero p {
    font-size: 15px;
    color: #666;
}

/* ---------- Table ---------- */
.pricing-table-wrap {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 4px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pricing-table th {
    background: #f0f4f8;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #1a237e;
    border-bottom: 2px solid #e8ecf1;
    white-space: nowrap;
}

.pricing-table td {
    padding: 16px;
    border-bottom: 1px solid #e8ecf1;
    vertical-align: middle;
    color: #333;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background: #f8f9fa;
}

.pricing-table .current-plan {
    background: #e8f5e9;
}

.pricing-table .current-plan:hover {
    background: #d7efd9;
}

.pricing-table .selected-row {
    background: #e3f2fd;
}

.pricing-table .col-select {
    width: 60px;
    text-align: center;
}

.pricing-table .col-select input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1a237e;
}

.pricing-table .col-action {
    text-align: right;
    white-space: nowrap;
}

.pricing-table .plan-name {
    font-weight: 600;
    color: #1a237e;
    font-size: 15px;
}

.pricing-table .plan-price {
    font-weight: 700;
    color: #0d47a1;
}

.pricing-table .current-label {
    color: #2e7d32;
    font-weight: 600;
    font-size: 13px;
}

.btn-select {
    padding: 6px 18px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-select:hover {
    background: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* ---------- Note ---------- */
.pricing-note {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #666;
}

/* ---------- Features ---------- */
.pricing-features {
    margin-top: 48px;
    text-align: center;
}

.pricing-features h2 {
    font-size: 20px;
    color: #1a237e;
    margin-bottom: 16px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f4f8;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ---------- CTA ---------- */
.pricing-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
    box-shadow: 0 4px 14px rgba(26, 35, 126, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.35);
}

.btn-secondary {
    background: white;
    color: #1a237e;
    border: 2px solid #e8ecf1;
}

.btn-secondary:hover {
    border-color: #1976d2;
    color: #0d47a1;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .pricing-page { margin: 20px auto; padding: 0 12px; }
    .pricing-hero h1 { font-size: 24px; }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .pricing-table .col-select { width: 40px; }
    .pricing-table .col-select input[type="radio"] { width: 16px; height: 16px; }

    .btn-select { padding: 5px 12px; font-size: 12px; }
}