    @import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');
    /* Подключение шрифта из твоего Yandex Object Storage */
    @font-face { font-family: 'TildaSans'; src: url('/fonts/TildaSans-Light.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
    @font-face { font-family: 'TildaSans'; src: url('/fonts/TildaSans-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
    @font-face { font-family: 'TildaSans'; src: url('/fonts/TildaSans-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
    @font-face { font-family: 'TildaSans'; src: url('/fonts/TildaSans-Semibold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
    @font-face { font-family: 'TildaSans'; src: url('/fonts/TildaSans-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
    @font-face { font-family: 'TildaSans'; src: url('/fonts/TildaSans-ExtraBold.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }
    @font-face { font-family: 'TildaSans'; src: url('/fonts/TildaSans-Black.woff') format('woff'); font-weight: 900; font-style: normal; font-display: swap; }

    /* Базовые стили приложения */
    body, html {
      margin: 0; padding: 0; min-height: 100vh;
      font-family: 'TildaSans', Arial, sans-serif !important;
      padding-bottom: 0; background-color: #ffffff;
      -webkit-font-smoothing: antialiased; letter-spacing: -0.5px;
      -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important;
    }

    * {
      box-sizing: border-box; -webkit-tap-highlight-color: transparent !important;
      touch-action: manipulation; -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important;
    }
    
    html.scroll-locked, body.scroll-locked { overflow: hidden !important; overscroll-behavior: none; }
    #history-widget-container * { -webkit-text-size-adjust: none !important; text-size-adjust: none !important; }
    .container { padding: 0 20px; width: 100%; }

    .view-section { display: none; animation: fadeIn 0.3s ease-in-out; }
    .view-section::before { content: ""; display: table; }
    .view-section.active { display: block; }

    @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

    /* ТАПБАР */
    .tab-bar { display: flex; justify-content: space-between; align-items: center; position: fixed; bottom: 0; left: 0; width: 100%; height: calc(75px + env(safe-area-inset-bottom)); background-color: #fff; border-top: 1px solid #ddd; padding: 0 20px; z-index: 9999; transition: transform 0.3s ease-in-out; padding-bottom: env(safe-area-inset-bottom); }
    .tab-bar.keyboard-visible { transform: translateY(100%); }
    .tab-button { display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; color: #ABABAA; height: 100%; flex-grow: 1; touch-action: manipulation; outline: none; }
    .tab-button:active { background-color: transparent !important; color: #ABABAA !important; }
    .tab-button:active .tab-button__icon img { transform: none !important; filter: none !important; }
    .tab-button.active { color: #8473EC; }
    .tab-button__icon { width: 24px; height: 24px; position: relative; margin-top: 5px; }
    .tab-button__icon img { width: 100%; height: 100%; object-fit: contain; position: absolute; top: 0; left: 0; }
    .tab-button__text { font-family: 'TildaSans', Arial, sans-serif !important; font-size: 14px !important; font-weight: 500; letter-spacing: -0.5px; margin-top: 5px; margin-bottom: 0; text-transform: none; text-align: center; }

    /* ГЛАВНАЯ */
    .main-header { display: flex; margin-top: calc(50px + env(safe-area-inset-top)); align-items: flex-start; }
    .main-header-icon { width: 33px; height: 33px; flex-shrink: 0; }
    .main-header-text-block { margin-left: 10px; display: flex; flex-direction: column; justify-content: space-between; height: 33px; flex-grow: 1; }
    .main-header-top-text { font-size: 16px; font-weight: 600; color: #000000; }
    .main-header-bottom-text { font-size: 14px; color: rgba(0, 0, 0, 0.4); }
    .main-header-rent-block { text-align: right; cursor: pointer; }

    .promo-section { margin-top: 20px; transition: all 0.4s ease; overflow: hidden; }
    .promo-section.hidden { margin-top: 0; max-height: 0 !important; opacity: 0; }
    .promo-title { font-family: 'Caveat', cursive; font-size: 24px; font-weight: 500; color: #8473EC; margin-bottom: 10px; }
    .promo-banner { background-color: #8473EC; border-radius: 7px; height: 100px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .promo-banner-title { font-size: 16px; font-weight: 600; color: #ffffff; line-height: 1.2; }
    .promo-banner-subtitle { font-size: 14px; color: rgba(255, 255, 255, 0.4); display: flex; align-items: center; }
    .promo-banner-circle { position: absolute; width: 140px; height: 140px; background-color: rgba(255, 255, 255, 0.3); border-radius: 50%; top: 10px; right: 20px; filter: blur(30px); -webkit-filter: blur(30px); }
    .promo-banner-image { position: absolute; height: 100px; right: 15px; bottom: 0; pointer-events: none; }
    .promo-banner-close { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; background-color: rgba(255, 255, 255, 0.2); border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 5; }
    .promo-banner-close::before, .promo-banner-close::after { content: ''; position: absolute; width: 10px; height: 1.5px; background-color: #fff; }
    .promo-banner-close::before { transform: rotate(45deg); }
    .promo-banner-close::after { transform: rotate(-45deg); }

    .catalog-title { font-family: 'Caveat', cursive; font-size: 24px; font-weight: 500; color: #8473EC; margin-top: 40px; margin-bottom: 20px; }
    #catalog-filter-block, #catalog-filter-block * { font-family: "TildaSans", Arial, sans-serif !important; letter-spacing: -0.5px !important; box-sizing: border-box !important; max-width: 100vw !important; -webkit-text-size-adjust: none !important; text-size-adjust: none !important; }
    #catalog-filter-block { margin-left: -20px; margin-right: -20px; width: calc(100% + 40px); overflow-x: hidden; position: relative; min-height: 200px; }
    #catalog-preloader { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; display: flex; justify-content: center; align-items: flex-start; padding-top: 40px; z-index: 99; opacity: 1; transition: opacity 0.8s ease; }
    #catalog-filter-block .header-image-container { padding: 0 20px; margin-bottom: 16px; width: 100%; display: block; }
    #catalog-filter-block #category-header-image { width: 100%; height: auto; display: block; border-radius: 5px; object-fit: cover; }
    #catalog-filter-block .filter-buttons { display: flex; width: auto; max-width: 100%; overflow-x: auto; padding: 0 0 16px 20px; gap: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0; }
    #catalog-filter-block .filter-buttons::-webkit-scrollbar { display: none; }
    #catalog-filter-block .filter-buttons::after { content: ''; display: block; min-width: 20px; height: 1px; flex-shrink: 0; }
    #catalog-filter-block .filter-btn { border: none; border-radius: 50px; cursor: pointer; white-space: nowrap; font-size: 16px !important; padding: 6px 12px !important; line-height: 1em; font-weight: 500; background-color: #F9F8FE; color: #8473EC; transition: all 0.2s ease-in-out; flex-shrink: 0; margin-right: 8px; }
    #catalog-filter-block .filter-btn:last-of-type { margin-right: 0; }
    #catalog-filter-block .filter-btn.active { background-color: #8473EC; color: #FFFFFF; font-weight: 500; }
    #catalog-filter-block .catalog-search-wrapper { position: relative; padding: 0 20px; margin-bottom: 16px; }
    #catalog-filter-block .catalog-search-icon { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); pointer-events: none; }
    #catalog-filter-block .catalog-search-input { width: 100%; height: 46px; background-color: #F9F8FE; border: none; border-radius: 7px; padding: 0 36px 0 46px; font-size: 16px !important; font-weight: 500; color: #000000; outline: none; box-sizing: border-box; }
    #catalog-filter-block .catalog-search-input::placeholder { color: #959598; font-weight: 400; }
    #catalog-filter-block .catalog-search-clear { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); color: #959598; font-size: 14px !important; cursor: pointer; display: none; align-items: center; justify-content: center; width: 24px; height: 24px; }
    #catalog-filter-block .catalog-search-clear.visible { display: flex; }
    #catalog-filter-block .catalog-container { display: grid; width: auto; margin: 0; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 20px 20px 20px; }
    #catalog-filter-block .catalog-card { background: #F9F8FE; border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; align-items: center; position: relative; width: 100%; }
    #catalog-filter-block .photo-shape-cat { position: relative; width: calc(100% - 20px); aspect-ratio: 1 / 1; margin: 10px 10px 0 10px; border-radius: 3px; overflow: hidden; background-color: #fff; }
    #catalog-filter-block .photo-shape-cat img { width: 100%; height: 100%; object-fit: cover !important; display: block; }
    #catalog-filter-block .booked-badge { position: absolute; top: 10px; right: 10px; background-color: #EDEBFC; color: #8473EC; font-size: 13px !important; font-weight: 500; padding: 4px 8px; border-radius: 3px; z-index: 10; line-height: 1em; }
    #catalog-filter-block .card-content { display: flex; flex-direction: column; padding: 0 8px 8px 8px; width: 100%; min-width: 0; }
    #catalog-filter-block .name { font-size: 18px !important; font-weight: 600 !important; margin-top: 8px !important; color: #000000 !important; line-height: 1.3em !important; height: 1.3em !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; width: 100%; }
    #catalog-filter-block .description { font-size: 13px !important; font-weight: 500 !important; margin-top: 5px !important; color: #959598 !important; line-height: 1em !important; overflow: hidden !important; display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; text-overflow: ellipsis !important; min-height: calc(1em * 3) !important; }
    #catalog-filter-block .action-button { width: 100%; border: none; border-radius: 3px; cursor: pointer; text-align: center; font-size: 16px !important; font-weight: 500 !important; padding: 8px 0 !important; margin: 20px 0 0 0 !important; line-height: 1em; }
    #catalog-filter-block .action-button.price-active { background-color: #8473EC; color: #FFFFFF; }
    #catalog-filter-block .action-button.booked { background-color: #EDEBFC; color: #8473EC; }

    @media (min-width: 768px) { #catalog-filter-block .catalog-container { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; } }

    /* ПРОФИЛЬ */
    .profile-header { margin-top: calc(50px + env(safe-area-inset-top)); display: flex; justify-content: center; align-items: center; position: relative; height: 60px; }
    .profile-avatar { width: 60px; height: 60px; background-color: rgba(132, 115, 236, 0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; }
    .profile-avatar-initials { font-size: 16px; color: #8473EC; font-weight: 600; }
    .profile-logout-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 0; cursor: pointer; color: #8473EC; font-size: 16px; font-weight: 500; font-family: 'TildaSans', Arial, sans-serif; transition: transform 0.1s linear, opacity 0.2s; }
    .profile-logout-btn:active { opacity: 0.8; transform: translateY(-50%) scale(0.98); }
    .profile-user-info { margin-top: 10px; text-align: center; }
    .profile-username { font-size: 22px; font-weight: 600; color: #000000; }
    .profile-phone { margin-top: 5px; font-size: 14px; font-weight: 500; color: rgba(0, 0, 0, 0.4); }
    .profile-cards { margin-top: 40px; display: flex; gap: 10px; }
    .profile-card { flex: 1; background-color: rgba(132, 115, 236, 0.05); border-radius: 7px; padding: 10px; position: relative; }
    .profile-card-label { position: absolute; top: 10px; right: 10px; padding: 6px 10px; border-radius: 100px; font-size: 12px; }
    .label-pending { color: #E1C302; background-color: rgba(225, 195, 2, 0.1); }
    .label-success { color: #08C318; background-color: rgba(8, 195, 24, 0.1); }
    .label-error { color: #FF554A; background-color: rgba(255, 85, 74, 0.1); }
    .profile-card-icon { width: 35px; height: 35px; background-color: rgba(132, 115, 236, 0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.profile-card-icon img { width: 100%; height: 100%; object-fit: contain; }
    .profile-card-title { margin-top: 10px; font-size: 16px; font-weight: 600; color: #000000; }
    .profile-card-subtitle { margin-top: 3px; font-size: 14px; font-weight: 500; color: rgba(0, 0, 0, 0.4); }
    .payment-cards-section { margin-top: 20px; }
    .payment-cards-title { font-size: 16px; font-weight: 600; color: #000000; margin-bottom: 10px; }
    .payment-cards-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
    .payment-card-chip { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background-color: rgba(132, 115, 236, 0.05); border: 1.5px solid rgba(132, 115, 236, 0.15); border-radius: 100px; position: relative; }
    .payment-card-chip.is-default { border-color: #8473EC; }
    .payment-card-type { font-size: 13px; font-weight: 700; color: #8473EC; }
    .payment-card-number { font-size: 14px; font-weight: 500; color: #000000; white-space: nowrap; }
    .payment-card-default-badge { font-size: 10px; font-weight: 600; color: #8473EC; }
    .payment-card-delete { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; opacity: 0.4; cursor: pointer; }
    .payment-card-delete:active { opacity: 0.8; }
    .profile-menu { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
    .profile-menu-item { height: 58px; background-color: #FFFFFF; border: 1.5px solid rgba(0, 0, 0, 0.1); border-radius: 7px; display: flex; align-items: center; padding-left: 10px; padding-right: 10px; justify-content: space-between; }
    .promo-item { justify-content: flex-start; }
    .profile-menu-text { font-size: 16px; font-weight: 500; color: #000000; }
    .profile-menu-circle { width: 33px; height: 33px; background-color: rgba(132, 115, 236, 0.05); border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.profile-menu-circle img { width: 100%; height: 100%; object-fit: contain; }
    .promo-divider { width: 1.5px; height: 30px; background-color: rgba(0, 0, 0, 0.1); margin-left: 10px; margin-right: 10px; }
    .promo-input { flex-grow: 1; border: none; background: transparent; font-size: 16px; color: #000000; text-transform: uppercase; font-weight: 500; letter-spacing: -0.5px; outline: none; font-family: 'TildaSans', Arial, sans-serif; padding: 0; width: 100%; }
    .promo-input::placeholder { color: rgba(0, 0, 0, 0.4); text-transform: none; }
    .profile-delete-account { margin-top: 40px; font-size: 16px; font-weight: 500; color: rgba(0, 0, 0, 0.2); text-align: center; cursor: pointer; }

    /* ИСТОРИЯ */
    .history-title { font-family: 'Caveat', cursive; font-size: 24px; font-weight: 500; color: #8473EC; margin-top: calc(50px + env(safe-area-inset-top)); margin-bottom: 40px; }
    #history-widget-container { font-family: "TildaSans", Arial, sans-serif !important; letter-spacing: -0.5px !important; box-sizing: border-box !important; position: relative; min-height: 100px; }
    #preloader-history { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; display: flex; justify-content: center; align-items: center; z-index: 999; opacity: 1; transition: opacity 0.5s ease; }
    .loader-history { border: 3px solid #f3f3f3; border-top: 3px solid #8473EC; border-radius: 50%; width: 30px; height: 30px; animation: spin-history 1s linear infinite; }
    @keyframes spin-history { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    #history-list { display: flex; flex-direction: column; gap: 8px; }
    .history-card { display: flex; align-items: center; background: #F3F1FD; border-radius: 7px; padding: 8px; position: relative; justify-content: space-between; }
    .history-card.is-clickable { cursor: pointer; }
    .photo-shape { flex-shrink: 0; width: 30px; height: 30px; border-radius: 0%; overflow: hidden; display: flex; justify-content: center; align-items: center; margin-right: 8px; background-color: rgba(132, 115, 236, 0.05); }
    .photo-shape img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 5px; }
    .card-text-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
    .top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
    .lot-name { flex-shrink: 1; min-width: 0; font-size: 16px !important; font-weight: 600 !important; color: #000000 !important; line-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lot-amount { flex-shrink: 0; font-size: 16px !important; font-weight: 600 !important; color: #000000 !important; line-height: 1.2em; margin-left: 8px; }
    .bottom-row { display: flex; justify-content: space-between; align-items: center; padding-right: 0; }
    .tilda-data { font-size: 14px !important; font-weight: 500 !important; color: #C0C0BF !important; line-height: 1.2em; flex-grow: 1; }
    .order-status { flex-shrink: 0; font-size: 14px !important; font-weight: 500 !important; line-height: 1.2em; }
    .status-cancelled { color: #FF554A !important; }
    .status-review { color: #8473EC !important; }
    .status-completed { color: #08C318 !important; }
    .history-no-data-placeholder { display: flex; justify-content: center; align-items: center; padding: 20px 0; width: 100%; box-sizing: border-box; }
    .history-no-data-placeholder img { width: 100%; height: auto; display: block; }
    .history-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: 100dvh; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 150000; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
    .history-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
    .history-modal-content { background: #FFFFFF; border-radius: 5px; width: calc(100% - 32px); max-width: 400px; margin: 0 16px; padding: 0; transform: translateY(20px); transition: transform 0.3s ease; font-family: "TildaSans", Arial, sans-serif !important; letter-spacing: -0.5px !important; box-sizing: border-box; display: flex; flex-direction: column; }
    .history-modal-overlay.is-open .history-modal-content { transform: translateY(0); }
    .history-modal-content-wrapper { padding: 16px; }
    .history-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; margin-top: 0; padding: 0; }
    .history-modal-title { font-size: 20px !important; font-weight: 600 !important; color: #000000 !important; }
    .close-btn { width: 30px; height: 30px; cursor: pointer; flex-shrink: 0; transition: transform 0.1s linear, opacity 0.2s; }
    .close-btn:active { opacity: 0.8; transform: scale(0.98); }
    .item-info-card { display: flex; justify-content: space-between; align-items: center; background: #F9F8FE; border-radius: 3px; padding: 8px; }
    .item-details-left { display: flex; align-items: center; min-width: 0; }
    .item-icon-right { width: 95px; height: 35px; flex-shrink: 0; }
    .item-photo-shape { width: 30px; height: 30px; border-radius: 0; margin-right: 8px; flex-shrink: 0; }
    .item-text-content { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
    .item-name { font-size: 16px !important; font-weight: 600 !important; color: #000000 !important; line-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .item-tilda-data { font-size: 14px !important; font-weight: 500 !important; color: #C0C0BF !important; line-height: 1.2em; margin-top: 2px; }
    .rating-section { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
    .rating-label { font-size: 16px !important; font-weight: 400 !important; color: #959595 !important; flex-shrink: 0; }
    .star-rating-container { display: flex; gap: 8px; align-items: center; }
    .star-rating { width: 30px; height: 30px; cursor: pointer; flex-shrink: 0; }
    .review-input-group { margin-top: 16px; padding-bottom: 0; display: flex; flex-direction: column; }
    .textarea-container { position: relative; background: #F9F8FE; border-radius: 3px; padding: 8px; width: 100%; box-sizing: border-box; margin: 0 0 8px 0; }
    .review-textarea { width: 100%; height: 100px; resize: none; border: none; outline: none; background: transparent; padding: 0; box-sizing: border-box; -webkit-appearance: none; -moz-appearance: none; appearance: none; font-family: "TildaSans", Arial, sans-serif !important; letter-spacing: -0.5px !important; font-size: 16px !important; font-weight: 500 !important; color: #000000 !important; caret-color: #8473EC !important; }
    .custom-placeholder { position: absolute; top: 8px; left: 8px; pointer-events: none; font-family: "TildaSans", Arial, sans-serif !important; letter-spacing: -0.5px !important; font-size: 16px !important; font-weight: 500 !important; color: #CAC3F7 !important; transition: opacity 0.1s; }
    .char-counter { text-align: right; margin-bottom: 0; font-size: 16px !important; font-weight: 500 !important; color: #8473EC !important; padding-right: 0; }
    .promo-item { position: relative; }
    .promo-input.error-msg { color: #FF554A !important; text-transform: none; }
    .promo-input.success-msg { color: #08C318 !important; text-transform: none; }
    .promo-input.loading { opacity: 0.5; pointer-events: none; }
    .submit-button { margin: 32px 16px 16px 16px; width: calc(100% - 32px); height: 50px; background-color: #8473EC; border: none; border-radius: 5px; cursor: pointer; display: flex; justify-content: center; align-items: center; font-family: "TildaSans", Arial, sans-serif !important; letter-spacing: -0.5px !important; font-size: 16px !important; font-weight: 500 !important; color: #FFFFFF !important; text-transform: none; box-sizing: border-box; opacity: 0.5; pointer-events: none; transition: transform 0.1s linear, opacity 0.2s ease; }
    .submit-button:not([disabled]) { opacity: 1; pointer-events: auto; }
    .submit-button:not([disabled]):active { opacity: 0.8; transform: scale(0.98); }
    .history-loader-dots { display: flex; justify-content: center; align-items: center; }
    .history-loader-dots div { width: 6px; height: 6px; margin: 0 3px; background-color: #FFFFFF; border-radius: 50%; animation: history-dots-bounce 1.4s infinite ease-in-out both; }
    .history-loader-dots div:nth-child(1) { animation-delay: -0.32s; }
    .history-loader-dots div:nth-child(2) { animation-delay: -0.16s; }
    @keyframes history-dots-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
    .t-promo-loader { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); display: none; align-items: center; gap: 4px; z-index: 11; background-color: #fff; padding-left: 5px; }
    .t-promo-loader div { width: 5px; height: 5px; background-color: #8473EC; border-radius: 50%; animation: history-dots-bounce 1.4s infinite ease-in-out both; }

    /* АВТОРИЗАЦИЯ */
    .auth-wrapper-global, .auth-wrapper-global *, .doc-popup * { font-family: 'TildaSans', Arial, sans-serif !important; letter-spacing: -0.5px !important; box-sizing: border-box; }
    .auth-screen-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 100vh; background-color: #FFFFFF; padding: 0 20px; }
    .auth-container { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; }
    .auth-title { font-family: 'Caveat', cursive !important; font-size: 40px; color: #8473EC; font-weight: 500; margin-bottom: 40px; text-align: center; }
    #notification-banner { position: fixed; top: calc(60px + env(safe-area-inset-top)); left: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: row; align-items: center; background-color: #FFF6F6; border-radius: 5px; padding: 10px; opacity: 0; transform: translateY(-20px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none; }
    #notification-banner.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .notif-icon { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }
    .notif-text { font-size: 16px; font-weight: 500; color: #FF554A; margin-left: 10px; line-height: 1.2; }
    .auth-inputs-wrapper { width: 100%; display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
    .input-group { position: relative; width: 100%; }
    .floating-input { width: 100%; height: 58px; border: 1.5px solid rgba(132, 115, 236, 0.4); border-radius: 7px; padding: 0 15px; font-size: 16px; font-weight: 500; color: #8473EC; background-color: transparent; outline: none; caret-color: #8473EC; transition: all 0.2s ease; }
    .floating-input:focus { border-color: #8473EC; }
    .floating-label { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 16px; font-weight: 500; color: rgba(132, 115, 236, 0.6); pointer-events: none; transition: all 0.2s ease; background-color: #FFFFFF; padding: 0 5px; }
    .floating-input:focus ~ .floating-label, .floating-input:not(:placeholder-shown) ~ .floating-label { top: 0; font-size: 14px; color: #8473EC; }
    .floating-input::placeholder { color: transparent; }
    .input-group.error .floating-input { border-color: #FF554A !important; color: #FF554A !important; }
    .input-group.error .floating-label { color: #FF554A !important; }
    #extra-fields { display: none; flex-direction: column; gap: 15px; animation: fadeInDown 0.4s ease forwards; margin-top: 5px; }
    @keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    .checkbox-wrapper { display: flex; align-items: flex-start; margin-top: 5px; }
    .custom-checkbox { display: flex; align-items: flex-start; cursor: pointer; font-size: 14px; user-select: none; line-height: 1.2; width: 100%; }
    .custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
    .checkmark { height: 20px; width: 20px; background-color: #F9F8FE; border: 1.5px solid #8473EC; border-radius: 50%; display: inline-block; position: relative; margin-right: 10px; flex-shrink: 0; box-sizing: border-box; }
    .checkmark:after { content: ""; position: absolute; display: none; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background-color: #8473EC; }
    .custom-checkbox input:checked ~ .checkmark:after { display: block; }
    .label-text { color: rgba(132, 115, 236, 0.7); font-weight: 400; margin-top: 2px; }
    .policy-link { color: #8473EC !important; cursor: pointer; text-decoration: none; font-weight: 600; }
    .auth-btn { 
        width: 100%; 
        height: 58px; 
        background-color: #8473EC; 
        border-radius: 7px; 
        border: none; 
        display: flex; 
        justify-content: center; 
        align-items: center; 
        font-size: 16px; 
        font-weight: 500; 
        color: #FFFFFF; 
        cursor: pointer; 
        transition: transform 0.1s linear, opacity 0.2s, background-color 0.2s;
        font-family: 'TildaSans', Arial, sans-serif !important; /* <--- ДОБАВИЛИ ЭТУ СТРОКУ */
    }
    .auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }
    .auth-btn:not([disabled]):active { opacity: 0.8; transform: scale(0.98); }
    .dot-pulse { display: none; align-items: center; justify-content: center; height: 20px; padding: 0; }
    .dot-pulse > div { width: 6px; height: 6px; margin: 0 3px; background-color: #FFFFFF; border-radius: 50%; animation: dot-loading 1.4s infinite ease-in-out both; }
    .dot-pulse > div:nth-child(1) { animation-delay: -0.32s; }
    .dot-pulse > div:nth-child(2) { animation-delay: -0.16s; }
    /* ВАЖНО: Добавлена сама анимация, которой не хватало */
    @keyframes dot-loading { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
    
    .auth-btn.loading .btn-text { display: none; }
    .auth-btn.loading .dot-pulse { display: flex; }
    #rec1417328221 { display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 100%; background: #ffffff; z-index: 9998; flex-direction: column; justify-content: center; align-items: center; transform: translateY(100%); transition: transform 0.4s ease; padding: 0 20px; }
    #rec1417328221.show { transform: translateY(0); }
    .code-title { font-size: 24px; font-weight: 600; margin-bottom: 10px; color: #000000; }
    .code-description { font-size: 16px; font-weight: 500; color: #999999; margin-bottom: 20px; text-align: center; line-height: 1.4; }
    .highlight-purple { color: #8473EC; }
    .code-inputs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
    .code-inputs input { width: 44px; height: 58px; font-size: 24px; font-weight: 500; text-align: center; border: 1.5px solid rgba(132, 115, 236, 0.4); outline: none; border-radius: 7px; background: transparent; transition: all 0.2s ease; color: #8473EC; padding: 0; caret-color: transparent; }
    .code-inputs input:focus, .code-inputs input.active { border-color: #8473EC; background: #F3F1FD; }
    .code-inputs input.filled { border-color: #8473EC; }
    .code-inputs input.animate { animation: pop 0.2s ease; }
    .resend-container { font-size: 14px; font-weight: 500; margin-bottom: 40px; text-align: center; height: 20px; }
    .resend-text, .resend-link { color: #8473EC !important; }
    .resend-link { cursor: pointer; text-decoration: none; font-weight: 500; transition: transform 0.1s linear, opacity 0.2s; display: inline-block; }
    .resend-link:active { opacity: 0.8; transform: scale(0.98); }
    .close-icon { position: absolute; top: calc(60px + env(safe-area-inset-top)); right: 20px; width: 33px; height: 33px; background-image: url('https://static.tildacdn.com/tild6436-6264-4063-a366-376238343231/Group_516056.svg'); background-size: contain; background-repeat: no-repeat; cursor: pointer; z-index: 9999; transition: transform 0.1s linear, opacity 0.3s ease; }
    .close-icon:active { opacity: 0.8; transform: scale(0.98); }
    #code-loading { position: absolute; inset:0; display:flex; justify-content:center; align-items:center; background: rgba(255, 255, 255, 0.8); z-index: 10; display: none; transition: opacity 0.3s ease; }
    #code-loading.active { display:flex; opacity: 1; }
    #code-loading .dot-pulse { display: flex; }
    #code-loading .dot-pulse > div { background-color: #8473EC; }

    /* ДОКУМЕНТАЦИЯ ПОПАП */
    .doc-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #ffffff; z-index: 99999999; transform: translate3d(100%, 0, 0); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); overflow-y: auto; -webkit-overflow-scrolling: touch; will-change: transform; }
    .doc-popup.is-active { transform: translate3d(0, 0, 0); }
    .doc-header { position: relative; margin-top: calc(60px + env(safe-area-inset-top)); display: flex; justify-content: center; align-items: center; width: 100%; min-height: 30px; }
    .doc-title { font-size: 24px; color: #000000; font-weight: 600; line-height: 1; user-select: none; }
    .doc-close-icon { position: absolute; left: 20px; width: 33px; height: 33px; border-radius: 5px; background-size: cover; background-position: center; background-repeat: no-repeat; cursor: pointer; transition: transform 0.1s linear, opacity 0.2s; }
    .doc-close-icon:active { opacity: 0.8; transform: scale(0.98); }
    .doc-grid { margin-top: 40px; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 50px; }
    .doc-card { background-color: #F9F8FE; border-radius: 5px; text-decoration: none; height: auto; display: flex; flex-direction: column; padding: 15px; transition: transform 0.1s linear, opacity 0.2s; }
    .doc-card:active { opacity: 0.8; transform: scale(0.98); }
    .doc-card-title { font-size: 14px; color: #000000; font-weight: 600; line-height: 1.2; margin-bottom: 20px; }
    .doc-card-more { font-size: 14px; color: #959595; font-weight: 500; margin-top: auto; }

    /* УДАЛЕНИЕ АККАУНТА */
    .custom-popup-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: 100dvh; background-color: rgba(0, 0, 0, 0.4); z-index: 100000000 !important; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
    .custom-popup-overlay.active { display: flex; opacity: 1; }
    .custom-popup-content { background-color: #FFFFFF; border-radius: 5px; width: calc(100% - 40px); max-width: 400px; margin: 0 20px 75px 20px; padding: 16px 0; text-align: center; box-sizing: border-box; transform: translateY(20px); transition: transform 0.3s ease; position: relative; }
    .custom-popup-overlay.active .custom-popup-content { transform: translateY(0); }
    .custom-popup-title { font-size: 22px; font-weight: 600; color: #000000; margin-bottom: 8px; padding: 0 16px; }
    .custom-popup-descr { font-size: 16px; font-weight: 500; color: #959595; margin-bottom: 32px; padding: 0 16px; line-height: 1.1; white-space: pre-line; }
    .custom-popup-btn { display: flex; align-items: center; justify-content: center; height: 50px; margin: 0 16px; border-radius: 3px; cursor: pointer; font-size: 16px; font-weight: 500; text-decoration: none; transition: transform 0.1s linear, opacity 0.3s; position: relative; box-sizing: border-box; }
    .custom-popup-btn:active { opacity: 0.8; transform: scale(0.98); }
    .btn-delete { background-color: #8473EC; color: #FFFFFF !important; margin-bottom: 8px; }
    .btn-delete .history-loader-dots { display: none; }
    .btn-cancel { background-color: rgba(132, 115, 236, 0.05); color: #8473EC !important; margin-bottom: 0; }
    .btn-delete.is-loading .btn-text { display: none; }
    .btn-delete.is-loading .history-loader-dots { display: flex; }

    /* ФЕЙД */
    .fade-overlay { position: fixed; inset: 0; background: white; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; z-index: 99998; }
    .fade-overlay.active { opacity: 1; pointer-events: all; }

    /* ПАСПОРТ */
    #view-passport { padding-top: calc(40px + env(safe-area-inset-top)); padding-bottom: 100px; }
    .upload-text { font-size: 14px; font-weight: 500; color: #999999; text-align: center; margin: 0 auto 16px auto; line-height: 1.3em; white-space: pre-line; max-width: 320px; }
    .progress-container { position: relative; height: 4px; background-color: rgba(132, 115, 236, 0.1); border-radius: 50px; margin-bottom: 24px; overflow: hidden; }
    .progress-bar { height: 100%; width: 0%; background-color: #8473EC; border-radius: 50px; transition: width 0.4s ease-in-out; }
    .upload-step { min-height: 300px; }
    #step-2, #step-3 { display: none; }
    .upload-shape { position: relative; width: 100%; height: 200px; background-color: #F9F8FE; border-radius: 7px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
    .upload-shape:active { opacity: 0.9; }
    .file-input { display: none; }
    .upload-prompt { display: flex; flex-direction: column; align-items: center; justify-content: center; position: absolute; z-index: 2; transition: opacity 0.3s; }
    .upload-icon { width: 30px; height: 30px; margin-bottom: 10px; }
    .upload-label-text { font-weight: 500; font-size: 14px; color: #8473EC; }
    .image-preview { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; opacity: 0; transition: opacity 0.3s; z-index: 1; }
    .corner-label { position: absolute; top: 10px; right: 10px; z-index: 3; background-color: #EDEBFC; border-radius: 50px; padding: 5px 10px; line-height: 12px; }
    .corner-label-text { font-size: 12px; font-weight: 500; color: #8473EC; display: block; }
    .success-overlay { position: absolute; bottom: 10px; left: 10px; right: 10px; height: 40px; background-color: #F3FCF3; border-radius: 5px; display: flex; align-items: center; justify-content: center; z-index: 4; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
    .success-text { font-weight: 500; font-size: 16px; color: #08C318; }
    .passport-buttons-wrapper {
        position: fixed; 
        bottom: calc(20px + env(safe-area-inset-bottom)); 
        left: 20px; 
        right: 20px; 
        z-index: 1000;
        display: flex; 
        flex-direction: column; 
        gap: 10px;
    }
    #passport-action-btn { position: relative; bottom: auto; left: auto; right: auto; width: 100%; margin: 0; }
    #passport-skip-btn {
        width: 100%; 
        height: 55px; 
        background-color: transparent; 
        border-radius: 7px; 
        border: 1.5px solid rgba(132, 115, 236, 0.4);
        display: flex; 
        justify-content: center; 
        align-items: center; 
        font-size: 16px; 
        font-weight: 500; 
        color: #8473EC; 
        cursor: pointer;
        transition: transform 0.1s linear, opacity 0.2s, background-color 0.2s;
        font-family: 'TildaSans', Arial, sans-serif !important;
    }
    #passport-skip-btn:active { opacity: 0.8; transform: scale(0.98); background-color: rgba(132, 115, 236, 0.05); }

    /* ЭКРАН ТОВАРА (PRODUCT) */
    #view-product { padding-top: 0; padding-bottom: 0; background-color: #ffffff; position: relative; }
    
    /* Новая закрепленная подложка для кнопки "Назад" */
    .product-header-nav { position: fixed; top: 0; left: 0; width: 100%; background-color: #ffffff; padding-top: calc(50px + env(safe-area-inset-top)); padding-left: 20px; padding-bottom: 20px; z-index: 110; display: flex; align-items: center; box-sizing: border-box; }
    .product-back-btn { width: 33px; height: 33px; background-color: rgba(132, 115, 236, 0.05); border-radius: 5px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; transition: transform 0.1s; }
    .product-back-btn:active { transform: scale(0.95); opacity: 0.8; }
    
    /* Сдвигаем галерею ниже, чтобы она не пряталась под закрепленной подложкой */
    .product-gallery { width: 100%; height: auto; display: flex; gap: 10px; padding: calc(125px + env(safe-area-inset-top)) 20px 20px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .product-gallery::-webkit-scrollbar { display: none; }
    .product-gallery-slide { flex: 0 0 auto; width: 315px; height: 315px; border-radius: 7px; overflow: hidden; scroll-snap-align: center; background-color: #F9F8FE; display: flex; justify-content: center; align-items: center; }
    .product-gallery-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
    
    /* Единый красивый кастомный прелоадер (60x60) */
    /* Единый красивый кастомный прелоадер (50x50, идеально по центру) */
    .custom-fullscreen-preloader { 
        position: fixed; /* Фиксируем относительно экрана, а не блока */
        top: 0; 
        left: 0; 
        width: 100vw; 
        height: 100vh; 
        background: #ffffff; 
        display: flex; 
        justify-content: center; 
        align-items: center; 
        /* Поднимаем z-index выше фиксированной кнопки аренды (1000) */
        z-index: 2000; 
        opacity: 1; 
        transition: opacity 0.4s ease; 
    }
    .custom-fullscreen-preloader.hidden { 
        opacity: 0; 
        pointer-events: none; 
    }
    .custom-spinner { 
        /* Уменьшенный размер 50x50 */
        width: 50px; 
        height: 50px; 
        border: 4px solid rgba(132, 115, 236, 0.05); 
        border-top: 4px solid #8473EC; 
        border-radius: 50%; 
        animation: custom-spin 1s linear infinite; 
        box-sizing: border-box; 
    }
    @keyframes custom-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    /* Корректируем нижний отступ экрана лота, чтобы он был впритык к кнопке аренды */
    .unitlot { display: block; width: 100%; padding: 0 0 calc(85px + env(safe-area-inset-bottom)) 0; box-sizing: border-box; }
    .lot-title { color: #000000; font-size: 21px; font-weight: 600; line-height: 1.3; padding: 0 20px; margin: 0; }
    .lot-description { color: #959595; font-size: 15px; font-weight: 500; line-height: 1.2; padding: 0 20px; margin: 8px 0 0 0; }
    .extra-buttons-wrapper { display: flex; justify-content: space-between; gap: 10px; padding: 0 20px; margin-top: 20px; margin-bottom: 20px; width: 100%; box-sizing: border-box; }
    .extra-button { flex: 1; background-color: #F9F8FE; border-radius: 7px; display: flex; flex-direction: column; align-items: flex-start; box-sizing: border-box; cursor: pointer; }
    .extra-btn-icon { width: 40px; height: 40px; margin-top: 10px; margin-left: 10px; display: block; }
    .extra-btn-text { font-size: 16px; font-weight: 600; color: #000000; line-height: 1; margin: 15px 10px 10px 10px; }
    .cards-container { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; padding-bottom: 0px; }
    .info-card { height: 50px; width: 100%; background-color: #F9F8FE; border-radius: 7px; box-sizing: border-box; display: flex; align-items: center; padding-left: 10px; position: relative; }
    .card-icon { width: 28px; height: 28px; flex-shrink: 0; margin-right: 10px; }
    .text-group { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
    .card-action { color: #8473EC; font-size: 14px; font-weight: 500; position: absolute; right: 10px; cursor: pointer; }
    .card-title-3, .card-bonus-amount { color: #000000; font-size: 16px; font-weight: 600; line-height: 1; }
    .card-subtitle-t3, .card-bonus-status { color: #959595; font-size: 13px; font-weight: 500; line-height: 1; }
    .custom-switch-wrapper { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
    .custom-ios-switch { position: relative; display: inline-block; width: 42px; height: 24px; }
    .custom-ios-switch input { opacity: 0; width: 0; height: 0; }
    .custom-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #e0e0e0; transition: .3s; border-radius: 24px; }
    .custom-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 2px; bottom: 2px; background-color: white; transition: .3s; border-radius: 50%; }
    .custom-ios-switch input:checked + .custom-slider { background-color: #8473EC; }
    .custom-ios-switch input:checked + .custom-slider:before { transform: translateX(18px); }
    .fixed-rent-button-wrapper { position: fixed; bottom: 0; left: 0; width: 100%; box-sizing: border-box; padding: 0 20px; padding-bottom: calc(15px + env(safe-area-inset-bottom)); z-index: 100; display: flex; flex-direction: column; align-items: flex-end; background: linear-gradient(0deg, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);}
    .bonus-label-wrapper { display: flex; justify-content: flex-end; margin-bottom: -10px; padding-right: 8px; z-index: 101; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
    .bonus-label-wrapper.active { opacity: 1; }
    .bonus-label { font-size: 12px; font-weight: 600; color: #8473EC; background-color: #EDECF8; border-radius: 50px; padding: 4px 8px; }
    .main-rent-button { width: 100%; height: 55px; border-radius: 7px; background-color: #8473EC; color: #FFFFFF; border: none; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; position: relative; font-family: 'TildaSans', Arial, sans-serif !important; letter-spacing: -0.5px !important;}
    .rent-button-content { display: flex; width: 100%; justify-content: space-between; align-items: center; z-index: 2; transition: opacity 0.3s; }
    .rent-button-text { font-size: 16px; font-weight: 500; color: #FFFFFF; }
    .rent-button-label, .rent-button-value { color: #B5ABF4; }
    .rent-button-action { position: absolute; left: 50%; transform: translateX(-50%); color: #FFFFFF; }
    .main-rent-button:active { transform: scale(0.98); opacity: 0.9; }
    .main-rent-button.is-loading .rent-button-content { opacity: 0; pointer-events: none; }
    /* Центрируем точки ровно посередине кнопки аренды */
    .main-rent-button.is-loading .dot-pulse { display: flex; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
    .modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s; z-index: 199998; }
    .modal-backdrop.active { opacity: 1; visibility: visible; pointer-events: auto; }
    .modal-package-container, .modal-contract-container, .modal-kit-container { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #FFFFFF; border-radius: 20px 20px 0 0; z-index: 199999; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform 0.3s ease-out; display: flex; flex-direction: column; max-height: 85vh; }
    .modal-contract-container { height: 85vh; }
    .modal-kit-container { height: auto; max-height: 85vh; }
    .modal-package-container.active, .modal-contract-container.active, .modal-kit-container.active { transform: translateY(0); }
    .modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 20px 0 20px; }
    .modal-title { font-size: 20px; font-weight: 600; color: #000000; margin: 0; }
    .modal-subtitle { font-size: 14px; color: #959595; margin: 4px 0 0 0; }
    .modal-close-icon { width: 30px; height: 30px; cursor: pointer; }
    .contract-content-wrapper, .kit-content-wrapper { padding: 20px; overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.4; color: #000; }
    .contract-content-wrapper { padding: 20px; overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.4; color: #000; }
    .kit-content-wrapper { padding: 20px; overflow-y: auto; font-size: 16px; line-height: 1.4; color: #000; }
    .package-cards-wrapper { padding: 0 20px; display: flex; flex-direction: column; gap: 8px; margin-top: 20px; overflow-y: auto; }
    .package-card { background-color: #F9F8FE; border-radius: 7px; padding: 12px; display: flex; flex-direction: column; position: relative; cursor: pointer; border: 1.5px solid transparent;}
    .package-card.active { border-color: #8473EC; }
    .package-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 50px; margin-bottom: 8px; width: fit-content;}
    .package-badge-icon { width: 12px; height: 12px; margin-right: 4px; }
    .package-badge-text { font-size: 12px; font-weight: 500; }
    .package-main-line { display: flex; justify-content: space-between; align-items: center; }
    .package-main-title { font-size: 16px; font-weight: 600; margin: 0; }
    .package-right-value { font-size: 16px; font-weight: 600; margin: 0; }
    .package-footer-line { display: flex; justify-content: space-between; margin-top: 4px; }
    .package-footer-text-left, .package-footer-text-right { color: #959595; font-size: 13px; margin: 0; }
    .button-wrapper { padding: 20px; }
    .save-package-button { width: 100%; height: 50px; border-radius: 7px; background-color: #8473EC; color: #FFFFFF; font-size: 16px; font-weight: 500; font-family: 'TildaSans', Arial, sans-serif !important; letter-spacing: -0.5px !important; border: none; cursor: pointer; }
    .save-package-button:active { transform: scale(0.98); }
    .kit-text-display, .contract-text-display { white-space: pre-line; }
    .contract-text-display h2, .contract-text-display h3 { font-size: 16px; font-weight: 600; margin-top: 15px; margin-bottom: 5px; }
    #instruction-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); width: 90%; max-width: 400px; height: 80vh; background: #fff; z-index: 99999; border-radius: 10px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: all 0.3s; overflow: hidden;}
    #instruction-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
    .instruction-header { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
    .instruction-title { font-weight: 600; font-size: 18px; }
    .instruction-close-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: #8473EC; }
    .instruction-body { flex: 1; position: relative; }
    .instruction-iframe { width: 100%; height: 100%; border: none; }

    /* ========================================================================== */
    /* СТИЛИ ДЛЯ ОТЗЫВОВ */
    /* ========================================================================== */
    .reviews-content-container { padding: 0 20px; max-width: 100%; box-sizing: border-box; }
    .reviews-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
    .reviews-header-row h2 { font-family: "TildaSans", Arial, sans-serif !important; letter-spacing: -0.5px !important; font-size: 21px; color: #000000; font-weight: 600; margin: 0; padding: 0; line-height: 1.2; }
    
    .average-rating-display { display: flex; align-items: center; font-family: "TildaSans", Arial, sans-serif !important; letter-spacing: -0.5px !important; font-size: 21px; color: #000000; font-weight: 600; line-height: 1.2; }
    .average-rating-display img { width: 15px; height: 15px; margin-left: 5px; margin-top: -2px; }
    
    .reviews-list-wrapper { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
    .review-card { display: flex; flex-direction: column; background-color: #FFFFFF; padding: 0; margin-left: -20px; margin-right: -20px; margin-bottom: 0; }
    .review-card-header { display: flex; justify-content: space-between; padding: 0 20px; align-items: flex-start; min-height: 35px; margin-bottom: 8px; }
    
    .review-avatar { width: 35px; height: 35px; border-radius: 50%; background-color: #F3F1FD; display: flex; justify-content: center; align-items: center; flex-shrink: 0; margin-right: 10px; overflow: hidden; }
    .review-avatar span { font-size: 14px; font-weight: 600; color: #8473EC; line-height: 1; }
    
    .review-details { display: flex; flex-direction: column; position: relative; height: 35px; flex-grow: 1; }
    .review-name-group { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; height: auto; }
    .review-name { font-size: 16px; font-weight: 600; color: #000000; margin-bottom: 0; line-height: 1.2; flex-grow: 1; }
    .review-date { font-size: 14px; font-weight: 500; color: #959595; line-height: 1.2; flex-shrink: 0; }
    
    .review-stars-group { display: flex; align-items: center; position: absolute; bottom: 0; }
    .review-stars-group img { width: 14px; height: 14px; margin-right: 2px; }
    
    .review-text { font-size: 15px; font-weight: 500; color: #959595; line-height: 1.3; padding: 0 20px; margin-bottom: 8px; margin-top: 4px; }
    .review-divider { height: 1px; background-color: rgba(0,0,0,0.05); margin-left: 20px; margin-right: 20px; margin-top: 12px; margin-bottom: 16px; }

    /* ========================================================================== */
    /* ВИДЖЕТ И ПРОЦЕСС АРЕНДЫ */
    /* ========================================================================== */
    .widget-font { font-family: 'TildaSans', Arial, sans-serif !important; letter-spacing: -0.5px !important; color: #FFFFFF; }
    #widget-scroll-wrapper { position: fixed; bottom: 116px; left: 0; width: 100%; z-index: 10000; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding: 0 16px; box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
    #widget-scroll-wrapper::-webkit-scrollbar { display: none; }
    .widget-card { flex: 0 0 auto; width: calc(100vw - 32px); max-width: calc(100vw - 32px); scroll-snap-align: center; background-color: #8473EC; border-radius: 5px; box-sizing: border-box; padding: 16px; cursor: pointer; position: relative; animation: fadein 0.3s; }
    @keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .widget-content-grid { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; }
    .widget-title { grid-column: 1 / 2; font-size: 16px; font-weight: 600; }
    .widget-description { grid-column: 1 / 2; font-size: 12px; margin-top: 0px; font-weight: 500; opacity: 0.6; }
    .widget-timer-value { grid-column: 2 / 3; grid-row: 1 / 2; font-size: 16px; text-align: right; margin-top: 0; font-weight: 600; }
    .widget-icon { grid-column: 2 / 3; grid-row: 2 / 3; justify-self: end; width: 30px; height: 30px; }

    #popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: transparent; z-index: 10001; display: none; transition: opacity 0.3s ease-in-out; }
    #popup-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #8473EC; font-family: 'TildaSans', Arial, sans-serif !important; letter-spacing: -0.5px !important; color: #FFFFFF; box-sizing: border-box; transition: none; }
    #popup-header { padding-left: 16px; padding-right: 16px; margin-bottom: 16px; opacity: 0; transition: opacity 0.3s ease-in-out; }
    #popup-overlay.active #popup-header { opacity: 1; }
    .popup-title-row { display: flex; justify-content: space-between; align-items: center; margin-top: 100px; }
    #popup-title, #popup-timer { font-size: 18px; font-weight: 600; color: #FFFFFF; }
    #popup-timer { text-align: right; }
    #popup-description { font-size: 14px; font-weight: 500; color: #FFFFFF; margin-top: 5px; line-height: 1; opacity: 0.6; }
    /* Обновляем саму шторку */
#popup-details-sheet { 
    position: absolute; left: 0; width: 100%; background-color: #FFFFFF; 
    border-top-left-radius: 30px; border-top-right-radius: 30px; 
    bottom: 0; top: 50%; z-index: 10002; 
    padding-left: 16px; padding-right: 16px; 
    transform: translateY(100%); transition: transform 0.3s ease-in-out;
    
    /* Новые стили: делаем шторку флекс-колонкой */
    display: flex;
    flex-direction: column;
    padding-bottom: 0; /* Убрали старый отступ в 30px */
}

/* Обертка для карточек аренды внутри шторки */
#reserved-details-container {
    flex-grow: 1; /* Занимает все свободное пространство */
    overflow-y: auto; /* Появится скролл, если карточек много или экран узкий */
    scrollbar-width: none; /* Прячем ползунок скролла */
    padding-bottom: 10px;
}
#reserved-details-container::-webkit-scrollbar { 
    display: none; 
}
    #popup-overlay.active #popup-details-sheet { transform: translateY(0); }
    .details-header { position: relative; display: flex; justify-content: center; padding-top: 19px; min-height: 30px; }
    #details-title { font-size: 18px; font-weight: 600; color: #000000; align-self: center; }
    #popup-close-icon { position: absolute; right: 0; top: 19px; cursor: pointer; width: 30px; height: 30px; }
    .detail-item-card { background-color: #F9F8FE; border-radius: 5px; padding: 10px; box-sizing: border-box; margin-top: 40px; display: grid; grid-template-columns: 180px 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 10px; min-height: 200px; }
    #item-image { width: 180px; height: 180px; grid-row: 1 / 5; object-fit: contain; max-width: 100%; max-height: 100%; border-radius: 3px; }
    #title-tariff-group, #postomat-map-group { grid-column: 2 / 3; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
    #title-tariff-group { grid-row: 1 / 2; }
    #postomat-map-group { grid-row: 4 / 5; }
    #postomat-image { width: 60px; height: 60px; object-fit: cover; border-radius: 3px; }
    #item-title, #postomat-name { font-size: 14px; font-weight: 600; color: #000000; }
    #item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #item-tariff { font-size: 14px; font-weight: 500; color: #000000; opacity: 0.4; }
    #view-on-map { font-size: 14px; font-weight: 500; color: #8473EC !important; text-decoration: none; }
    .detail-info-card { background-color: #F9F8FE; border-radius: 5px; box-sizing: border-box; margin-top: 16px; padding: 10px 0; display: grid; grid-template-columns: 10px auto 1fr auto 10px; grid-template-rows: auto 5px auto 5px auto; }
    #price-title, #price-value { grid-row: 1 / 2; font-size: 14px; font-weight: 600; color: #000000; align-self: flex-start; }
    #price-title { grid-column: 2 / 3; }
    #price-value { grid-column: 4 / 5; width: 100%; text-align: right; }
    #discount-title, #bonus-value { grid-row: 3 / 4; font-size: 14px; font-weight: 500; color: #000000; opacity: 0.6; }
    #discount-title { grid-column: 2 / 3; }
    #bonus-value { grid-column: 4 / 5; align-self: flex-end; width: 100%; text-align: right; }
    #accrual-title, #accrual-value { grid-row: 5 / 6; font-size: 14px; font-weight: 500; color: #08C318; }
    #accrual-title { grid-column: 2 / 3; }
    #accrual-value { grid-column: 4 / 5; align-self: flex-end; width: 100%; text-align: right; }
    /* Обновляем контейнер с кнопками */
.popup-buttons-container { 
    margin-top: auto; /* Магия флекса: выталкивает кнопки в самый низ */
    margin-bottom: calc(20px + env(safe-area-inset-bottom)); /* Безопасный отступ снизу, как на экране осмотра */
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    flex-shrink: 0; /* Запрещаем кнопкам сжиматься */
}
    .popup-button { height: 50px; border-radius: 5px; display: flex; justify-content: center; align-items: center; cursor: pointer; font-size: 16px; font-weight: 500; transition: background-color 0.1s ease; }
    #open-cell-button { background-color: #8473EC; color: #FFFFFF; }
    #cancel-button { background-color: #F3F1FD; color: #8473EC; border: none; }

    #process-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); z-index: 11000; display: none; opacity: 0; transition: opacity 0.3s ease-out; }
    #process-overlay.active { opacity: 1; }
    #process-card { position: absolute; bottom: 0; left: 0; width: 100%; background-color: #FFFFFF; border-top-left-radius: 30px; border-top-right-radius: 30px; box-sizing: border-box; height: auto; max-height: 90vh; display: flex; flex-direction: column; padding-bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 0.3s ease-out; overflow: hidden; }
#process-overlay.active #process-card { transform: translateY(0); }
.process-header { position: relative; display: flex; justify-content: center; align-items: center; padding: 20px 20px 15px 20px; height: auto; z-index: 5; background-color: #fff; flex-shrink: 0; }
#process-title { font-size: 18px; font-weight: 600; color: #000000; text-align: center; margin: 0 40px; line-height: 1.2; }
#process-close-icon { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; cursor: pointer; right: 20px; }
.process-slider-container { position: relative; width: 100%; flex-grow: 1; min-height: 380px; overflow: hidden; }
.step-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: transform 0.3s ease-out; padding-bottom: 20px; box-sizing: border-box; overflow-y: auto; }
.pinned-bottom-button { position: relative !important; bottom: auto !important; left: auto !important; right: auto !important; margin: 0 20px !important; z-index: 100; background-color: #8473EC !important; color: #FFFFFF !important; flex-shrink: 0; }
    #step-inspection { transform: translateX(0); }
    .inspection-content-block { display: flex; align-items: flex-start; margin-top: 20px; }
    .inspection-content-block.second { margin-top: 10px; }
    .inspection-icon { width: 30px; height: 30px; margin-left: 20px; flex-shrink: 0; }
    .inspection-text { margin-left: 20px; margin-right: 20px; font-size: 14px; font-weight: 500; color: #000000; line-height: 1.3; }
    #inspection-image-container { margin-top: 20px; margin-left: 20px; margin-right: 20px; border-radius: 5px; overflow: hidden; border: none; background-color: transparent; }
    #inspection-image-container img { width: 100%; height: auto; display: block; }
    .loader-dots { display: inline-flex; align-items: center; height: 100%; }
    .loader-dots span { width: 6px; height: 6px; margin: 0 3px; background-color: currentColor; border-radius: 50%; display: inline-block; animation: dots-blink 1.4s infinite ease-in-out both; }
    .loader-dots span:nth-child(1) { animation-delay: -0.32s; }
    .loader-dots span:nth-child(2) { animation-delay: -0.16s; }
    @keyframes dots-blink { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

    /* ========================================================================== */
    /* СТИЛИ ЭКРАНА ОСМОТРА (CHECK) */
    /* ========================================================================== */
    :root {
        --color-primary: #8473EC; --color-text-light: #FFFFFF; --color-text-dark: #000000;
        --color-camera-bg: #F3F1FD; --color-camera-text: #8473EC;
        --gap-standard: 16px; --gap-small: 10px; --photo-size: 150px; 
    }
    #view-check { 
    background-color: var(--color-primary); 
    padding: 0; margin: 0; width: 100%; 
    flex-direction: column; height: 100dvh; 
    overflow: hidden; 
    position: fixed; 
    top: 0; left: 0; 
    z-index: 99999; 
    display: none; 
}
    #view-check.active { display: flex !important; }
    .top-content { padding: 0 var(--gap-standard); flex-shrink: 0; }
    .header-row { display: flex; justify-content: space-between; align-items: flex-start; padding-top: calc(40px + env(safe-area-inset-top)); }
    .text-style-18-600 { font-size: 18px; font-weight: 600; color: var(--color-text-light); line-height: 1.0; }
    .description-text { 
    margin-top: 5px; /* Уменьшили отступ */
    font-size: 14px; 
    font-weight: 500; 
    color: var(--color-text-light); 
    opacity: 0.6; /* Изменили с 0.8 на 0.6 */
    line-height: 1; /* Изменили с 1.3em на 1 */
}
    .bottom-shape { flex-grow: 1; background-color: var(--color-text-light); margin-top: 20px; border-top-left-radius: 30px; border-top-right-radius: 30px; padding-top: 20px; padding-bottom: 0; width: 100%; max-width: 100%; box-sizing: border-box; display: flex; flex-direction: column; position: relative; overflow-y: auto; }
    .content-with-padding { padding-left: var(--gap-standard); padding-right: var(--gap-standard); box-sizing: border-box; width: 100%; flex-shrink: 0; }
    .shape-title { text-align: center; font-size: 18px; font-weight: 600; color: var(--color-text-dark); margin-bottom: 15px; letter-spacing: -0.5px; }
    .camera-button { 
    width: 100%; 
    height: 55px; /* Было 45px */
    border-radius: 5px; 
    background-color: var(--color-camera-bg); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    box-sizing: border-box; 
    flex-shrink: 0; 
}
    .camera-button:active { transform: scale(0.98); opacity: 0.9; }
    .camera-icon { width: 20px; height: 20px; margin-right: 8px; }
    .camera-text { 
    font-size: 14px; 
    font-weight: 500; 
    color: var(--color-camera-text);
    font-family: 'TildaSans', Arial, sans-serif !important; /* Принудительно ставим шрифт */
    letter-spacing: -0.5px !important;
}
    .photo-scroll-wrapper { margin-top: 16px; width: 100%; max-width: 100%; overflow-x: auto !important; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; flex-grow: 0; min-height: var(--photo-size); box-sizing: border-box; }
    .photo-scroll-wrapper::-webkit-scrollbar { display: none; }
    .photo-list { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; padding-left: var(--gap-standard); padding-right: var(--gap-standard); gap: var(--gap-small); width: max-content; min-height: var(--photo-size); }
    .photo-preview { width: var(--photo-size) !important; min-width: var(--photo-size) !important; height: var(--photo-size) !important; border-radius: 5px; background-color: rgba(0, 0, 0, 0.05); background-size: cover; background-position: center; flex-shrink: 0 !important; flex-grow: 0 !important; position: relative; overflow: hidden; }
    .password-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-left: 16px; padding-right: 16px; margin-top: 20px; box-sizing: border-box; flex-shrink: 0; }
    .text-style-password { font-size: 18px; font-weight: 600; color: var(--color-text-dark); line-height: 1; }
    /* Обновленная кнопка техподдержки */
.tech-support-link { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 55px; 
    margin: 20px 16px 0 16px; /* Изменили отступ сверху на 20px */
    background-color: #FFFFFF; 
    border: 1.5px solid rgba(0,0,0,0.1); 
    border-radius: 5px; 
    text-decoration: none; 
    box-sizing: border-box; 
    cursor: pointer; 
    flex-shrink: 0; 
    -webkit-tap-highlight-color: transparent; 
}
    .tech-support-link:active { transform: scale(0.98); }
    .tech-support-text { 
    font-size: 16px; 
    color: #000000; 
    margin-left: 10px; 
    font-weight: 500;
    font-family: 'TildaSans', Arial, sans-serif !important; /* Принудительно ставим шрифт */
    letter-spacing: -0.5px !important;
}
    .tech-support-icon { width: 30px; height: 30px; margin: 5px; display: block; object-fit: contain; }
    .check-warning-notification {
    margin-top: 10px;
    font-size: 16px;
    color: #FF554A;
    text-align: left; /* Прижали текст к левому краю */
    font-weight: 500;
    line-height: 1.2;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}
    .action-buttons-container { padding: 0 16px; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--gap-small); position: relative; margin-top: auto; padding-top: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); left: 0; z-index: 10; }
    .action-button { 
    width: 100%; 
    margin: 0 !important; 
    height: 55px; /* Было 50px */
    border-radius: 5px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 500; 
    border: none; 
    box-sizing: border-box; 
    transition: opacity 0.3s ease;
    font-family: 'TildaSans', Arial, sans-serif !important; /* Принудительно ставим шрифт */
    letter-spacing: -0.5px !important;
}
    .action-button:active { transform: scale(0.98); }
    .action-button:disabled { opacity: 0.7; pointer-events: none; }
    .button-primary { background-color: var(--color-primary); color: var(--color-text-light); }
    .button-secondary { background-color: var(--color-camera-bg); color: var(--color-camera-text); margin-bottom: 0 !important; }

    /* ============================================================ */
    /* ВИДЖЕТ АКТИВНОЙ АРЕНДЫ НА ЭКРАНЕ ИСТОРИИ */
    /* ============================================================ */
    #rent-widget-container { font-family: "TildaSans", Arial, sans-serif !important; letter-spacing: -0.5px !important; box-sizing: border-box !important; padding: 0; position: relative; min-height: 100px; overflow-x: hidden; width: 100%; }
    #preloader-rent { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; display: flex; justify-content: center; align-items: center; z-index: 999; opacity: 1; transition: opacity 0.5s ease; }
    .loader-rent { border: 3px solid #f3f3f3; border-top: 3px solid #8473EC; border-radius: 50%; width: 30px; height: 30px; animation: spin-rent 1s linear infinite; }
    @keyframes spin-rent { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    #rent-list { display: flex; flex-direction: column; gap: 12px; width: 100%; box-sizing: border-box; }
    .rent-card-wrapper { display: flex; flex-direction: column; width: 100%; margin: 0; box-sizing: border-box; margin-bottom: 10px; }
    .rent-card { display: flex; flex-direction: column; background: #F3F1FD; border-radius: 5px; padding: 0 10px 10px 10px; position: relative; margin-bottom: 10px; min-height: 110px; width: 100%; box-sizing: border-box; }
    .status-badge { position: absolute; z-index: 10; top: 10px; left: 10px; background: #E7EFF2; border-radius: 50px; padding: 5px 10px; font-size: 14px !important; font-weight: 500 !important; color: #08C318 !important; line-height: 1.2; }
    .photo-and-info-row { display: flex; align-items: flex-start; flex-grow: 1; padding-top: 0; position: relative; min-height: 110px; }
    .lot-photo-shape { flex-shrink: 0; width: 100px; height: 100px; margin: 10px 12px 0 0; border-radius: 3px; overflow: hidden; display: flex; justify-content: center; align-items: center; }
    .lot-photo-shape img { width: 100%; height: 100%; object-fit: contain; display: block; }
    .card-text-and-route-column { display: flex; flex-direction: column; justify-content: flex-start; flex-grow: 1; min-width: 0; padding: 10px 0 0 0; }
    .postomat-name { font-size: 16px !important; font-weight: 600 !important; color: #000000 !important; line-height: 1.2em; max-width: calc(100% - 70px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lot-timer { position: absolute; top: 10px; right: 0; font-size: 16px !important; font-weight: 600 !important; color: #000000 !important; line-height: 1.2em; text-align: right; }
    .route-block-wrapper { margin-top: 10px; width: 100%; }
    .route-shape { display: flex; justify-content: center; align-items: center; width: 100%; background: rgba(132, 115, 236, 0.1); border-radius: 3px; min-height: 30px; text-decoration: none; }
    .route-link-text { padding: 5px 10px; font-size: 14px !important; font-weight: 500 !important; color: #8473EC !important; }
    .payment-block { display: flex; justify-content: space-between; align-items: center; position: absolute; bottom: 0; left: 112px; right: 0; }
    .payment-block-label, .payment-block-cost { font-size: 16px !important; font-weight: 600 !important; color: #000000 !important; }
    /* Делаем высоту кнопок 55px для единообразия */
    .complete-rent-button { width: 100%; height: 55px; background-color: #8473EC; border-radius: 5px; border: none; cursor: pointer; color: #FFFFFF !important; font-family: "TildaSans", Arial, sans-serif !important; font-size: 16px !important; font-weight: 500 !important; display: flex; justify-content: center; align-items: center; box-sizing: border-box; }
    .extend-rent-button { width: 100%; height: 55px; background-color: #F3F1FD; border-radius: 5px; border: none; cursor: pointer; color: #8473EC !important; font-family: "TildaSans", Arial, sans-serif !important; font-size: 16px !important; font-weight: 500 !important; margin-top: 10px; box-sizing: border-box; }
    
    /* Классы лоадера оставляем без изменений, чтобы точки прыгали как надо */
    .btn-loader-dots { display: flex; justify-content: center; align-items: center; }
    .btn-loader-dots div { width: 6px; height: 6px; margin: 0 3px; background-color: #FFFFFF !important; border-radius: 50%; animation: btn-dots-bounce 1.4s infinite ease-in-out both; }
    .btn-loader-dots div:nth-child(1) { animation-delay: -0.32s; }
    .btn-loader-dots div:nth-child(2) { animation-delay: -0.16s; }
    @keyframes btn-dots-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

    .modal-content-scrollable { padding: 0 20px !important; display: flex; flex-direction: column; margin-top: 20px; flex-grow: 1; overflow-y: auto; min-height: 0; padding-bottom: 20px; }

    /* Решаем конфликт стилей в попапе осмотра */
    .inspection-row { display: flex; align-items: flex-start; margin-bottom: 15px; gap: 10px; }
    .inspection-row .inspection-icon { width: 30px; height: 30px; flex-shrink: 0; margin-left: 0; }
    .inspection-row .inspection-text { font-size: 15px; font-weight: 500; color: #000000; margin-left: 0; line-height: 1.3; margin-top: -2px; }
    .inspection-photo-block { border-radius: 5px; overflow: hidden; margin-bottom: 15px; }
    .inspection-photo-block img { width: 100%; height: auto; display: block; }
    .pin-code-large { font-size: 22px; font-weight: 600; color: #000000; text-align: center; margin: 0; }
    .pin-code-label { font-size: 14px; font-weight: 500; color: #000000; text-align: center; margin-top: 10px; margin-bottom: 20px; }
    .step-row { display: flex; align-items: flex-start; margin-bottom: 15px; }
    .step-shape { width: 30px; height: 30px; flex-shrink: 0; background-color: #f2f7ff; border-radius: 5px; display: flex; justify-content: center; align-items: center; }
    .step-number { font-size: 16px; color: #8473EC; font-weight: 600; }
    .step-text { font-size: 14px; color: #000000; font-weight: 500; margin-left: 16px; line-height: 1.1; padding-top: 0; margin-top: 0; }
    #extension-modal .package-cards-wrapper { padding: 0 20px !important; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; flex-grow: 1; overflow-y: auto; min-height: 0; padding-bottom: 20px; }
    .modal-button-wrapper { padding: 20px 20px 50px 20px !important; width: 100%; box-sizing: border-box; flex-shrink: 0; background: #FFFFFF; }
    .pay-button-popup { width: 100%; height: 55px; border-radius: 5px; background-color: #8473EC; border: none; cursor: pointer; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 0 12px; position: relative; font-family: "TildaSans", Arial, sans-serif !important; }
    .pay-button-popup.with-price { justify-content: space-between; }
    .pay-button-content { display: flex; width: 100%; height: 100%; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
    .pay-button-label, .pay-button-value { font-size: 16px; font-weight: 500; color: #B5ABF4; flex-shrink: 0; }
    .pay-button-action { color: #FFFFFF; font-size: 16px; font-weight: 500; white-space: nowrap; }
    .pay-button-popup.with-price .pay-button-action { position: absolute; left: 50%; transform: translateX(-50%); }
    .pay-loader { display: none; }
    .pay-button-popup.loading .pay-button-content, .pay-button-popup.loading .pay-button-action { opacity: 0; }
    .pay-button-popup.loading .pay-loader { display: flex; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

    /* ========================================================================== */
    /* СТИЛИ ЭКРАНА ВЫБОРА ПОСТОМАТА (POSTAMATS) */
    /* ========================================================================== */
    #view-postamats { padding-top: calc(30px + env(safe-area-inset-top)); padding-bottom: 100px; background-color: #ffffff; }
    .postamats-top-nav { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 30px; }
    .postamats-back-btn { position: absolute; left: 0; width: 33px; height: 33px; background-color: rgba(132, 115, 236, 0.05); border-radius: 5px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; transition: transform 0.1s; }
    .postamats-back-btn:active { transform: scale(0.95); opacity: 0.8; }
    .postamats-page-title { font-size: 24px; font-weight: 600; color: #000000; margin: 0; }
    
    .postamats-section-title { font-family: 'Caveat', cursive; font-size: 24px; font-weight: 500; color: #8473EC; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: flex-end; }
    .postamats-badge-green { font-family: 'TildaSans', Arial, sans-serif; font-size: 13px; font-weight: 500; color: #08C318; background-color: #EDF5F2; padding: 4px 10px; border-radius: 50px; line-height: 1.2; margin-bottom: 4px; }
    .postamats-badge-purple { font-family: 'TildaSans', Arial, sans-serif; font-size: 13px; font-weight: 500; color: #8473EC; background-color: #F3F1FD; padding: 4px 10px; border-radius: 50px; line-height: 1.2; margin-bottom: 4px; }
    
    .postamat-item-card { background-color: #F9F8FE; border-radius: 5px; padding: 10px; display: flex; align-items: flex-start; position: relative; margin-bottom: 10px; }
    .postamat-photo-shape { width: 86px; height: 86px; border-radius: 3px; background-color: #ccc; background-size: cover; background-position: center; margin-right: 12px; flex-shrink: 0; position: relative; }
    .postamat-icon-home { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; background-color: #8473EC; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
    .postamat-info-col { display: flex; flex-direction: column; flex-grow: 1; padding-bottom: 44px; min-height: 86px;}
    .postamat-name-text { font-size: 16px; color: #000000; line-height: 1.2; font-weight: 600; }
    .postamat-address-text { font-size: 14px; color: #959595; margin-top: 4px; line-height: 1.2; font-weight: 500; }
    .postamat-map-link { font-size: 14px; color: #8473EC; text-decoration: none; position: absolute; top: 10px; right: 10px; font-weight: 500; }
    
    .postamat-select-btn { position: absolute; bottom: 10px; left: 108px; right: 10px; background-color: #8473EC; color: #FFFFFF; font-size: 14px; font-weight: 500; border: none; border-radius: 3px; height: 36px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: opacity 0.2s; overflow: hidden; font-family: 'TildaSans', Arial, sans-serif !important; letter-spacing: -0.5px !important; }
    .postamat-select-btn:active { opacity: 0.8; }
    .postamat-select-btn.in-progress { justify-content: flex-start; padding: 0; background-color: #F3F1FD; }
    .postamat-select-btn .btn-text-content { position: relative; z-index: 2; }
    .postamat-select-btn.in-progress .btn-text-content { display: none; }
    
    .postamat-progress-content { display: none; width: 100%; position: relative; z-index: 2; height: 100%; justify-content: space-between; align-items: center; padding: 0 10px; font-weight: 500; color: #8473EC; }
    .postamat-select-btn.in-progress .postamat-progress-content { display: flex; }
    .postamat-progress-bar { position: absolute; top: 0; left: 0; height: 100%; width: 0; background-color: #E2DEFB; transition: width linear; z-index: 1; border-radius: 3px;}
    
    .postamats-list-wrapper { margin-bottom: 30px; }

    /* --- СТИЛИ ДЛЯ ПОПАПА ПОДДЕРЖКИ --- */
    .support-buttons-row {
        display: flex;
        gap: 10px;
        margin-top: 30px;
        padding: 0 20px;
        /* Отступ 40px снизу + безопасная зона iPhone */
        padding-bottom: calc(0px + env(safe-area-inset-bottom)); 
    }
    
    .support-btn {
        flex: 1;
        height: 56px;
        border-radius: 7px; /* Единое скругление для всех кнопок */
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        border: none;
        /* Добавили transition для transform, как у остальных кнопок */
        transition: transform 0.1s linear, opacity 0.2s;
    }
    
    .support-btn:active {
        opacity: 1;
        /* Та самая анимация уменьшения при нажатии */
        transform: scale(0.98);
    }
    
    .support-btn-max {
        background: linear-gradient(90deg, #55C9FA 0%, #1E41F7 50%, #873FE1 100%);
    }
    
    .support-btn-tg {
        background: #28A8EA;
    }

    /* --- УВЕДОМЛЕНИЕ О VPN --- */
#vpn-warning-banner {
    position: fixed;
    /* Привязываем к низу: 75px (тапбар) + 20px (отступ) + безопасная зона iOS */
    bottom: calc(95px + env(safe-area-inset-bottom));
    left: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #F3F1FD;
    border-radius: 7px;
    padding: 12px 15px;
    opacity: 0;
    /* Теперь плашка изначально чуть ниже своей финальной позиции */
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#vpn-warning-banner.visible {
    opacity: 1;
    /* Поднимается на свое место */
    transform: translateY(0);
}

.vpn-warning-text {
    font-size: 14px;
    font-weight: 500;
    color: #8473EC;
    line-height: 1.3;
    font-family: 'TildaSans', Arial, sans-serif !important;
    letter-spacing: -0.5px;
}
  #pwa-gate {
    position: fixed; inset: 0;
    background: #ffffff;
    z-index: 999999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 28px;
    padding-top: calc(48px + env(safe-area-inset-top));
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
    overflow-y: auto;
    font-family: 'TildaSans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.5px;
  }

  #gate-mobile, #gate-desktop, #gate-yandex {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 360px;
    animation: gateIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes gateIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Иллюстрация: мини-сетка "домашнего экрана" — наша иконка зацикленно появляется
     среди приглушённых иконок других приложений, как будто её только что добавили.
     Видимость самого квадрата переключается классом .is-active, а не style.display, —
     так его центрирование (display:flex) никогда не перетирается инлайн-стилем из JS. */
  .gate-hero-square {
    display: none;
    width: 112px;
    height: 112px;
    border-radius: 28px;
    background: #F3F1FD;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px -14px rgba(132, 115, 236, 0.5);
    margin-bottom: 24px;
    flex-shrink: 0;
  }

  .gate-hero-square.is-active { display: flex; }

  .hs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 18px;
  }

  .hs-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(132, 115, 236, 0.18);
  }

  .hs-icon--app {
    background: linear-gradient(160deg, #9A8CF0 0%, #7A68E5 100%);
    box-shadow: 0 4px 10px -2px rgba(122, 104, 229, 0.6);
    animation: hsAppAdd 3.2s infinite;
  }

  @keyframes hsAppAdd {
    0%   { transform: scale(0);    opacity: 0; animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
    20%  { transform: scale(1.12); opacity: 1; animation-timing-function: ease-out; }
    28%  { transform: scale(1);    opacity: 1; }
    75%  { transform: scale(1);    opacity: 1; animation-timing-function: ease-in; }
    90%  { transform: scale(0.6);  opacity: 0; }
    100% { transform: scale(0.6);  opacity: 0; }
  }

  /* Заголовок */
  .gate-title {
    font-family: 'Caveat', cursive;
    font-size: 32px;
    font-weight: 600;
    color: #8473EC;
    text-align: center;
    margin: 0 0 10px;
    line-height: 1.2;
  }

  /* Подзаголовок */
  .gate-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: rgba(0,0,0,0.42);
    text-align: center;
    line-height: 1.6;
    margin: 0 0 28px;
  }

  /* Блок шагов: карточки на лавандовом фоне, как везде в приложении */
  .gate-steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .gate-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F9F8FE;
    border-radius: 12px;
    padding: 14px;
  }

  .gate-step-num {
    width: 30px;
    height: 30px;
    background: #8473EC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
  }

  .gate-step-text {
    font-size: 15px;
    font-weight: 400;
    color: rgba(0,0,0,0.72);
    line-height: 1.45;
  }

  .gate-step-text strong {
    font-weight: 600;
    color: #000;
  }

  /* Иконка inline */
  .gate-inline-icon {
    display: inline-flex;
    vertical-align: middle;
    background: rgba(132,115,236,0.1);
    border-radius: 5px;
    padding: 3px 5px;
    margin: 0 2px;
    line-height: 1;
  }

  /* Подсказка внизу */
  .gate-hint-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(132,115,236,0.06);
    border-radius: 10px;
    padding: 13px 14px;
    width: 100%;
    margin-top: 4px;
  }

  .gate-hint-card svg { flex-shrink: 0; margin-top: 1px; }

  .gate-hint-card span {
    font-size: 13px;
    font-weight: 500;
    color: #8473EC;
    line-height: 1.5;
  }

  /* Кнопки выбора браузера (гейт Яндекс.Браузера) */
  .gate-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .gate-btn {
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    font-family: 'TildaSans', Arial, sans-serif;
    transition: background-color 0.15s ease;
  }

  .gate-btn-primary { background: #8473EC; color: #FFFFFF; }
  .gate-btn-primary:active { background: #7360E0; }

  .gate-btn-secondary { background: #F3F1FD; color: #8473EC; }
  .gate-btn-secondary:active { background: #E9E5FC; }
