.weblazem-ticket-section {
    padding: 70px 0 90px;
    background: linear-gradient(180deg, #f7f0fb 0%, #efdef5 100%);
}

.weblazem-ticket-section__header {
    text-align: center;
    margin-bottom: 36px;
}

.weblazem-ticket-section__title {
    margin: 0 0 12px;
    color: #4f1c61;
    font-size: 28px;
    font-weight: 800;
}

.weblazem-ticket-section__subtitle {
    margin: 0 auto;
    max-width: 640px;
    color: #5b4a66;
    font-size: 15px;
    line-height: 1.8;
}

.weblazem-ticket-panel {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(79, 28, 97, 0.08);
    box-shadow: 0 18px 40px rgba(79, 28, 97, 0.08);
    padding: 28px;
    min-height: 420px;
}

.weblazem-ticket-login {
    max-width: 420px;
    margin: 20px auto;
    text-align: center;
}

.weblazem-ticket-login__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: #4f1c61;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.weblazem-ticket-login h2,
.weblazem-ticket-login h3 {
    margin: 0 0 8px;
    color: #4f1c61;
    font-size: 22px;
}

.weblazem-ticket-login__hint {
    margin: 0 0 22px;
    color: #6b5a74;
    font-size: 14px;
}

.weblazem-ticket-form {
    text-align: right;
}

.weblazem-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.weblazem-ticket-field {
    margin-bottom: 14px;
}

.weblazem-ticket-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #4f1c61;
}

.weblazem-ticket-field input,
.weblazem-ticket-field select,
.weblazem-ticket-field textarea,
.weblazem-ticket-reply-form textarea {
    width: 100%;
    border: 1px solid #dccfe4;
    border-radius: 12px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    background: #fcfafd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.weblazem-ticket-field input:focus,
.weblazem-ticket-field select:focus,
.weblazem-ticket-field textarea:focus,
.weblazem-ticket-reply-form textarea:focus {
    outline: none;
    border-color: #4f1c61;
    box-shadow: 0 0 0 3px rgba(79, 28, 97, 0.12);
}

.weblazem-ticket-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.weblazem-ticket-btn--primary {
    width: 100%;
    background: #4f1e60;
    color: #fff;
}

.weblazem-ticket-btn--primary:hover {
    background: #3d174c;
    transform: translateY(-1px);
}

.weblazem-ticket-btn--accent {
    width: auto;
    min-width: 160px;
    background: #f5c518;
    color: #3d174c;
}

.weblazem-ticket-btn--accent:hover {
    background: #e6b800;
    transform: translateY(-1px);
}

.weblazem-ticket-btn--ghost {
    background: #f3eaf8;
    color: #4f1c61;
}

.weblazem-ticket-btn--ghost:hover {
    background: #eadcf3;
}

.weblazem-ticket-feedback {
    min-height: 20px;
    margin: 8px 0;
    font-size: 13px;
}

.weblazem-ticket-feedback.is-error {
    color: #b91c1c;
}

.weblazem-ticket-feedback.is-success {
    color: #15803d;
}

.weblazem-ticket-dash-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #efe4f4;
}

.weblazem-ticket-dash-bar__label {
    color: #7a6a84;
    font-size: 13px;
}

.weblazem-ticket-dash-bar__actions {
    display: flex;
    gap: 8px;
}

.weblazem-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weblazem-ticket-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #efe4f4;
    background: #fcfafd;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: right;
    width: 100%;
    font-family: inherit;
}

.weblazem-ticket-card:hover {
    border-color: #c9a9d8;
    box-shadow: 0 8px 20px rgba(79, 28, 97, 0.08);
}

.weblazem-ticket-card__title {
    margin: 0 0 4px;
    color: #2d1a36;
    font-size: 15px;
    font-weight: 700;
}

.weblazem-ticket-card__meta {
    color: #7a6a84;
    font-size: 12px;
}

.weblazem-ticket-empty {
    text-align: center;
    color: #7a6a84;
    padding: 40px 10px;
}

.weblazem-ticket-back {
    border: none;
    background: transparent;
    color: #4f1c61;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    padding: 0;
}

.weblazem-ticket-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.weblazem-ticket-detail-head h3 {
    margin: 0 0 6px;
    color: #4f1c61;
    font-size: 18px;
}

.weblazem-ticket-detail-meta {
    color: #7a6a84;
    font-size: 12px;
}

.weblazem-ticket-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: #eef2ff;
    color: #3730a3;
}

.weblazem-ticket-status--open { background: #eff6ff; color: #1d4ed8; }
.weblazem-ticket-status--in_progress { background: #fff7ed; color: #c2410c; }
.weblazem-ticket-status--answered { background: #ecfdf5; color: #047857; }
.weblazem-ticket-status--waiting { background: #fefce8; color: #a16207; }
.weblazem-ticket-status--closed { background: #f3f4f6; color: #4b5563; }

.weblazem-ticket-chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding: 14px;
    border-radius: 16px;
    background: #f8f4fb;
    margin-bottom: 14px;
}

.weblazem-ticket-chat__bubble {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #efe4f4;
}

.weblazem-ticket-chat__bubble.is-user {
    align-self: flex-start;
    border-bottom-right-radius: 4px;
}

.weblazem-ticket-chat__bubble.is-admin {
    align-self: flex-end;
    background: #4f1c61;
    color: #fff;
    border-color: transparent;
    border-bottom-left-radius: 4px;
}

.weblazem-ticket-chat__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 11px;
    opacity: 0.8;
}

.weblazem-ticket-chat__text {
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

.weblazem-ticket-chat__files {
    margin-top: 8px;
}

.weblazem-ticket-attach {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.weblazem-ticket-chat__bubble.is-admin .weblazem-ticket-attach {
    color: #fde68a;
}

.weblazem-ticket-field__hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #7a6a84;
}

.weblazem-ticket-reply-form textarea {
    margin-bottom: 10px;
}

.weblazem-ticket-reply-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.weblazem-ticket-reply-form__actions .weblazem-ticket-btn {
    width: auto;
    min-width: 140px;
}

/* Homepage CTA */
.weblazem-ticket-cta-section {
    padding: 60px 0 80px;
    display: none;
}

.weblazem-ticket-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border-radius: 20px;
    background: linear-gradient(135deg, #4f1c61 0%, #6b2d82 100%);
    color: #fff;
    box-shadow: 0 16px 36px rgba(79, 28, 97, 0.22);
}

.weblazem-ticket-cta__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
}

.weblazem-ticket-cta__subtitle {
    margin: 0;
    max-width: 560px;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.8;
}

.weblazem-ticket-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 14px 22px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.weblazem-ticket-cta__btn:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
}

/* Success modal */
.weblazem-ticket-success {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 10, 28, 0.55);
}

.weblazem-ticket-success[hidden] {
    display: none !important;
}

.weblazem-ticket-success__dialog {
    width: 100%;
    max-width: 420px;
    padding: 28px 24px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.weblazem-ticket-success__icon {
    font-size: 42px;
    color: #16a34a;
    margin-bottom: 10px;
}

.weblazem-ticket-success__dialog h3 {
    margin: 0 0 10px;
    color: #4f1c61;
    font-size: 20px;
}

.weblazem-ticket-success__dialog p {
    margin: 0 0 8px;
    color: #4b5563;
    line-height: 1.7;
}

.weblazem-ticket-success__code {
    font-weight: 700;
    color: #2563eb !important;
    direction: ltr;
}

body.weblazem-ticket-success-open {
    overflow: hidden;
}

.weblazem-ticket-page {
    padding-top: 20px;
    min-height: 70vh;
}

/* Account portal */
.weblazem-account-panel {
    max-width: 980px;
}

.weblazem-account-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 6px;
    border-radius: 14px;
    background: #f7f0fb;
}

.weblazem-account-tab {
    border: none;
    background: transparent;
    color: #6b5a74;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.weblazem-account-tab:hover {
    background: #eadcf3;
    color: #4f1e60;
}

.weblazem-account-tab.is-active {
    background: #4f1e60;
    color: #fff;
    box-shadow: 0 6px 16px rgba(79, 30, 96, 0.2);
}

.weblazem-account-pane[hidden] {
    display: none !important;
}

.weblazem-account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.weblazem-account-stat {
    border: 1px solid #efe4f4;
    background: linear-gradient(180deg, #fff 0%, #fcfafd 100%);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.weblazem-account-stat:hover {
    border-color: #c9a9d8;
    transform: translateY(-2px);
}

.weblazem-account-stat strong {
    display: block;
    color: #4f1e60;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.weblazem-account-stat span {
    color: #7a6a84;
    font-size: 12px;
    font-weight: 600;
}

.weblazem-account-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.weblazem-account-block {
    border: 1px solid #efe4f4;
    border-radius: 14px;
    padding: 14px;
    background: #fcfafd;
}

.weblazem-account-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.weblazem-account-block__head h3 {
    margin: 0;
    color: #4f1e60;
    font-size: 15px;
}

.weblazem-account-link {
    border: none;
    background: transparent;
    color: #4f1e60;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.weblazem-account-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weblazem-account-card {
    border: 1px solid #efe4f4;
    border-radius: 14px;
    padding: 14px 16px;
    background: #fcfafd;
}

.weblazem-account-card__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.weblazem-account-card__title {
    margin: 0 0 4px;
    color: #2d1a36;
    font-size: 15px;
    font-weight: 700;
}

.weblazem-account-card__meta {
    margin: 0 0 6px;
    color: #7a6a84;
    font-size: 12px;
}

.weblazem-account-card__desc {
    margin: 0;
    color: #5b4a66;
    font-size: 13px;
    line-height: 1.7;
}

.weblazem-account-muted {
    margin: 0;
    color: #9a8aa4;
    font-size: 13px;
    text-align: center;
    padding: 18px 8px;
}

.weblazem-proposal-card__total {
    margin-top: 6px;
    color: #4f1e60;
    font-size: 14px;
    font-weight: 800;
}

.weblazem-proposal-status--draft { background: #f3f4f6; color: #4b5563; }
.weblazem-proposal-status--sent { background: #eff6ff; color: #1d4ed8; }
.weblazem-proposal-status--viewed { background: #fefce8; color: #a16207; }
.weblazem-proposal-status--accepted { background: #ecfdf5; color: #047857; }
.weblazem-proposal-status--rejected { background: #fef2f2; color: #b91c1c; }
.weblazem-proposal-status--changes_requested { background: #fff7ed; color: #c2410c; }

.weblazem-proposal-detail__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.weblazem-proposal-detail__code {
    margin: 0 0 4px;
    color: #7a6a84;
    font-size: 12px;
    font-weight: 700;
}

.weblazem-proposal-detail__head h2 {
    margin: 0 0 6px;
    color: #4f1e60;
    font-size: 20px;
}

.weblazem-proposal-detail__meta {
    margin: 0;
    color: #7a6a84;
    font-size: 12px;
}

.weblazem-proposal-detail__intro {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 12px;
    background: #f7f0fb;
    color: #4b5563;
    line-height: 1.8;
    white-space: pre-wrap;
}

.weblazem-proposal-detail__items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.weblazem-proposal-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #efe4f4;
    background: #fff;
}

.weblazem-proposal-line strong {
    display: block;
    color: #2d1a36;
    margin-bottom: 4px;
}

.weblazem-proposal-line p {
    margin: 0;
    color: #7a6a84;
    font-size: 13px;
    line-height: 1.6;
}

.weblazem-proposal-line > span {
    flex-shrink: 0;
    color: #4f1e60;
    font-weight: 800;
    font-size: 13px;
}

.weblazem-proposal-detail__totals {
    border-radius: 14px;
    background: linear-gradient(135deg, #4f1e60 0%, #6b2d82 100%);
    color: #fff;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.weblazem-proposal-detail__totals > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    opacity: 0.92;
}

.weblazem-proposal-detail__totals > div.is-total {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    opacity: 1;
}

.weblazem-proposal-detail__totals > div.is-total strong {
    color: #f5c518;
}

.weblazem-proposal-detail__terms {
    margin-bottom: 18px;
}

.weblazem-proposal-detail__terms h3 {
    margin: 0 0 8px;
    color: #4f1e60;
    font-size: 15px;
}

.weblazem-proposal-detail__terms > div {
    white-space: pre-wrap;
    color: #5b4a66;
    font-size: 13px;
    line-height: 1.8;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fcfafd;
    border: 1px solid #efe4f4;
}

.weblazem-proposal-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.weblazem-proposal-detail__actions .weblazem-ticket-btn--ghost,
.weblazem-proposal-detail__actions .weblazem-ticket-btn--primary,
.weblazem-proposal-detail__actions .weblazem-ticket-btn--accent {
    width: auto;
}

.weblazem-proposal-changes {
    border: 1px dashed #c9a9d8;
    border-radius: 14px;
    padding: 14px;
    background: #fbf7fd;
    margin-bottom: 12px;
}

.weblazem-proposal-changes label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #4f1e60;
}

.weblazem-proposal-changes textarea {
    width: 100%;
    border: 1px solid #dccfe4;
    border-radius: 12px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    margin-bottom: 10px;
}

.weblazem-proposal-changes__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weblazem-proposal-changes__actions .weblazem-ticket-btn {
    width: auto;
    min-width: 140px;
}

.weblazem-project-progress {
    height: 8px;
    border-radius: 999px;
    background: #efe4f4;
    overflow: hidden;
    margin: 8px 0;
}

.weblazem-project-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4f1e60, #f5c518);
}

.weblazem-project-progress--lg {
    height: 12px;
    margin: 0;
}

.weblazem-account-block--projects {
    margin-bottom: 20px;
}

.weblazem-project-detail {
    display: grid;
    gap: 22px;
}

.weblazem-project-detail__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.weblazem-project-detail__code {
    margin: 0 0 6px;
    color: #7a6a82;
    font-size: 0.9rem;
}

.weblazem-project-detail__meta {
    margin: 8px 0 0;
    color: #6b5a72;
}

.weblazem-project-detail__progress-wrap {
    display: grid;
    gap: 10px;
}

.weblazem-project-detail__progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.weblazem-project-detail__section-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.weblazem-project-stages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-right: 2px solid #efe4f4;
}

.weblazem-project-stages__item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    position: relative;
    padding: 0 0 18px 0;
    margin-right: -10px;
}

.weblazem-project-stages__item:last-child {
    padding-bottom: 0;
}

.weblazem-project-stages__dot {
    width: 14px;
    height: 14px;
    margin-top: 4px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #c9b4d4;
    box-shadow: 0 0 0 4px #fff;
}

.weblazem-project-stages__item.is-done .weblazem-project-stages__dot {
    background: #4f1e60;
    border-color: #4f1e60;
}

.weblazem-project-stages__body strong {
    display: block;
    margin-bottom: 4px;
}

.weblazem-project-stages__date {
    display: block;
    color: #7a6a82;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.weblazem-project-stages__note {
    margin: 0;
    color: #5a4a62;
    font-size: 0.92rem;
    line-height: 1.6;
}

.weblazem-project-detail__files {
    display: grid;
    gap: 10px;
}

.weblazem-account-card__actions {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .weblazem-ticket-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .weblazem-ticket-grid {
        grid-template-columns: 1fr;
    }

    .weblazem-ticket-section__title {
        font-size: 22px;
    }

    .weblazem-ticket-chat__bubble {
        max-width: 92%;
    }

    .weblazem-ticket-cta {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
    }

    .weblazem-ticket-cta__btn {
        width: 100%;
        justify-content: center;
    }

    .weblazem-account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weblazem-account-overview-grid {
        grid-template-columns: 1fr;
    }

    .weblazem-account-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .weblazem-account-tab {
        flex-shrink: 0;
    }

    .weblazem-proposal-line {
        flex-direction: column;
    }

    .weblazem-proposal-detail__actions {
        flex-direction: column;
    }

    .weblazem-proposal-detail__actions .weblazem-ticket-btn {
        width: 100%;
    }
}
