:root {
    --account-primary: #0063ae;
    --account-primary-hover: #00528f;
    --account-border: #e8e8e8;
    --account-muted: #7b8490;
    --account-danger: #c83d32;
    --account-surface: #ffffff;
}

@font-face {
    font-family: 'Ploni';
    src: url('/css/fonts/ploni-regular-aaa.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ploni';
    src: url('/css/fonts/ploni-demibold-aaa.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ploni';
    src: url('/css/fonts/ploni-demibold-aaa.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.account-page-subject,
.account-modern-page,
.account-modern-page button,
.account-modern-page input,
.account-modern-page select,
.account-modern-page textarea {
    font-family: 'Ploni', Arial, sans-serif;
}

body {
    background: #f7f7f7;
}

.account-modern-page {
    padding-top: 1em;
}

.account-modern-card {
    overflow: hidden;
    margin-bottom: 32px;
    padding: 0 32px 28px;
    background: var(--account-surface);
    border: 1px solid #f0f0f0;
    border-radius: 9px;
    box-shadow: 0 2px 10px rgba(21, 45, 72, 0.03);
}

.account-tabs {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 22px;
    min-height: 54px;
    margin-bottom: 32px;
    border-bottom: 1px solid #ededed;
}

.account-tab-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 11px;
    color: #6f7883;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.account-tab-link:hover,
.account-tab-link:focus {
    color: #111;
    text-decoration: none;
}

.account-tab-link.active {
    color: #111;
    font-weight: 700;
}

.account-tab-link.active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: #111;
    content: '';
}

.account-tab-link.is-disabled {
    cursor: default;
}

.account-profile-pane {
    direction: rtl;
    max-width: 930px;
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

.account-field-row {
    display: grid;
    grid-template-columns: minmax(230px, 310px) minmax(260px, 356px);
    align-items: center;
    justify-content: start;
    gap: 34px;
    margin-bottom: 24px;
}

.account-field-row > label,
.account-logo-label > span {
    margin: 0;
    color: #252525;
    font-weight: 700;
    text-align: right;
}

.account-field-row .form-control {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 7px 12px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #fff;
    font-size: 1rem;
    text-align: right;
    box-shadow: none;
}

.account-field-row .form-control:focus {
    border-color: #6aa7d2;
    box-shadow: 0 0 0 3px rgba(0, 99, 174, 0.1);
}

.account-field-row .account-ltr-field {
    direction: ltr;
    text-align: left;
}

.account-logo-row {
    align-items: start;
    margin-top: 30px;
    margin-bottom: 24px;
}

.account-logo-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-logo-label small {
    color: var(--account-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.account-logo-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 86px;
    overflow: hidden;
    padding: 8px;
    border: 1px solid var(--account-border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.account-logo-preview:hover,
.account-logo-preview:focus {
    border-color: #9bc0da;
    box-shadow: 0 0 0 3px rgba(0, 99, 174, 0.08);
}

.account-logo-preview img {
    display: block;
    width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.account-logo-empty {
    color: #9aa4b2;
    font-size: 1.45rem;
}

.account-logo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-btn-outline,
.account-btn-danger-outline {
    padding: 6px 12px;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.account-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 77px;
    color: var(--account-primary);
    border: 1px solid var(--account-primary);
}

.account-btn-outline:hover,
.account-btn-outline:focus {
    color: #fff;
    background: var(--account-primary);
}

.account-btn-danger-outline {
    color: var(--account-danger);
    border: 1px solid #d66b63;
}

.account-btn-danger-outline:hover,
.account-btn-danger-outline:focus {
    color: #fff;
    background: var(--account-danger);
}

.account-save-bar {
    margin-top: 24px;
    padding-top: 24px;
    text-align: center;
    border-top: 1px solid #ededed;
}

.account-save-button {
    width: 200px;
    min-height: 46px;
    color: #fff;
    border: 1px solid var(--account-primary);
    border-radius: 6px;
    background: var(--account-primary);
    font-size: 1.05rem;
}

.account-save-button:hover,
.account-save-button:focus {
    color: #fff;
    background: var(--account-primary-hover);
}

.account-save-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.account-save-loading .spinner-border {
    margin-left: 7px;
}

.account-trial-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 16px;
    color: #6d4b00;
    border: 1px solid #f0d796;
    border-radius: 8px;
    background: #fff9e9;
}

.account-trial-notice a {
    margin-right: auto;
    color: var(--account-primary);
    text-decoration: underline;
}

.account-invoices-pane {
    direction: rtl;
    text-align: right;
    padding-bottom: 10px;
}

.account-invoices-help {
    margin: 0 0 16px;
    color: #5f6c7b;
    font-size: 14px;
    line-height: 1.5;
}

.account-invoices-filter {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 12px;
}

.account-invoice-date-field {
    width: 180px;
}

.account-invoices-pane .form-control {
    height: 34px;
    border: 1px solid #d8dee7;
    border-radius: 6px;
    background: #fff;
    color: #52606f;
    font-size: 14px;
    text-align: right;
}

.account-invoices-pane .form-control::placeholder {
    color: #6d7885;
    opacity: 1;
}

.account-invoice-filter-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.account-invoice-search {
    min-height: 34px;
    padding: 5px 11px;
    color: var(--account-primary);
    background: #fff;
    border: 1px solid var(--account-primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.account-invoice-search:hover,
.account-invoice-search:focus {
    color: #fff;
    background: var(--account-primary);
}

.account-invoice-reset {
    min-height: 34px;
    padding: 5px 10px;
    color: #697582;
    border: 1px solid #d8dee7;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
}

.account-invoice-reset:hover,
.account-invoice-reset:focus {
    color: #33475b;
    border-color: #bcc8d5;
    background: #f3f6f9;
}

.account-invoice-empty {
    padding: 28px 18px;
    border: 1px solid var(--account-border);
    border-radius: 8px;
    color: #636d78;
    text-align: center;
}

.account-invoices-table-wrap {
    margin-top: 4px;
}

.account-invoices-table-wrap .dataTables_wrapper {
    direction: rtl;
    color: #687583;
    font-size: 14px;
}

.account-invoices-dt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    margin: 0 0 2px;
}

.account-invoices-table-wrap .dataTables_length {
    float: none;
    margin: 0;
    color: #687583;
}

.account-invoices-table-wrap .dataTables_length select {
    display: inline-block;
    width: auto;
    height: 32px;
    margin: 0 5px;
    padding: 3px 24px 3px 8px;
    color: #435262;
    border: 1px solid #d8dee7;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
}

.account-invoices-dt-bottom {
    display: block;
    padding-top: 6px;
}

.account-invoices-table-wrap .dataTables_info,
.account-invoices-table-wrap .dataTables_paginate {
    float: none;
    margin: 0;
    color: #687583;
}

.account-invoices-table-wrap .dataTables_paginate .pagination {
    justify-content: flex-start;
    margin: 0;
}

.account-invoices-table-wrap .page-link {
    min-width: 34px;
    padding: 5px 9px;
    color: var(--account-primary);
    border-color: #d8dee7;
    background: #fff;
    font-size: 14px;
    text-align: center;
}

.account-invoices-table-wrap .page-item.active .page-link {
    color: #fff;
    border-color: var(--account-primary);
    background: var(--account-primary);
}

.account-invoices-table-wrap .page-item.disabled .page-link {
    color: #a3acb6;
    background: #f8fafc;
}

.account-invoices-pane .invoice-results-table {
    margin: 0;
    border-collapse: collapse;
    color: #2e3540;
    font-size: 16px;
    line-height: 24px;
}

.account-invoices-pane .invoice-results-table th,
.account-invoices-pane .invoice-results-table td {
    padding: 17px 14px;
    vertical-align: middle;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    background: transparent;
    white-space: nowrap;
}

.account-invoices-pane .invoice-results-table th {
    color: #15191e;
    font-weight: 700;
}

/* Keep the invoice grid independent of the global DataTables row height. */
.account-invoices-pane .invoice-results-table.dataTable thead th {
    padding: 8px 14px;
}

/* Reserve room for the pair of sort arrows beside the Hebrew heading. */
.account-invoices-pane .invoice-results-table.dataTable thead .sorting,
.account-invoices-pane .invoice-results-table.dataTable thead .sorting_asc,
.account-invoices-pane .invoice-results-table.dataTable thead .sorting_desc {
    padding-right: 40px;
}

.account-invoices-pane .invoice-results-table.dataTable tbody td {
    height: auto;
    min-height: 0;
    padding: 16.5px 14px;
}

/* DataTables positions both sorting arrows from the bottom by default. */
.account-invoices-pane .invoice-results-table.dataTable thead .sorting::before,
.account-invoices-pane .invoice-results-table.dataTable thead .sorting::after,
.account-invoices-pane .invoice-results-table.dataTable thead .sorting_asc::before,
.account-invoices-pane .invoice-results-table.dataTable thead .sorting_asc::after,
.account-invoices-pane .invoice-results-table.dataTable thead .sorting_desc::before,
.account-invoices-pane .invoice-results-table.dataTable thead .sorting_desc::after {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.account-invoices-pane .invoice-results-table tbody tr:hover td {
    background: #f8fbfe;
}

.account-invoices-pane .invoice-results-table a {
    color: var(--account-primary);
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
}

.account-invoices-pane .invoice-results-table a:hover,
.account-invoices-pane .invoice-results-table a:focus {
    color: var(--account-primary-hover);
}

.account-invoice-download {
    width: 68px;
    text-align: center;
}

.account-invoices-pane .invoice-results-table th.no-sort {
    width: 68px;
    text-align: center;
}

.account-payment-pane {
    direction: rtl;
    max-width: none;
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

.account-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.account-plan-card,
.account-monthly-summary {
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
}

.account-plan-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 340px;
    padding: 20px 22px;
    text-align: center;
}

.account-plan-heading {
    min-height: 95px;
}

.account-plan-name {
    color: #171717;
    font-size: 1.38rem;
    font-weight: 700;
}

.account-current-badge {
    display: inline-block;
    margin-right: 9px;
    padding: 3px 8px;
    color: #27885e;
    border-radius: 6px;
    background: #e8f6ee;
    font-size: 0.76rem;
    font-weight: 700;
}

.account-plan-heading p {
    margin: 9px auto 0;
    color: #4f5660;
    font-size: 0.9rem;
    line-height: 1.55;
}

.account-plan-price {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 22px;
}

.account-plan-price strong {
    color: #171717;
    font-size: 2.15rem;
    font-weight: 400;
    line-height: 1;
}

.account-plan-price > span {
    color: #555d66;
    font-size: 0.86rem;
}

.account-template-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 244px;
    max-width: 100%;
    min-height: 42px;
    margin: 0 auto 34px;
    padding: 0 7px;
    border: 1px solid #e7e7e7;
    border-radius: 7px;
    color: #30343a;
    font-size: 0.9rem;
}

.account-quantity-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #8b9299;
    border: 0;
    background: transparent;
    font-size: 0.8rem;
}

.account-quantity-button:hover,
.account-quantity-button:focus {
    color: #30343a;
    background: #f3f5f6;
}

.account-quantity-button:disabled {
    color: #c7cdd3;
    cursor: default;
    background: transparent;
}

.account-plan-action {
    width: 100%;
    min-height: 38px;
    margin-top: auto;
    padding: 7px 20px;
    color: #fff;
    border: 1px solid var(--account-primary);
    border-radius: 6px;
    background: var(--account-primary);
}

.account-plan-action:hover,
.account-plan-action:focus {
    color: #fff;
    background: var(--account-primary-hover);
}

.account-plan-action:disabled {
    color: #fff;
    border-color: #a8c8df;
    background: #a8c8df;
    cursor: default;
    opacity: 1;
}

.account-monthly-summary {
    display: flex;
    flex-direction: column;
    align-self: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 178px;
    margin: 0;
    padding: 16px 18px;
    gap: 12px;
    border-radius: 14px;
}

.account-monthly-summary h3 {
    margin: 0 0 2px;
    color: #252525;
    font-size: 1rem;
    font-weight: 600;
}

.account-payment-actions h3 {
    margin: 0 0 14px;
    color: #252525;
    font-size: 1rem;
    font-weight: 700;
}

.account-summary-row,
.account-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.account-summary-row {
    padding: 0;
    color: #2c3e50;
    border: 0;
    background: transparent;
    font-size: 14px;
    line-height: 21px;
    text-align: right;
}

.account-summary-divider { height: 1px; margin: -2px 0; background: #e6e6e6; }

.account-summary-features-toggle { width: 100%; cursor: pointer; }
.account-summary-features-toggle:hover,
.account-summary-features-toggle:focus { color: var(--account-primary); outline: 0; }
.account-summary-features-toggle .bi-chevron-down { display: inline-block; margin-right: 4px; font-size: 11px; transition: transform .18s ease; }
.account-summary-features-toggle .bi-chevron-down.is-open { transform: rotate(180deg); }
.account-summary-muted { color: #7f8893; }
.account-summary-features-list { margin-top: -4px; padding-right: 18px; }
.account-summary-feature-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; color: #5d6874; font-size: 13px; line-height: 1.4; }
.account-summary-feature-row strong { color: #303841; white-space: nowrap; }
.account-summary-empty { color: #7a838d; font-size: 13px; }

.account-summary-row > strong {
    color: #222;
    white-space: nowrap;
}

.account-summary-total {
    margin-top: 0;
    padding-top: 12px;
    color: #202020;
    border-top: 1px solid #e6e6e6;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
}

.account-summary-total strong {
    color: #222;
    font-size: 14px;
    font-weight: 600;
}

.account-payment-actions {
    margin-top: 28px;
}

.account-payment-actions > div {
    padding: 22px 0 30px;
    border-top: 1px solid #e7e7e7;
}

.account-payment-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    color: var(--account-primary);
    border: 1px solid var(--account-primary);
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
}

.account-payment-link:hover,
.account-payment-link:focus {
    color: #fff;
    background: var(--account-primary);
    text-decoration: none;
}

.account-cancel-area {
    padding-right: 0;
}

.account-cancel-button {
    min-width: 130px;
    color: var(--account-danger);
    border: 1px solid #d66b63;
    border-radius: 6px;
    background: #fff;
}

.account-cancel-button:hover,
.account-cancel-button:focus {
    color: #fff;
    background: var(--account-danger);
}

.account-features-pane { direction: rtl; min-height: 430px; color: #20242a; text-align: right; }
.account-feature-lobby { display: block; }
.account-feature-filters { display: flex; align-items: center; flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: -16px; margin-bottom: 14px; padding: 0 0 14px; border-bottom: 1px solid #eef2f7; }
.account-feature-filters button { padding: 9px 14px; color: #2c3e50; border: 0; border-radius: 8px; background: transparent; font-size: 14.5px; font-weight: 600; line-height: 1.5; text-align: center; }
.account-feature-filters button:hover,
.account-feature-filters button:focus,
.account-feature-filters button.active { color: var(--account-primary); background: #eef4fb; }
.account-feature-group { margin-bottom: 29px; }
.account-feature-group > h2 { margin: 0 0 18px; padding-bottom: 8px; color: #1a1a1a; border-bottom: 1px solid #e6e6e6; font-size: 19.2px; font-weight: 700; line-height: 1.2; }
.account-features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.account-feature-card { display: flex; flex-direction: column; gap: 10px; min-height: 208px; padding: 18px; color: #000; border: 2px solid #e8e8e8; border-radius: 14px; background: #fff; font-size: 16px; line-height: 1.5; text-align: right; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.account-feature-card:hover,
.account-feature-card:focus { border-color: #b9d3e5; outline: 0; box-shadow: 0 7px 22px rgba(24, 62, 91, .09); transform: translateY(-2px); }
.account-feature-card.is-active { border-color: #e8e8e8; }
.account-feature-card-top,
.account-feature-card-foot { display: flex; align-items: center; justify-content: space-between; }
.account-feature-icon,
.account-feature-detail-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; overflow: hidden; color: #236cc0; border: 2px solid #236cc0; border-radius: 11px; background: transparent; font-size: 22px; line-height: 1; }
.account-feature-icon.is-green,
.account-feature-detail-icon.is-green { color: #1e8a4c; border-color: #2fa35c; background: #e6f6ec; }
.account-feature-icon.is-teal,
.account-feature-detail-icon.is-teal { color: #087f8c; border-color: #2499a5; background: #e7f7f8; }
.account-feature-icon img,
.account-feature-detail-icon img { display: block; width: 38px; height: 38px; object-fit: contain; }
.account-feature-status { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 18px; }
.account-feature-status.on,
.account-feature-active-chip { color: #137a3e; background: #e6f6ec; }
.account-feature-status.off { color: #6b7684; background: #f1f3f6; }
.account-feature-name { display: block; margin-top: 0; color: #1a1a1a; font-size: 16px; font-weight: 700; line-height: 24px; }
.account-feature-description { display: -webkit-box; min-height: 38px; margin-top: -5px; overflow: hidden; color: #66707d; font-size: 13px; font-weight: 400; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.account-feature-card-foot { gap: 10px; min-height: 32px; margin-top: auto; padding-top: 0; color: #000; font-size: 16px; }
.account-feature-price { color: #2c3e50; font-size: 17px; font-weight: 700; line-height: 1.5; }
.account-feature-price.is-free { color: #137a3e; }
.account-feature-period { color: #66707d; font-size: 13px; font-weight: 400; line-height: 1.5; }
.account-feature-open { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; color: #fff; border: 1px solid var(--account-primary); border-radius: 6px; background: var(--account-primary); font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.account-feature-card-foot .account-feature-open { margin-right: auto; }
.account-feature-empty,
.account-feature-no-results { padding: 38px 20px; color: #69727d; border: 1px solid var(--account-border); border-radius: 9px; text-align: center; }
.account-feature-details { width: 100%; margin: 0 auto; text-align: right; }
.account-feature-back { display: flex; align-items: center; gap: 7px; width: 100%; margin: -16px 0 24px; padding: 4px 0 12px; color: var(--account-primary); border: 0; border-bottom: 1px solid #e4e4e4; background: transparent; font-size: 15px; line-height: 1.5; font-weight: 600; text-align: right; }
.account-feature-back:hover,
.account-feature-back:focus { color: var(--account-primary); }
.account-feature-detail { max-width: 75%; background: #fff; }
.account-feature-detail-header { display: flex; align-items: flex-start; gap: 16px; padding: 0 0 20px; border-bottom: 1px solid #eceef0; }
.account-feature-detail .account-feature-detail-icon { width: 48px; height: 48px; color: #236cc0; border: 2px solid #236cc0; border-radius: 12px; background: #fff; font-size: 24px; }
.account-feature-detail .account-feature-detail-icon.is-green { color: #1e8a4c; border-color: #2fa35c; background: #e6f6ec; }
.account-feature-detail-icon img { width: 38px; height: 38px; }
.account-feature-detail-header h2 { margin: 0; color: #1a1a1a; font-size: 22px; font-weight: 700; line-height: 1.2; }
.account-feature-detail-header p { margin: 0; color: #5a6572; font-size: 15px; line-height: 1.5; }
.account-feature-detail-price { display: inline-flex; align-items: baseline; gap: 5px; margin-top: 12px; color: #1a1a1a; font-size: 26px; font-weight: 400; line-height: 1; }
.account-feature-detail-period { font-size: 16px; line-height: 1.5; }
.account-feature-active-chip { display: inline-block; margin-right: 9px; padding: 4px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.account-feature-detail-body { padding: 22px 0 0; }
.account-feature-long-copy { color: #4a5560; font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; }
.account-feature-long-copy p:first-child { margin-top: 0; }
.account-feature-long-copy p { margin-bottom: 20px; }
.account-feature-long-copy img { max-width: 100%; height: auto; }
.account-feature-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 26px 0; padding: 16px 20px; border: 1px solid #e3e8ef; border-radius: 10px; background: #f6f8fb; }
.account-feature-links { display: flex; flex-wrap: wrap; gap: 10px; }
.account-feature-links a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 10px 20px; color: var(--account-primary); border: 1px solid var(--account-primary); border-radius: 6px; background: #fff; font-size: 15px; line-height: 1.3; font-weight: 600; text-decoration: none; }
.account-feature-links a.account-feature-video { color: #38845f; border-color: #38845f; }
.account-feature-links a:hover { background: #eef5fc; }
.account-feature-links a.account-feature-video:hover { background: #edf7f1; }
.account-feature-controls { display: flex; flex-direction: column; align-items: stretch; margin-right: auto; max-width: 100%; }
.account-feature-controls label { display: block; margin-bottom: 8px; font-weight: 700; }
.account-feature-controls .form-control { width: 100%; height: 42px; margin-bottom: 14px; border: 1px solid #dadddf; border-radius: 6px; }
.account-feature-request-note { margin: 0 0 14px; color: #6a737d; font-size: .84rem; line-height: 1.5; }
.account-feature-action,
.account-feature-package-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 41px; padding: 10px 20px; border-radius: 6px; font-size: 15px; line-height: 1.3; font-weight: 600; }
.account-feature-action-price { color: #cde4f4; font-weight: 600; }
.account-feature-action { color: #fff; border: 1px solid var(--account-primary); background: var(--account-primary); }
.account-feature-action:hover,
.account-feature-action:focus { background: var(--account-primary-hover); }
.account-feature-action.is-cancel { color: #b33d36; border-color: #d9a29e; background: #fff; }
.account-feature-controls.account-sms-active-controls { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; }
.account-sms-active-controls .account-feature-action { width: auto; }
.account-sms-active-controls .account-feature-action.is-cancel { color: #fff; border-color: #c73527; background: #c73527; }
.account-sms-active-controls .account-feature-action.is-cancel:hover { background: #ad2e22; border-color: #ad2e22; }
.account-sms-usage { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 10px 20px; border: 1px solid #13852e; border-radius: 6px; background: #fff; color: #13852e; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.account-sms-usage:hover, .account-sms-usage:focus { color: #13852e; background: #edf7f1; text-decoration: none; }
.account-feature-package-action { margin-top: 9px; color: var(--account-primary); border: 1px solid #a8c9df; background: #fff; }
.account-feature-action:disabled,
.account-feature-package-action:disabled { cursor: wait; opacity: .65; }

.account-feature-package-picker { width: min(100%, 350px); margin: 20px 0; }
.account-feature-package-picker:not(:has(select)) { display: none; }
.account-feature-package-picker label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.account-feature-package-picker .form-select { height: 42px; border: 1px solid #dadddf; border-radius: 6px; }
.account-sms-sender { margin: 20px 0; font-size: 15px; }
.account-sms-sender label { display: block; margin-bottom: 8px; font-weight: 600; }
.account-sms-sender-row { display: flex; align-items: center; gap: 10px; max-width: 400px; }
.account-sms-sender-row input { min-width: 0; height: 42px; }
.account-sms-sender small { display: block; margin-top: 4px; color: #6c757d; }
.account-sms-sender > a { display: inline-block; margin-top: 12px; color: #0063ae; }
.account-sender-modal-input { display: block; width: 100%; height: 44px; margin: 22px 0 22px; padding: 10px 14px; border: 1px solid #ced4da; border-radius: 5px; font-family: inherit; font-size: 16px; text-align: left; }
.account-sender-modal-input:focus { outline: 0; border-color: #80bdff; box-shadow: 0 0 0 4px rgba(0,123,255,.25); }
.account-sender-modal-note { margin: 0; color: #65758a; font-size: 14px; line-height: 1.5; text-align: right; }
.swal2-container.afc-overlay { padding: 72px 20px 20px; background: rgba(0,0,0,.5); }
.swal2-popup.afc-popup { direction: rtl; padding: 0; border-radius: 6px; font-family: 'Ploni', Arial, sans-serif; text-align: right; color: #212529; }
.afc-popup button { font-family: inherit; }
.afc-popup .afc-title { margin: 0; padding: 18px 24px; padding-left: 58px; border-bottom: 1px solid #dee2e6; color: #0063ae; font-size: 28px; font-weight: 500; line-height: 1.3; text-align: right; }
.afc-popup .afc-close { position: absolute; top: 20px; left: 24px; right: auto; width: 20px; height: 30px; padding: 0; color: #6c757d; font-size: 30px; font-weight: 300; line-height: 1; }
.afc-popup .afc-content { margin: 0; padding: 24px; font-size: 16px; line-height: 1.6; text-align: right; color: #212529; }
.afc-body { margin: 0; }
.account-api-credentials { display: grid; gap: 14px; margin-top: 18px; text-align: right; }
.account-api-credential > label { display: block; margin-bottom: 5px; color: #33475b; font-weight: 700; direction: ltr; text-align: left; }
.account-api-credential > div { display: flex; gap: 8px; direction: ltr; }
.account-api-credential input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 7px 10px; color: #1f2933; border: 1px solid #b9c7d4; border-radius: 5px; background: #fff; font-family: monospace; font-size: 14px; }
.account-api-credential button { flex: 0 0 auto; padding: 7px 13px; color: #0063ae; border: 1px solid #0063ae; border-radius: 5px; background: #fff; font-size: 14px; font-weight: 600; }
.account-api-credential button:hover { color: #fff; background: #0063ae; }
.afc-popup .afc-actions { justify-content: flex-end; width: 100%; margin: 0; padding: 16px 24px; gap: 16px; border-top: 1px solid #dee2e6; }
.afc-confirm, .afc-cancel { margin: 0; border-radius: 5px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.afc-confirm { padding: 7px 16px; border: 1px solid #3d8159; background: #3d8159; color: #fff; font-weight: 600; }
.afc-confirm.is-cancel { background: #c73527; border-color: #c73527; }
.afc-cancel { padding: 10px 4px; border: 0; background: transparent; color: #212529; }
.afc-popup button:focus-visible { outline: 2px solid #0063ae; outline-offset: 3px; }
.afc-bill { margin-top: 18px; padding: 14px 16px; border: 1px solid #e8eef5; border-radius: 12px; background: #f7f9fc; }
.afc-bill-title { margin-bottom: 10px; color: #1b3e73; font-size: 15px; font-weight: 700; line-height: 1.5; }
.afc-line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; color: #2c3e50; font-size: 15px; line-height: 1.5; }
.afc-line > span:last-child, .afc-total > span:last-child { white-space: nowrap; }
.afc-group { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; margin-top: 4px; padding: 8px 0 4px; border: 0; border-top: 1px solid #e8eef5; background: transparent; color: #1a1a1a; font-size: 16px; font-weight: 700; line-height: 1.5; }
.afc-group > span:first-child { display: flex; align-items: center; gap: 7px; }
.afc-group em { padding: 1px 8px; border-radius: 100px; color: #1b3e73; background: #e9eef6; font-size: 12px; font-style: normal; }
.afc-group i { color: #8a94a3; font-size: 12px; }
.afc-sub { padding-right: 14px; color: #5a6572; }
.afc-sub.is-new { color: #137a3e; font-weight: 600; }
.afc-sub em { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 100px; color: #137a3e; background: #e6f6ec; font-size: 12px; font-style: normal; line-height: 1.2; }
.afc-sub.is-cancelled { color: #6c7785; text-decoration: line-through; }
.afc-sub.is-cancelled em { color: #c73527; background: #fff0ee; text-decoration: none; }
.afc-total { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid #e8eef5; color: #1a1a1a; font-size: 15px; font-weight: 700; }
@media (max-width: 540px) { .swal2-container.afc-overlay { padding: 20px 10px; } .afc-popup .afc-content { padding: 20px 16px; } }

@media (max-width: 767.98px) {
    .account-guide-wrap {
        text-align: right !important;
    }

    .account-modern-card {
        padding: 0 12px 22px;
        border-radius: 8px;
    }

    .account-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 15px;
        padding-top: 14px;
    }

    .account-tab-link {
        padding-right: 4px;
        padding-left: 4px;
        font-size: 0.94rem;
    }

    .account-field-row {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-bottom: 22px;
    }

    .account-field-row .form-control {
        height: 40px;
    }

    .account-logo-controls {
        flex-wrap: wrap;
    }

    .account-trial-notice {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .account-trial-notice a {
        margin-right: 0;
    }

    .account-plans-grid {
        grid-template-columns: 1fr;
        justify-items: start;
        align-items: start;
        gap: 20px;
    }

    .account-plan-card {
        max-width: 352px;
        min-height: 330px;
        padding: 18px 22px;
    }

    .account-monthly-summary {
        width: 332px;
        max-width: 100%;
        min-height: 164px;
        margin-right: 0;
    }

    .account-cancel-area {
        padding-right: 0;
        border-right: 0;
    }

    .account-feature-filters { flex-direction: row; flex-wrap: wrap; gap: 5px; margin-bottom: 22px; }
    .account-feature-filters button { padding: 9px 11px; }
    .account-features-grid { grid-template-columns: 1fr; }
    .account-feature-card { min-height: 205px; }
    .account-feature-detail { max-width: 100%; }
    .account-feature-detail-header { gap: 12px; padding: 0 0 20px; }
    .account-feature-detail-body { padding: 24px 0 0; }
    .account-feature-toolbar { padding: 18px; margin-top: 28px; }
    .account-feature-links, .account-feature-controls { width: 100%; }
    .account-feature-links a { flex: 1 1 auto; }
}

@media (max-width: 420px) {
    .account-tabs {
        justify-content: flex-start;
    }

    .account-logo-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-plan-card,
    .account-monthly-summary {
        width: 100%;
    }

    .account-feature-filters button {
        padding: 8px 9px;
        font-size: 0.82rem;
    }

    .account-feature-card {
        padding: 14px;
    }
}
