/* Base button */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
}

/* Primary */
.btn-primary {
    background: #2563eb;     /* чист син */
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff !important;
}

/* Secondary */
.btn-secondary {
    background: #f3f4f6;
    color: #111827 !important;
    border: 1px solid #d1d5db;
}

/* Alerts (extra variants used across templates) */
.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.table thead th {
    background: #f8fafc;
    font-weight: 800;
    color: #111827;
}

.table tbody tr:nth-child(even) td {
    background: #fcfcfd;
}

.table tfoot th {
    background: #ffffff;
}

.table-wrap {
    overflow: auto;
}

.mono {
    font-variant-numeric: tabular-nums;
}

/* Billing page */
.billing-page {
    padding-top: 24px;
    padding-bottom: 24px;
}

.billing-hero {
    margin: 0;
}

.billing-hero-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.billing-title {
    margin: 0 0 6px 0;
}

.billing-lead {
    margin: 0;
    color: #6b7280;
}

.billing-balance {
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.billing-balance-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.billing-balance-value {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.billing-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    align-items: center;
}

.billing-card {
    margin-top: 14px;
}

.billing-tabs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.tab-btn {
    appearance: none;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #111827;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.tab-btn.is-active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.section-title {
    margin: 0 0 10px 0;
}

.muted {
    color: #6b7280;
}

.divider {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.plan-name {
    font-weight: 900;
}

.plan-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.feature-name {
    font-weight: 700;
    color: #111827;
}

.sticky-col {
    position: sticky;
    left: 0;
    background: inherit;
    z-index: 2;
}

.pricing-table thead .sticky-col {
    z-index: 3;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.package-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.package-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.package-title {
    font-weight: 900;
    color: #111827;
}

.package-code {
    font-size: 12px;
    color: #6b7280;
}

.package-price {
    text-align: right;
}

.package-price-val {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

.package-credits {
    font-size: 12px;
    color: #6b7280;
}

.package-form {
    margin-top: 12px;
}

.coupon-form {
    max-width: 420px;
}

.coupon-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 6px 0;
}

.coupon-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
}

.form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

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