/* CONTAINER */
.tbiz-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* HEADER */
.tbiz-header h2 {
    margin-bottom: 4px;
    font-size: 22px;
    font-weight: 600;
}

.tbiz-subtle {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

/* EMPTY */
.tbiz-empty {
    padding: 20px;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: 10px;
    color: #666;
}

/* GRID */
.tbiz-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* CARD */
.tbiz-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

/* CARD HEADER */
.tbiz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.tbiz-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* STATUS */
.tbiz-status-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tbiz-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    background: #eee;
}

/* STATUS LIFECYCLE */
.tbiz-status-active {
    background: #e6f4ea;
    color: #1e7e34;
}

.tbiz-status-completed {
    background: #e9ecef;
    color: #555;
}

/* Payment STATUS */
.tbiz-status-paid {
    background: #e6fcf5;
    color: #2b8a3e;
}

.tbiz-status-unpaid {
    background: #fff3bf;
    color: #e67700;
}

.tbiz-status-pending {
    background: #edf2ff;
    color: #364fc7;
}

.tbiz-status-failed {
    background: #fff5f5;
    color: #c92a2a;
}

/* CARD BODY */
.tbiz-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* SESSION SUMMARY */
.tbiz-session-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tbiz-session-count {
    font-size: 18px;
    font-weight: 600;
}

.tbiz-session-label {
    font-size: 12px;
    color: #777;
}

.tbiz-session-percent {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

/* PROGRESS */
.tbiz-progress {
    width: 100%;
    height: 8px;
    background: #f1f1f1;
    border-radius: 20px;
    overflow: hidden;
}

.tbiz-progress-bar {
    height: 100%;
    background: #000;
    border-radius: 20px;
    transition: width 0.3s ease;
}

/* BUTTON */
.tbiz-btn-full {
    width: 100%;
}

.tbiz-button,
button.tbiz-button,
button.tbiz-button.tbiz-start-checkout,
button.tbiz-checkout-back {
    padding: 10px 20px;
    background-color: #215413cf;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.tbiz-button:hover {
    background-color: #1a4110cf;
}

a.tbiz-button.button {
    text-decoration: none;
    color: #fff;
}

/* SPACING UTILS */
.tbiz-mt-2 {
    margin-top: 12px;
}

.tbiz-float-right {
    display: flex;
    justify-content: flex-end;
}

/* TEMPLATE: MODERN */

.tbiz-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.tbiz-modern-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #2b8a3e;
}

h3.tbiz-modern-title {
    font-size: 24px;
    font-weight: 700;
    color: #215413cf;
}

.tbiz-modern-price {
    font-size: 30px;
    font-weight: 600;
    margin: 16px 0;
}

.tbiz-modern-meta {
    color: #666;
    margin-bottom: 24px;
}

.tbiz-modern-button,
.tbiz-modern-submit {
    width: 100%;
    border-radius: 20px;
}

/* TEMPLATE: MINIMAL */

.tbiz-minimal-row {
    margin-bottom: 20px;
}

.tbiz-minimal-shell {
    max-width: 860px;
    margin: 0 auto;
}

.tbiz-minimal-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #eee;
}

.tbiz-minimal-item {
    padding: 64px 0;
    border-bottom: 1px solid #eee;
}

.tbiz-minimal-price {
    font-weight: 600;
}

.tbiz-minimal-button {
    margin-top: 20px;
}

/* TEMPLATE: Dark */
.tbiz-dark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.tbiz-dark-card {
    background: #111;
    color: #fff;
    border-radius: 24px;
    padding: 32px;
}

h3.tbiz-dark-title {
    font-size: 24px;
    font-weight: 700;
    color: #dcffd3;
}

.tbiz-dark-price {
    font-size: 30px;
    font-weight: 600;
    margin: 16px 0;
}

.tbiz-dark-button {
    width: 100%;
    margin-top: 20px;
}

/* TEMPLATE: DEFAULT */
.tbiz-template-default .tbiz-card {
    margin-bottom: 20px;
    background: #f5fff1;
}

.tbiz-default-price {
    font-size: 18px;
    font-weight: 600;
}

/* CHECKOUT */
.tbiz-checkout-panel {
    max-width: 680px;
    margin: 0 auto;
}

.tbiz-checkout-back {
    border: none;
    border-radius: 20px;
    background: #4b743f;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
}

.tbiz-checkout-back:hover {
    background-color: #1a4110cf;
}

.tbiz-checkout-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}

.tbiz-checkout-header {
    margin-bottom: 24px;
}

.tbiz-checkout-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.tbiz-checkout-title {
    font-size: 32px;
    line-height: 1.1;
    margin: 0;
}

.tbiz-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tbiz-checkout-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tbiz-checkout-fields input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.tbiz-checkout-fields input:focus {
    outline: none;
    border-color: #111;
}