.account-row-uploading {
        opacity: 0.72;
    }

    .account-row-uploading .account-pill {
        background: rgba(68, 140, 255, 0.12);
        color: #3c6fdc;
    }

    .account-summary-card--user {
        display: grid;
        gap: 8px;
        align-content: start;
    }

    .account-summary-inline {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 2px;
    }

    .account-summary-inline__meta {
        color: #6980a8;
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .account-summary-inline__dot {
        display: inline-block;
        margin: 0 6px;
    }

    .account-balance-button {
        min-height: 36px;
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .account-summary-card--email {
        display: grid;
        gap: 10px;
        align-content: start;
    }

    .account-email-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 2px;
    }

    .account-password-button,
    .account-delete-account-button {
        justify-self: start;
        min-height: 36px;
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .account-password-button {
        border-color: rgba(112, 76, 255, 0.18);
        color: #4d3acb;
        background: rgba(247, 245, 255, 0.92);
    }

    .account-password-button:hover {
        border-color: rgba(112, 76, 255, 0.34);
        background: #f2efff;
    }

    .account-delete-account-button {
        border-color: rgba(222, 75, 95, 0.22);
        color: #b4233c;
        background: rgba(255, 245, 247, 0.9);
    }

    .account-delete-account-button:hover {
        border-color: rgba(222, 75, 95, 0.38);
        background: #fff1f3;
    }

    .account-password-form {
        display: grid;
        gap: 14px;
        margin-top: 18px;
    }

    .account-password-field {
        display: grid;
        gap: 8px;
    }

    .account-password-field span {
        color: #44557d;
        font-size: 0.92rem;
        font-weight: 700;
    }

    .account-password-field input {
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
        border: 1px solid rgba(146, 162, 198, 0.34);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.96);
        color: #243559;
        font-size: 1rem;
        font-weight: 600;
    }

    .account-password-rules {
        padding: 14px 16px;
        border: 1px solid rgba(146, 162, 198, 0.22);
        border-radius: 16px;
        background: rgba(248, 250, 255, 0.96);
        color: #5f6f93;
        line-height: 1.55;
    }

    .account-password-status {
        min-height: 20px;
        margin: 0;
        color: #b4233c;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .account-password-status.is-valid {
        color: #218058;
    }

    .account-password-confirm:disabled {
        cursor: not-allowed;
        opacity: 0.45;
        box-shadow: none;
    }

    .account-deletion-terms {
        display: grid;
        gap: 10px;
        margin: 18px 0 0;
        padding: 16px 18px;
        border: 1px solid rgba(222, 75, 95, 0.18);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255, 248, 249, 0.98), rgba(255, 255, 255, 0.98));
        color: #5f6f93;
    }

    .account-deletion-terms strong {
        color: #17284d;
    }

    .account-deletion-terms ul {
        margin: 0;
        padding-left: 18px;
    }

    .account-deletion-terms li + li {
        margin-top: 6px;
    }

    .account-deletion-consent {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-top: 18px;
        padding: 14px 16px;
        border: 1px solid rgba(146, 162, 198, 0.28);
        border-radius: 16px;
        background: rgba(248, 250, 255, 0.94);
        color: #39486b;
        font-size: 0.94rem;
        line-height: 1.5;
        cursor: pointer;
    }

    .account-deletion-consent input {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        accent-color: #704cff;
        flex: 0 0 auto;
    }

    .account-deletion-confirm:disabled {
        cursor: not-allowed;
        opacity: 0.45;
        box-shadow: none;
    }
    .account-topup-form {
        display: grid;
        gap: 16px;
    }

    .account-topup-field {
        display: grid;
        gap: 8px;
    }

    .account-topup-field span {
        color: #44557d;
        font-size: 0.92rem;
        font-weight: 700;
    }

    .account-topup-field input {
        width: 100%;
        min-height: 52px;
        padding: 0 16px;
        border: 1px solid rgba(146, 162, 198, 0.34);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.94);
        font-size: 1rem;
        font-weight: 600;
        color: #243559;
    }

    .account-topup-benefits {
        margin: 0;
        padding: 16px 18px;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(248, 250, 255, 0.94), rgba(255, 255, 255, 0.98));
        border: 1px solid rgba(146, 162, 198, 0.2);
        color: #62759f;
        line-height: 1.65;
    }

    .account-topup-benefits strong {
        display: block;
        margin-bottom: 8px;
        color: #253760;
        font-size: 1rem;
    }

    .account-topup-benefits ul {
        margin: 0;
        padding-left: 18px;
    }

    .account-topup-benefits li + li {
        margin-top: 6px;
    }

    .button-primary.is-disabled {
        pointer-events: none;
        opacity: 0.55;
    }

    .account-orders-switch {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .account-orders-switch .button-secondary.is-active,
    .account-orders-switch .button-primary.is-active {
        pointer-events: none;
    }

    .account-orders-panel[hidden] {
        display: none !important;
    }

    .account-orders-table td.account-col-status,
    .account-orders-table td.account-col-actions {
        vertical-align: middle;
    }

    .account-orders-table td.account-col-status,
    .account-orders-table td.account-col-actions,
    .account-orders-table td.account-col-price {
        text-align: left;
    }

    .account-status-cell {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .account-status-cell .account-table-button,
    .account-status-cell .account-pill-button {
        width: 100%;
        max-width: 238px;
    }

    .account-availability-note {
        display: block;
        margin-top: 8px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.35;
    }

    .account-payment-countdown {
        display: block;
        max-width: 238px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.35;
    }

    .account-payment-countdown.is-expired {
        color: #de4b5f;
    }

    .account-col-order {
        min-width: 260px;
    }

    .account-order-preview-link {
        position: relative;
        display: inline-block;
        width: 156px;
        max-width: 100%;
        margin-top: 10px;
        border-radius: 12px;
        line-height: 0;
        cursor: pointer;
    }

    .account-order-preview-link:hover .account-order-preview,
    .account-order-preview-link:focus-visible .account-order-preview {
        border-color: rgba(111, 74, 244, 0.72);
        box-shadow: 0 14px 30px rgba(73, 94, 139, 0.18);
    }

    .account-order-preview {
        display: block;
        width: 156px;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 12px;
        border: 1px solid rgba(146, 162, 198, 0.34);
        background: #f5f7fc;
        box-shadow: 0 10px 24px rgba(73, 94, 139, 0.12);
    }

    .account-order-preview-play {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 38px;
        height: 38px;
        transform: translate(-50%, -50%);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
    }

    .account-order-preview-play::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 52%;
        transform: translate(-40%, -50%);
        width: 0;
        height: 0;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        border-left: 14px solid #6f4af4;
    }

    .account-archive-col-created {
        width: 138px;
    }

    .account-archive-col-video {
        width: 170px;
    }

    .account-archive-col-executed {
        width: 156px;
    }

/* Account mobile layout */
@media (max-width: 900px) {
    body:has(.account-page) {
        min-width: 0;
        overflow-x: hidden;
    }

    .account-page {
        min-width: 0;
        padding: 14px;
    }

    .account-shell,
    .account-surface {
        width: 100%;
        min-width: 0;
    }

    .account-surface {
        padding: 14px;
        border-radius: 22px;
    }

    .account-page .site-nav {
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }

    .account-page .brand-mark {
        min-width: 0;
    }

    .account-page .brand-logo {
        max-width: 188px;
        height: auto;
    }

    .account-page .nav-links {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 8px;
        overflow: visible;
        padding-bottom: 0;
    }

    .account-page .nav-links a,
    .account-page .nav-button {
        min-height: 40px;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .account-page .nav-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 9px 10px;
        border: 1px solid rgba(146, 162, 198, 0.24);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.78);
    }

    .account-inline-form {
        margin-left: auto;
        flex: 0 0 auto;
    }

    .account-topbar {
        margin-top: 18px;
    }

    .account-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .account-summary-card,
    .account-guest-card,
    .account-orders-card,
    .account-empty-card {
        min-width: 0;
    }

    .account-summary-card strong,
    .account-file-name,
    .account-download-title,
    .account-download-link,
    .account-modal__dialog h2 {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .account-summary-inline,
    .account-email-actions,
    .account-actions,
    .account-order-actions,
    .account-orders-head,
    .account-orders-switch {
        align-items: stretch;
        flex-direction: column;
    }

    .account-balance-button,
    .account-password-button,
    .account-delete-account-button,
    .account-actions .button-primary,
    .account-actions .button-secondary,
    .account-orders-switch .button-primary,
    .account-orders-switch .button-secondary,
    .account-table-button,
    .account-pill-button {
        width: 100%;
        max-width: none;
        justify-content: center;
        text-align: center;
    }

    .account-orders-table {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .account-orders-table table,
    .account-orders-table thead,
    .account-orders-table tbody,
    .account-orders-table tr,
    .account-orders-table th,
    .account-orders-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .account-orders-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .account-orders-table tr {
        margin-bottom: 14px;
        padding: 14px;
        border: 1px solid rgba(146, 162, 198, 0.22);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 16px 36px rgba(54, 72, 112, 0.08);
    }

    .account-orders-table td {
        padding: 0;
        border: 0;
        text-align: left;
    }

    .account-orders-table td + td {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(225, 231, 247, 0.96);
    }

    .account-orders-table td::before {
        display: block;
        margin-bottom: 6px;
        color: #7283a8;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    [data-account-orders-panel="active"] .account-orders-table td:nth-child(1)::before { content: 'Order'; }
    [data-account-orders-panel="active"] .account-orders-table td:nth-child(2)::before { content: 'Price'; }
    [data-account-orders-panel="active"] .account-orders-table td:nth-child(3)::before { content: 'Status'; }
    [data-account-orders-panel="active"] .account-orders-table td:nth-child(4)::before { content: 'Actions'; }
    [data-account-orders-panel="archive"] .account-orders-table td:nth-child(1)::before { content: 'Order'; }
    [data-account-orders-panel="archive"] .account-orders-table td:nth-child(2)::before { content: 'Created'; }
    [data-account-orders-panel="archive"] .account-orders-table td:nth-child(3)::before { content: 'Video'; }
    [data-account-orders-panel="archive"] .account-orders-table td:nth-child(4)::before { content: 'Completed'; }
    [data-account-orders-panel="archive"] .account-orders-table td:nth-child(5)::before { content: 'Actions'; }

    .account-order-preview-link,
    .account-order-preview {
        width: min(100%, 240px);
    }

    .account-status-cell,
    .account-order-actions {
        width: 100%;
        max-width: none;
    }

    .account-payment-countdown,
    .account-availability-note {
        max-width: none;
    }

    .account-modal {
        align-items: stretch;
        padding: 0;
    }



    .account-modal__dialog,
    .account-modal__dialog-wide,
    .account-modal__dialog-order,
    .account-modal__dialog-download {
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        padding: 22px 16px 18px;
        border-radius: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .account-modal__close {
        position: sticky;
        top: 0;
        z-index: 3;
        margin-left: auto;
    }

    .account-modal__actions,
    .account-modal__actions-download {
        flex-direction: column;
        align-items: stretch;
    }

    .account-modal__actions .button-primary,
    .account-modal__actions .button-secondary,
    .account-modal__actions-download .button-primary,
    .account-modal__actions-download .button-secondary {
        width: 100%;
    }

    .account-password-form,
    .account-topup-form,
    .account-deletion-terms,
    .account-deletion-consent,
    .account-download-list,
    .account-download-item {
        min-width: 0;
    }

    .account-deletion-terms {
        padding: 14px 16px;
    }

    .account-deletion-consent {
        align-items: flex-start;
    }

    .account-download-details,
    .account-download-item,
    .account-download-header {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

    .account-download-link {
        white-space: normal;
    }

    .order-form,
    .order-form-layout,
    .order-form-row-3,
    .order-form-grid,
    .order-options-grid,
    .order-options-grid-3,
    .order-options-grid-stack,
    .order-calculator-grid,
    .order-calculator-grid-3 {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .order-form-layout,
    .order-form-row-3 {
        gap: 14px;
    }

    .order-form-section,
    .order-option-card,
    .order-file-upload,
    .order-calculator-panel,
    .order-price-panel {
        min-width: 0;
    }

    .order-option-card {
        align-items: flex-start;
        padding: 14px;
    }

    .order-option-card__copy,
    .order-option-card__copy strong,
    .order-option-card__copy small,
    .order-file-upload__name,
    .order-file-upload__meta {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .order-file-upload-wide {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .order-file-upload__button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .order-file-preview img {
        max-width: 100%;
        height: auto;
    }

    .order-calculator-grid-3 {
        grid-template-columns: 1fr;
    }

    .order-price-panel {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .order-price-box,
    .order-actions,
    .order-actions .button-primary,
    .order-actions .button-secondary {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .account-page {
        padding: 10px;
    }

    .account-surface {
        padding: 12px;
        border-radius: 18px;
    }

    .account-page .brand-logo {
        max-width: 166px;
    }

    .account-page .nav-links a,
    .account-page .nav-button,
    .account-balance-button,
    .account-password-button,
    .account-delete-account-button,
    .account-table-button,
    .account-pill-button {
        min-height: 42px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 0.86rem;
    }

    .account-summary-card,
    .account-guest-card,
    .account-orders-card,
    .account-empty-card,
    .account-orders-table tr {
        padding: 12px;
        border-radius: 16px;
    }

    .account-modal__dialog,
    .account-modal__dialog-wide,
    .account-modal__dialog-order,
    .account-modal__dialog-download {
        padding: 18px 12px 16px;
    }

    .account-modal__dialog h2 {
        font-size: 1.45rem;
    }

    .account-password-field input,
    .account-topup-field input,
    .order-field input,
    .order-field select,
    .order-field textarea {
        min-height: 46px;
        font-size: 16px;
    }

    .account-order-preview-link,
    .account-order-preview {
        width: 100%;
    }

    .order-form-section,
    .order-calculator-panel,
    .order-price-panel,
    .account-topup-benefits,
    .account-password-rules,
    .account-deletion-terms,
    .account-deletion-consent {
        padding: 12px;
        border-radius: 14px;
    }

    .account-topbar {
        margin-top: 12px;
        margin-bottom: 14px;
    }

    .account-summary-grid {
        gap: 8px;
    }

    .account-summary-card {
        padding: 10px 12px;
        border: 1px solid rgba(146, 162, 198, 0.16);
        box-shadow: 0 8px 18px rgba(73, 94, 139, 0.045);
    }

    .account-summary-card .account-label {
        margin-bottom: 6px;
        font-size: 0.78rem;
    }

    .account-summary-card strong {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .account-summary-card--email strong {
        font-size: 1.2rem;
        line-height: 1.25;
    }

    .account-summary-inline {
        gap: 8px;
    }

    .account-summary-inline__meta {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .account-balance-button,
    .account-password-button,
    .account-delete-account-button {
        min-height: 38px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .account-email-actions {
        gap: 8px;
    }
}
/* Account mobile overflow corrections */
@media (max-width: 900px) {
    .account-page *,
    .account-modal * {
        min-width: 0;
    }

    .account-modal__dialog,
    .account-modal__dialog-wide,
    .account-modal__dialog-order,
    .account-modal__dialog-download {
        position: relative;
        left: auto;
        right: auto;
        transform: none;
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: hidden;
    }

    .account-modal__dialog > *,
    .account-modal__dialog-wide > *,
    .account-modal__dialog-order > *,
    .account-modal__dialog-download > * {
        max-width: 100%;
    }

    .account-modal__text,
    .account-password-rules,
    .account-password-status,
    .account-deletion-terms,
    .account-deletion-consent,
    .account-topup-benefits,
    .order-section-title,
    .order-option-card__copy,
    .order-option-card__copy strong,
    .order-option-card__copy small,
    .order-calculator-item,
    .order-calculator-item strong,
    .order-calculator-item span {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .order-options-grid,
    .order-options-grid-3,
    .order-options-grid-stack,
    .order-form-grid,
    .order-form-grid-stack,
    .order-form-row-3,
    .order-calculator-grid,
    .order-calculator-grid-3 {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
    }

    .order-option-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
    }

    .order-file-upload,
    .order-file-upload-wide,
    .order-form-section-file .order-file-upload {
        width: 100%;
        max-width: 100%;
    }

    .order-file-upload-wide .order-file-upload__button,
    .order-form-section-file .order-file-upload__button,
    .order-file-upload__button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    .account-modal__actions,
    .account-modal__actions-download,
    .order-actions {
        width: 100%;
        gap: 10px;
    }

    .account-modal__actions .button-primary,
    .account-modal__actions .button-secondary,
    .account-modal__actions-download .button-primary,
    .account-modal__actions-download .button-secondary,
    .order-actions .button-primary,
    .order-actions .button-secondary,
    .account-topup-form + .account-modal__actions .button-primary,
    .account-topup-form + .account-modal__actions .button-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        padding: 12px 14px;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .button-primary.is-disabled {
        display: inline-flex;
    }
}

@media (max-width: 560px) {
    .account-modal__dialog,
    .account-modal__dialog-wide,
    .account-modal__dialog-order,
    .account-modal__dialog-download {
        width: 100%;
        max-width: 100%;
    }

    .order-option-card {
        gap: 10px;
    }

    .order-option-card__copy strong {
        font-size: 0.98rem;
    }

    .order-option-card__copy small,
    .account-modal__text,
    .account-password-rules,
    .account-deletion-consent,
    .account-topup-benefits {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}
/* Account page must never create page-level horizontal scroll */
@media (max-width: 900px) {
    html:has(.account-page),
    body:has(.account-page) {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .account-page,
    .account-shell,
    .account-surface,
    .account-summary-grid,
    .account-orders-card,
    .account-modal,
    .account-modal__dialog,
    .account-modal__dialog-wide,
    .account-modal__dialog-order,
    .account-modal__dialog-download {
        max-width: 100%;
        overflow-x: hidden;
    }
}
@media (max-width: 380px) {
    .account-page .site-nav {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .account-page .brand-logo {
        max-width: 160px;
    }

    .account-page .nav-links {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
}
/* Hide secondary account navigation on mobile */
@media (max-width: 900px) {
    .account-page .nav-links {
        display: none;
    }
}
/* Account footer mobile containment */
@media (max-width: 900px) {
    body:has(.account-page) .site-footer {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 24px 14px 32px;
        overflow-x: hidden;
    }

    body:has(.account-page) .site-footer-shell {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body:has(.account-page) .payments-row,
    body:has(.account-page) .footer-links {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        gap: 10px;
    }

    body:has(.account-page) .footer-links a {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    body:has(.account-page) .payments-row {
        display: none;
    }

    body:has(.account-page) .footer-copy {
        margin-top: 10px;
        font-size: 0.78rem;
        line-height: 1.4;
    }
}

@media (max-width: 560px) {
    body:has(.account-page) .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        row-gap: 8px;
        column-gap: 10px;
        font-size: 0.82rem;
    }
}
