/* Web-hosting module (WebTariffController, WebhostingController) — the blocks of the original that several pages share
   (docs/original/panel/webhosting_change_prolong.css + webhosting_index_webtariff.html). Page-only blocks stay inline in the views
   (/webTariff/index.html «cj1y7g» and /webhosting/index.html «1lzxt1a» both define .wh-wrap / .wh-tariff-name differently).
   #sidebar .portlet / .operations live in styles.css. */

/* The .server-settings-block intro of these pages is the same block as on the server tool pages — its CSS is in mod-server.css. */

/* ---- /webhosting/change.html (style cjvior): .change-* — also the base of /webhosting/order.html ---- */
.change-wrap { max-width: 715px; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 13.5px; }
.change-alert { display: flex; align-items: flex-start; gap: 10px; padding: 11px 15px; border-radius: 6px; font-size: 13px; line-height: 1.45; max-width: 715px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.change-alert--danger { background: #fff5f5; border: 1px solid #fecaca; color: #b91c1c; }
.change-alert--info { background: #eef6ff; border: 1px solid #a8cff0; color: #1e4e7a; }
.change-alert__icon { font-size: 16px; flex-shrink: 0; line-height: 1.45; margin-top: -3px; }
.change-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #dde3ea; border-radius: 7px 7px 0 0; overflow: hidden; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.06); }
.change-table tr { transition: background 0.15s; }
.change-table tr:not(.change-table__head-row):hover { background: #f7fbff; }
.change-table td { padding: 12px 14px; vertical-align: middle; font-size: 13.5px; color: #333; border-bottom: 1px solid #edf0f4; }
.change-table tr:last-child td { border-bottom: none; }
.change-table td:first-child { width: 190px; font-weight: 600; color: #444; white-space: nowrap; background: #f5f7fa; border-right: 1px solid #e8e8e8; }
.change-table td:first-child .row-icon { margin-right: 7px; font-size: 17px; vertical-align: middle; }
.change-table tr:nth-child(2) td:first-child { border-left: 3px solid #e67e22; }
.change-table__head-row > td { background: #f5f6f8; border-bottom: 1px solid #dde3ea; padding: 10px 14px !important; white-space: nowrap; }
.change-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3CB879; box-shadow: 0 0 0 3px rgba(60,184,121,0.18); flex-shrink: 0; animation: change-pulse-dot 2.2s ease-in-out infinite; }
@keyframes change-pulse-dot { 0%, 100% { box-shadow: 0 0 0 3px rgba(60,184,121,0.18); } 50% { box-shadow: 0 0 0 5px rgba(60,184,121,0.07); } }
.change-head-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #374151; }
.change-plans { display: flex; flex-direction: column; gap: 8px; }
.change-plan { position: relative; display: flex; align-items: center; padding: 12px 14px; border: 1.5px solid #dde3ea; border-radius: 6px; background: #fafbfc; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s; user-select: none; gap: 10px; }
.change-plan:hover { border-color: #b0c4de; background: #f5f8fc; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,0.07); }
.change-plan input[type="radio"] { display: none; }
.change-plan--active { border-color: #3CB879; background: #f0faf5; box-shadow: 0 0 0 1px #3CB879, 0 3px 12px rgba(60,184,121,0.12); }
.change-plan__check { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #dde3ea; flex-shrink: 0; position: relative; transition: border-color 0.15s, background 0.15s; }
.change-plan--active .change-plan__check { border-color: #3CB879; background: #3CB879; }
.change-plan--active .change-plan__check::after { content: ''; position: absolute; top: 3px; left: 6px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.change-plan__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.change-plan__name-row { display: flex; align-items: center; gap: 8px; }
.change-plan__name { font-size: 14.5px; font-weight: 700; color: #2c3340; }
.change-plan__info { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #eef2ff; color: #6366f1 !important; font-size: 11px; font-weight: 700; font-family: Georgia, serif; font-style: italic; cursor: pointer; text-decoration: none !important; transition: background 0.15s, color 0.15s, transform 0.15s; flex-shrink: 0; line-height: 1; }
.change-plan__info:hover { background: #6366f1; color: #fff !important; transform: scale(1.1); text-decoration: none !important; }
.change-plan__meta { font-size: 12px; color: #8b8fa4; }
.change-plan__price { font-size: 15px; font-weight: 700; color: #333; text-align: right; flex-shrink: 0; }
.change-plan__price--free { color: #166534; }
.change-plan__price small { font-size: 11px; font-weight: 500; color: #8b8fa4; display: block; margin-top: 1px; }
.change-actions { padding: 14px 18px; background: #f5f6f8; border: 1px solid #dde0e6; border-top: none; border-radius: 0 0 7px 7px; display: flex; align-items: center; gap: 12px; box-shadow: 0 3px 10px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 20px; }
.change-btn-submit { display: inline-block; padding: 9px 28px; background: #3e79b4; color: #fff; font-size: 14px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; box-shadow: 0 2px 6px rgba(62,121,180,0.25); transition: background 0.2s, box-shadow 0.2s, transform 0.15s; }
.change-btn-submit:hover { background: #1a66aa; box-shadow: 0 4px 12px rgba(62,121,180,0.35); transform: translateY(-1px); }
.change-btn-submit:active { transform: translateY(0); }
.change-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.change-actions__hint { font-size: 12px; color: #9ca3af; }
.change-btn-back { margin-left: auto; display: inline-block; padding: 8px 20px; font-size: 13px; font-weight: 600; color: #555; background: #fff; border: 1px solid #d1d5db; border-radius: 6px; cursor: pointer; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.change-btn-back:hover { background: #f0f2f5; border-color: #b0b5bf; color: #333; text-decoration: none; }

/* ---- Модалка описания тарифа #tariffinfo (also used on /webhosting/index.html, prolong, order) ---- */
.tariff-modal { width: 500px; margin-left: -250px; border: 1px solid #e5e9f0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.10); }
.tariff-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; background: #f8f9fb; border-bottom: 1px solid #e5e9f0; }
.tariff-modal-title-row { display: flex; align-items: center; gap: 10px; }
.tariff-modal-icon { width: 8px; height: 8px; border-radius: 50%; background: #3CB879; box-shadow: 0 0 0 3px rgba(60,184,121,0.18); flex-shrink: 0; animation: change-pulse-dot 2.2s ease-in-out infinite; }
.tariff-modal-title { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 13.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #374151; }
.tariff-modal-close { font-size: 20px; font-weight: 400; color: #9ca3af; opacity: 1; line-height: 1; text-decoration: none; transition: color 0.15s; }
.tariff-modal-close:hover { color: #374151; }
.tariff-modal-body { padding: 18px; background: #fff; max-height: 500px; overflow-y: auto; }
.tariff-modal-footer { display: flex; align-items: center; justify-content: flex-end; padding: 12px 18px; background: #f8f9fb; border-top: 1px solid #e5e9f0; }
.tariff-modal-btn-close { display: inline-block; padding: 6px 18px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 13.5px; font-weight: 600; color: #374151 !important; background: #ffffff; border: 1px solid #e5e9f0 !important; border-radius: 8px; cursor: pointer; text-decoration: none; transition: background 0.12s, border-color 0.12s; }
.tariff-modal-btn-close:hover { background: #f0f2f5 !important; text-decoration: none; }
.tariff-hero { text-align: center; padding: 8px 0 14px; border-bottom: 1px solid #eef0f4; margin-bottom: 14px; }
.tariff-hero__name { font-size: 22px; font-weight: 800; color: #1a66aa; margin-bottom: 4px; }
.tariff-hero__price { font-size: 15px; font-weight: 600; color: #374151; }
.tariff-hero__price--free { color: #166534; }
.tariff-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #dde3ea; border-radius: 6px; overflow: hidden; background: #fff; }
.tariff-table tr { transition: background 0.15s; }
.tariff-table tr:not(.tariff-table__section):hover { background: #f7fbff; }
.tariff-table td { padding: 10px 14px; vertical-align: middle; font-size: 13.5px; border-bottom: 1px solid #edf0f4; }
.tariff-table tr:last-child td { border-bottom: none; }
.tariff-table td:first-child { color: #5a6473; font-weight: 500; width: 55%; background: #fafbfc; border-right: 1px solid #edf0f4; }
.tariff-table td:last-child { color: #1a66aa; font-weight: 700; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 16px; text-align: right; }
.tariff-table td:last-child small { color: #8b8fa4; font-weight: 500; font-size: 12px; margin-left: 3px; }
.tariff-table__section td { background: #f5f6f8 !important; padding: 7px 14px !important; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.08em; text-transform: uppercase; color: #5a6473 !important; text-align: left !important; border-top: 1px solid #dde3ea; border-bottom: 1px solid #dde3ea !important; }
.tariff-table__section:first-child td { border-top: none; }
.tariff-yes { display: inline-flex; align-items: center; gap: 4px; color: #166534; font-weight: 700; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 13px; }
.tariff-yes::before { content: '\2713'; font-weight: 700; font-size: 13px; }

/* ---- /webhosting/prolong.html (style hzefo7): .prolong-* of the web-hosting variant (the server prolongate page carries its own copy inline) ---- */
.prolong-wrap { max-width: 715px; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 13.5px; }
.prolong-alert { display: flex; align-items: flex-start; gap: 10px; padding: 11px 15px; border-radius: 6px; font-size: 13px; line-height: 1.45; max-width: 715px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.prolong-alert--info { background: #eef6ff; border: 1px solid #a8cff0; color: #1e4e7a; }
.prolong-alert--warning { background: #fff8e6; border: 1px solid #f0d68a; color: #7a5d00; }
.prolong-alert__icon { font-size: 16px; flex-shrink: 0; line-height: 1.45; margin-top: -3px; }
.prolong-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #dde3ea; border-radius: 7px 7px 0 0; overflow: hidden; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.06); }
.prolong-table tr { transition: background 0.15s; }
.prolong-table tr:not(.prolong-table__head-row):hover { background: #f7fbff; }
.prolong-table td { padding: 12px 14px; vertical-align: middle; font-size: 13.5px; color: #333; border-bottom: 1px solid #edf0f4; }
.prolong-table tr:last-child td { border-bottom: none; }
.prolong-table td:first-child { width: 190px; font-weight: 600; color: #444; white-space: nowrap; background: #f5f7fa; border-right: 1px solid #e8e8e8; }
.prolong-table td:first-child .row-icon { margin-right: 7px; font-size: 17px; vertical-align: middle; }
.prolong-table tr:nth-child(2) td:first-child { border-left: 3px solid #3e79b4; }
.prolong-table tr:nth-child(3) td:first-child { border-left: 3px solid #3CB879; }
.prolong-table__head-row > td { background: #f5f6f8; border-bottom: 1px solid #dde3ea; padding: 10px 14px !important; white-space: nowrap; }
.prolong-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3CB879; box-shadow: 0 0 0 3px rgba(60,184,121,0.18); flex-shrink: 0; animation: prolong-pulse-dot 2.2s ease-in-out infinite; }
@keyframes prolong-pulse-dot { 0%, 100% { box-shadow: 0 0 0 3px rgba(60,184,121,0.18); } 50% { box-shadow: 0 0 0 5px rgba(60,184,121,0.07); } }
.prolong-head-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #374151; }
.prolong-balance-badge { margin-left: auto; font-size: 12px; font-weight: 600; color: #6b7280; letter-spacing: 0.03em; border: 1px solid #d1d5db; border-radius: 4px; padding: 1px 8px; background: #fff; }
.prolong-plans { display: flex; gap: 8px; flex-wrap: wrap; }
.prolong-plan { position: relative; flex: 1; min-width: 100px; padding: 14px 10px 12px; border: 1.5px solid #dde3ea; border-radius: 6px; background: #fafbfc; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s; user-select: none; }
.prolong-plan:hover { border-color: #b0c4de; background: #f5f8fc; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,0.07); }
.prolong-plan input[type="radio"] { display: none; }
.prolong-plan--active { border-color: #3CB879; background: #f0faf5; box-shadow: 0 0 0 1px #3CB879, 0 3px 12px rgba(60,184,121,0.12); }
.prolong-plan__days { font-size: 24px; font-weight: 800; line-height: 1; color: #2c3340; }
.prolong-plan__days-label { font-size: 11px; color: #8b8fa4; margin-top: 2px; margin-bottom: 8px; }
.prolong-plan__price { font-size: 14px; font-weight: 700; color: #333; }
.prolong-plan__check { display: none; position: absolute; top: 6px; right: 8px; width: 16px; height: 16px; border-radius: 50%; background: #3CB879; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.prolong-plan--active .prolong-plan__check { display: block; }
.prolong-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 15px; font-weight: 700; color: #2c3340; }
.prolong-actions { padding: 14px 18px; background: #f5f6f8; border: 1px solid #dde0e6; border-top: none; border-radius: 0 0 7px 7px; display: flex; align-items: center; gap: 12px; box-shadow: 0 3px 10px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 20px; }
.prolong-btn-pay { display: inline-block; padding: 9px 28px; background: #3e79b4; color: #fff; font-size: 14px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; box-shadow: 0 2px 6px rgba(62,121,180,0.25); transition: background 0.2s, box-shadow 0.2s, transform 0.15s; }
.prolong-btn-pay:hover { background: #1a66aa; box-shadow: 0 4px 12px rgba(62,121,180,0.35); transform: translateY(-1px); }
.prolong-btn-pay:active { transform: translateY(0); }
.prolong-btn-pay:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.prolong-actions__hint { font-size: 12px; color: #9ca3af; }
.prolong-btn-back { margin-left: auto; display: inline-block; padding: 8px 20px; font-size: 13px; font-weight: 600; color: #555; background: #fff; border: 1px solid #d1d5db; border-radius: 6px; cursor: pointer; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.prolong-btn-back:hover { background: #f0f2f5; border-color: #b0b5bf; color: #333; text-decoration: none; }
.prolong-select { padding: 5px 9px; border: 1px solid #d5dae3; border-radius: 4px; font-size: 13px; color: #2c3340; background: #fafbfc; min-width: 220px; }

/* ---- engine additions (no counterpart in the original) ---- */
/* tariff name + «i» inside the prolong / order tables (same look as the hosting card row; the tariff cards of /webTariff use another .wh-tariff-name) */
.prolong-table .wh-tariff-name, .change-table .wh-tariff-name { color: #3e79b4 !important; font-weight: 600; text-decoration: none; cursor: pointer; transition: color 0.15s; }
.prolong-table .wh-tariff-name:hover, .change-table .wh-tariff-name:hover { color: #1a66aa !important; text-decoration: underline; }
.prolong-table .wh-tariff-info, .change-table .wh-tariff-info { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #eef2ff; color: #6366f1 !important; font-size: 11px; font-weight: 700; font-family: Georgia, serif; font-style: italic; cursor: pointer; text-decoration: none !important; transition: background 0.15s, color 0.15s, transform 0.15s; flex-shrink: 0; line-height: 1; margin-left: 6px; vertical-align: middle; }
.prolong-table .wh-tariff-info:hover, .change-table .wh-tariff-info:hover { background: #6366f1; color: #fff !important; transform: scale(1.1); text-decoration: none !important; }
/* order page: a period the balance does not cover */
.prolong-plan--off { opacity: 0.45; cursor: not-allowed; }
.prolong-plan--off:hover { transform: none; box-shadow: none; border-color: #dde3ea; background: #fafbfc; }
.prolong-table a.prolong-btn-pay, .change-actions a.change-btn-submit { text-decoration: none; }
.change-table .wh-date-badge { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; background: #f0f2f5; border: 1px solid #e2e5ea; border-radius: 4px; padding: 2px 8px; letter-spacing: 0.03em; display: inline-block; color: #1f2937; font-size: 13px; }
.change-table .change-plan__meta a { color: #3e79b4; }
