/**
 * STRELA Kazakhstan — Публичная страница техники
 * Стили v2.0 - на основе dashboard.css и map.php
 */

/* === CSS Variables === */
:root {
    --bg: #0f172a;
    --bg2: #1e293b;
    --bg3: #334155;
    --txt: #f8fafc;
    --txt2: #94a3b8;
    --txt-muted: #64748b;
    --accent: #ffc72c;
    --accent-hover: #e6b800;
    --accent-glow: rgba(255, 199, 44, 0.3);
    --success: #22c55e;
    --success-dark: #16a34a;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --overlay: rgba(0, 0, 0, 0.75);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
}

[data-theme="light"] {
    --bg: #f1f5f9;
    --bg2: #ffffff;
    --bg3: #e2e8f0;
    --txt: #1e293b;
    --txt2: #475569;
    --txt-muted: #94a3b8;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --overlay: rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: var(--bg);
    color: var(--txt);
    min-height: 100vh;
    line-height: 1.5;
}

/* === Page Container === */
.page-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 100px;
}

/* === Hero Section === */
.hero {
    padding: 32px 0 24px;
    text-align: center;
}

.eq-icon-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.eq-icon-glow {
    position: absolute;
    inset: -8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(20px);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.eq-icon {
    width: 120px;
    height: 120px;
    background: var(--bg2);
    border-radius: 50%;
    border: 4px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.eq-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(82%) sepia(42%) saturate(1000%) hue-rotate(358deg);
}

.eq-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg3);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.eq-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--txt);
    margin-bottom: 8px;
    line-height: 1.2;
}

.eq-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--txt2);
}

.eq-rating .stars { color: var(--accent); }
.eq-rating .stars i { margin: 0 1px; }
.eq-rating strong { color: var(--txt); font-weight: 700; }

/* === Rent Badge === */
.rent-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 800;
    margin-top: 16px;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
    animation: rentBounce 2.5s ease-in-out infinite;
}

@keyframes rentBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.rent-tag .unit {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

/* === Card === */
.card {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--txt2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i { color: var(--accent); }

/* === Owner Section === */
.owner-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.owner-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    flex-shrink: 0;
}

.owner-data {
    flex: 1;
    min-width: 0;
}

.owner-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.owner-name .verified {
    color: var(--success);
    font-size: 14px;
}

.owner-label {
    font-size: 12px;
    color: var(--txt2);
    margin-bottom: 4px;
}

.owner-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.owner-rating .stars { color: var(--accent); }
.owner-rating span { color: var(--txt); font-weight: 600; }

.profile-link {
    width: 44px;
    height: 44px;
    background: var(--bg3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--txt2);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.profile-link:hover {
    background: var(--accent);
    color: var(--bg);
}

/* === Phone Buttons === */
.phone-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.phone-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.phone-btn:active { transform: scale(0.98); }

.phone-btn.call {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: #fff;
}

.phone-btn.call i {
    animation: phoneRing 2s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-8deg); }
    20%, 40% { transform: rotate(8deg); }
    50% { transform: rotate(0); }
}

.phone-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.phone-btn.whatsapp:hover { background: #20bd5a; }

/* === Contact Buttons (New Style) === */
.contact-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-btn:active { 
    transform: scale(0.96); 
}

.contact-btn i {
    font-size: 20px;
}

.contact-btn-call {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
}

.contact-btn-call:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.contact-btn-call i {
    animation: phoneRing 2s ease-in-out infinite;
}

.contact-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
}

.contact-btn-whatsapp:hover {
    background: linear-gradient(135deg, #2eeb74 0%, #25D366 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.contact-btn-whatsapp i {
    font-size: 22px;
}

.phone-hidden {
    background: var(--bg3);
    color: var(--txt2);
    padding: 14px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.phone-hidden a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.phone-hidden a:hover { text-decoration: underline; }

/* === Operator Card === */
.operator-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.operator-block img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--success);
}

.operator-block h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--txt);
    margin-bottom: 2px;
}

.operator-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success);
}

.operator-status i {
    font-size: 8px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* === Settings Button === */
.settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: var(--bg3);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--txt2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.settings-hint {
    font-size: 12px;
    color: var(--txt-muted);
    text-align: center;
    margin-top: 10px;
}

/* === Rate Button === */
.rate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: rgba(255, 199, 44, 0.12);
    border: 1px solid rgba(255, 199, 44, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.rate-btn:hover {
    background: rgba(255, 199, 44, 0.2);
    transform: translateY(-2px);
}

/* === Equipment Grid === */
.eq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.eq-mini {
    background: var(--bg3);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.eq-mini:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.eq-mini-icon {
    width: 40px;
    height: 40px;
    background: var(--bg2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.eq-mini-icon img {
    width: 26px;
    height: 26px;
}

[data-theme="dark"] .eq-mini-icon img {
    filter: brightness(0) saturate(100%) invert(82%) sepia(42%) saturate(1000%) hue-rotate(358deg);
}

.eq-mini-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eq-mini-type {
    font-size: 12px;
    color: var(--txt2);
}

.eq-mini-price {
    font-size: 13px;
    color: var(--success);
    font-weight: 700;
    margin-top: 6px;
}

/* === Reviews === */
.review-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child { border-bottom: none; padding-bottom: 0; }

.review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-head img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt);
}

.review-date {
    font-size: 11px;
    color: var(--txt-muted);
}

.review-stars {
    margin-left: auto;
    color: var(--accent);
    font-size: 12px;
}

.review-text {
    font-size: 13px;
    color: var(--txt2);
    line-height: 1.5;
}

/* === Login Prompt === */
.login-block {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.login-block h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 8px;
}

.login-block p {
    font-size: 13px;
    color: var(--txt2);
    margin-bottom: 16px;
    line-height: 1.5;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--bg);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.login-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
}

/* === Footer Branding === */
.branding {
    text-align: center;
    padding: 28px 16px 20px;
    color: var(--txt-muted);
}

.branding-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.branding p { font-size: 12px; }

/* === Fixed Actions === */
.fixed-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg2);
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.action-btn {
    flex: 1;
    max-width: 180px;
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.action-btn:active { transform: scale(0.97); }

.action-btn.primary {
    background: var(--accent);
    color: var(--bg);
}

.action-btn.success {
    background: var(--success);
    color: #fff;
}

.action-btn.secondary {
    background: var(--bg3);
    color: var(--txt);
    border: 1px solid var(--border);
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 9000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.show { display: flex; }

.modal-box {
    background: var(--bg2);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg2);
    z-index: 2;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg3);
    border: none;
    border-radius: 50%;
    color: var(--txt2);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--danger);
    color: #fff;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    background: var(--bg2);
}

/* === Form Elements === */
.form-group { margin-bottom: 0; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--txt2);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--txt);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

select.form-control {
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* === Toggle === */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-child { border-bottom: none; }

.setting-info { flex: 1; }

.setting-label-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt);
    margin-bottom: 2px;
}

.setting-desc {
    font-size: 12px;
    color: var(--txt2);
}

.toggle {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--bg3);
    border-radius: 28px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-track::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .toggle-track {
    background: var(--success);
}

.toggle input:checked + .toggle-track::before {
    transform: translateX(24px);
}

/* === Rating Stars Select === */
.rating-stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 16px 0;
}

.rating-stars .star {
    font-size: 36px;
    color: var(--bg3);
    cursor: pointer;
    transition: all 0.15s;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: var(--accent);
    transform: scale(1.15);
}

/* === Alerts === */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* === Submit Button === */
.submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.submit-btn:hover { transform: translateY(-2px); }
.submit-btn:active { transform: scale(0.98); }

.submit-btn.primary {
    background: var(--accent);
    color: var(--bg);
}

.submit-btn.success {
    background: var(--success);
    color: #fff;
}

/* === Responsive === */
@media (max-width: 380px) {
    .eq-name { font-size: 24px; }
    .rent-tag { font-size: 18px; padding: 10px 20px; }
    .phone-actions { flex-direction: column; }
    .phone-btn { justify-content: center; }
    .contact-buttons { flex-direction: column; gap: 10px; }
    .contact-btn { padding: 12px 16px; }
}
/* === Owner Message Block === */
.owner-message {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border-left: 4px solid var(--accent);
}

.owner-message-text {
    font-size: 14px;
    color: var(--txt);
    line-height: 1.6;
    word-wrap: break-word;
}

/* === Attachments List (Compact Tags Style) === */
.attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Базовый тег */
.attachment-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--txt);
    transition: all 0.2s;
}

.attachment-tag i {
    color: var(--accent);
    font-size: 12px;
}

/* Тег с ценой */
.attachment-tag.attachment-priced {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(245, 166, 35, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.25);
    padding: 6px 10px;
}

.attachment-tag .attachment-price {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 4px;
}

/* Тег без цены (просто название) */
.attachment-tag.no-price {
    background: var(--bg3);
    border-color: var(--border);
}

/* Legacy support для старого кода */
.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg3);
    border-radius: var(--radius-sm);
    gap: 12px;
}

.attachment-name {
    font-size: 14px;
    color: var(--txt);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.attachment-name i {
    color: var(--accent);
    flex-shrink: 0;
}

.attachment-price-old {
    font-size: 14px;
    font-weight: 700;
    color: var(--success);
    white-space: nowrap;
    flex-shrink: 0;
}

/* === Operator Block === */
.operator-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.operator-block img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--success);
    flex-shrink: 0;
}

.operator-block.inactive img {
    border-color: var(--txt2);
}

.operator-info {
    flex: 1;
    min-width: 0;
}

.operator-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 4px;
}

.operator-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--txt2);
}

.operator-status.active {
    color: var(--success);
}

.operator-status i.pulse {
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.operator-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--accent);
    margin-top: 4px;
}

.profile-link.small {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

/* === Callback Form === */
.callback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.card-desc {
    font-size: 13px;
    color: var(--txt2);
    margin-bottom: 4px;
}

/* === Mini Equipment with Icon Row === */
.eq-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.eq-mini-icon {
    flex-shrink: 0;
    margin-bottom: 0;
}

.eq-mini-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.eq-mini-content .eq-mini-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
}

/* === Rating Label === */
.rating-label {
    text-align: center;
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 199, 44, 0.1);
    border-radius: var(--radius-sm);
}

/* === Rate Card === */
.rate-card {
    text-align: center;
}

.rate-hint {
    font-size: 12px;
    color: var(--txt2);
    margin-top: 8px;
}

/* === Review Meta === */
.review-info {
    flex: 1;
    min-width: 0;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.review-date {
    font-size: 12px;
    color: var(--txt-muted);
}

.review-target {
    font-size: 11px;
    color: var(--accent);
    background: rgba(255, 199, 44, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* === No Rating Text === */
.no-rating {
    color: var(--txt-muted);
    font-style: italic;
}
/* =========================================
   HERO v2 — QR Landing Hero Block
   ========================================= */

.hero-v2 {
    position: relative;
    margin: 0 -16px 20px;
    padding: 36px 20px 28px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(160deg, #1a2744 0%, #0f172a 55%, #1a1f2e 100%);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Light theme hero — насыщенный тёмно-золотой фон ── */
[data-theme="light"] .hero-v2 {
    background: linear-gradient(160deg, #1c2340 0%, #0f1729 50%, #1a1f35 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 2px 0 rgba(255, 199, 44, 0.4);
}

[data-theme="light"] .hero-v2::before {
    background: radial-gradient(circle, rgba(255, 199, 44, 0.2) 0%, transparent 65%);
}

[data-theme="light"] .hero-bg-pattern {
    background-image:
        linear-gradient(rgba(255, 199, 44, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 199, 44, 0.06) 1px, transparent 1px);
}

/* Нижний разделитель — яркая золотая линия */
[data-theme="light"] .hero-v2::after {
    background: linear-gradient(90deg, transparent, #ffc72c, transparent);
    height: 2px;
    opacity: 0.8;
}

/* QR-бейдж */
[data-theme="light"] .hero-qr-label {
    background: rgba(255, 199, 44, 0.12);
    border-color: rgba(255, 199, 44, 0.35);
    color: #ffc72c;
}

/* Иконка круг */
[data-theme="light"] .hero-icon-circle {
    background: linear-gradient(145deg, #1e2d45, #111827);
    border-color: #ffc72c;
    box-shadow:
        0 0 0 8px rgba(255, 199, 44, 0.1),
        0 16px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* SVG иконка — жёлтый фильтр как в тёмной теме */
[data-theme="light"] .hero-icon-circle img:not(.is-png) {
    filter: brightness(0) saturate(100%) invert(82%) sepia(42%) saturate(1000%) hue-rotate(358deg);
}

/* Кольца */
[data-theme="light"] .hero-icon-ring {
    border-color: #ffc72c;
}

/* Чип типа */
[data-theme="light"] .hero-type-chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .hero-type-chip i {
    color: #ffc72c;
}

/* Название — белое как в тёмной */
[data-theme="light"] .hero-eq-name {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Рейтинг */
[data-theme="light"] .hero-rating-val {
    color: #ffffff;
}

[data-theme="light"] .hero-rating-cnt {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .hero-rating-none {
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .hero-stars {
    color: #ffc72c;
}

/* Сетчатый паттерн фона */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 199, 44, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 199, 44, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Радиальный highlight из центра */
.hero-v2::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 199, 44, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Нижний accent-разделитель */
.hero-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

/* QR-бейдж */
.hero-qr-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 199, 44, 0.15);
    border: 1px solid rgba(255, 199, 44, 0.3);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
}

/* Иконка техники */
.hero-icon-wrap {
    position: relative;
    width: 148px;
    height: 148px;
    margin: 0 auto 20px;
}

.hero-icon-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: heroRingPulse 3s ease-in-out infinite;
}

.hero-icon-ring--outer {
    inset: -14px;
    opacity: 0.2;
    animation-delay: 0s;
}

.hero-icon-ring--inner {
    inset: -6px;
    opacity: 0.35;
    animation-delay: 0.5s;
}

@keyframes heroRingPulse {
    0%, 100% { transform: scale(1); opacity: var(--op, 0.25); }
    50% { transform: scale(1.06); opacity: calc(var(--op, 0.25) * 1.8); }
}

.hero-icon-ring--outer { --op: 0.2; }
.hero-icon-ring--inner { --op: 0.35; }

.hero-icon-circle {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e2d45, #0f172a);
    border: 3.5px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 8px rgba(255, 199, 44, 0.08),
        0 16px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
}

.hero-icon-circle img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(82%) sepia(42%) saturate(1000%) hue-rotate(358deg);
    drop-shadow: 0 2px 8px rgba(255, 199, 44, 0.4);
}

.hero-icon-circle img.is-png {
    filter: none;
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
}

/* Зелёная точка "доступна для аренды" */
.hero-for-rent-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: rentDotPing 2s ease-in-out infinite;
}

@keyframes rentDotPing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Чип типа техники */
.hero-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    position: relative;
}

.hero-type-chip i {
    color: var(--accent);
    font-size: 10px;
}

/* Название */
.hero-eq-name {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Рейтинг */
.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
}

.hero-stars {
    display: flex;
    gap: 3px;
    color: var(--accent);
}

.hero-stars i { font-size: 14px; }

.hero-rating-val {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.hero-rating-cnt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.hero-rating-none {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

.hero-rating-none i {
    color: rgba(255, 199, 44, 0.5);
}

/* Блок цены */
.hero-price-block {
    display: inline-block;
    position: relative;
    margin-top: 4px;
}

.hero-price-inner {
    background: rgba(34, 197, 94, 0.12);
    border: 1.5px solid rgba(34, 197, 94, 0.35);
    border-radius: 18px;
    padding: 14px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-price-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(34, 197, 94, 0.8);
}

.hero-price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.hero-price-num {
    font-size: 26px;
    font-weight: 900;
    color: #4ade80;
    line-height: 1;
    letter-spacing: -0.5px;
}

.hero-price-unit {
    font-size: 13px;
    font-weight: 500;
    color: rgba(74, 222, 128, 0.7);
}

/* Не сдаётся */
.hero-not-rent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: rgba(239, 68, 68, 0.8);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 14px;
    margin-top: 4px;
    text-decoration: none;
}
.hero-not-rent--owner {
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
}
.hero-not-rent--owner:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}
/* Кнопка «Настроить аренду» в модалке настроек */
.btn-setup-rent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s;
    flex-shrink: 0;
}
.btn-setup-rent:hover {
    background: rgba(34, 197, 94, 0.25);
}

/* === Адаптив === */
@media (max-width: 380px) {
    .hero-eq-name { font-size: 26px; }
    .hero-price-num { font-size: 22px; }
    .hero-icon-wrap { width: 130px; height: 130px; }
    .hero-icon-circle { width: 130px; height: 130px; }
    .hero-icon-circle img { width: 70px; height: 70px; }
    .hero-icon-ring--outer { inset: -12px; }
    .hero-icon-ring--inner { inset: -5px; }
}
/* Light theme — price/not-rent на тёмном hero выглядят одинаково,
   но чуть усилим свечение */
[data-theme="light"] .hero-price-inner {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}

[data-theme="light"] .hero-not-rent {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

/* ── Theme Toggle Button ─────────────────────────────── */
.theme-toggle-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg2);
    color: var(--txt2);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.theme-toggle-btn:active {
    transform: scale(0.9);
}

[data-theme="dark"]  .theme-toggle-btn i { color: var(--accent); }
[data-theme="light"] .theme-toggle-btn i { color: #475569; }
[data-theme="light"] .theme-toggle-btn:hover i { color: var(--bg); }

/* ── Иконки списка техники в светлой теме ── */
[data-theme="light"] .eq-mini-icon {
    background: #e2e8f0;
}

[data-theme="light"] .eq-mini-icon img {
    filter: brightness(0) saturate(100%) invert(25%) sepia(10%) saturate(500%) hue-rotate(180deg);
}

[data-theme="light"] .eq-mini-icon img.is-png {
    filter: none;
}

/* ── PNG icon fix in hero circle ── */
.hero-icon-circle img.is-png {
    filter: none;
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
}

/* ── Hidden page banner (owner-only) ── */
.hidden-page-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.hidden-page-banner i { font-size: 16px; color: var(--danger); flex-shrink: 0; }
.hidden-page-link {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    text-decoration: underline;
}

/* ── Settings FAB in fixed-actions ── */
.action-btn.settings-fab {
    background: var(--bg3);
    color: var(--txt);
    border: 1.5px solid var(--border);
}
.action-btn.settings-fab:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* ── Visibility toggle row (page active/hidden) ── */
.setting-row--danger {
    background: rgba(239, 68, 68, 0.06);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    margin: 0 -4px 4px;
    border-bottom: none !important;
}
.setting-row--danger .setting-label-text { color: var(--danger); }
.setting-row--danger .toggle input:checked + .toggle-track { background: var(--success); }
.setting-row--danger .toggle input:not(:checked) + .toggle-track { background: var(--danger); }

/* ── Share icon-only button ── */
.share-btn-icon {
    flex: 0 0 auto;
    width: 48px;
    padding: 14px 0;
}

/* ── Vacancy card ── */
.vacancy-card {
    border-left: 4px solid var(--success);
}
.vacancy-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.vacancy-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--txt);
    flex: 1;
}
.vacancy-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.35);
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.vacancy-badge-active i {
    font-size: 8px;
    animation: statusPulse 1.5s ease-in-out infinite;
}
.vacancy-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.vacancy-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.35);
}

/* ── Vacancy badge on eq-mini ── */
.eq-vac-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34,197,94,0.15);
    color: var(--success);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
}
.eq-vac-badge i { font-size: 9px; }

/* ── Hidden eq-mini (show more) ── */
.eq-mini-hidden { display: none; }

/* ── Equipment visibility list in settings ── */
.setting-eq-list-wrap {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.setting-eq-list-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg3);
    border: none;
    color: var(--txt2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}
.setting-eq-list-toggle:hover { color: var(--accent); }
.setting-eq-list-toggle i:first-child { color: var(--accent); font-size: 14px; }
.setting-eq-list-toggle span { flex: 1; }
.setting-eq-chevron { font-size: 11px; transition: transform 0.25s; }

.setting-eq-list {
    display: flex;
    flex-direction: column;
    max-height: 260px;
    overflow-y: auto;
}
.eq-vis-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.eq-vis-row:hover { background: rgba(255,199,44,0.04); }
.eq-vis-name {
    flex: 1;
    font-size: 13px;
    color: var(--txt);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.eq-vis-hidden-badge {
    font-size: 11px;
    color: var(--txt-muted);
    flex-shrink: 0;
}

/* ── Show more button ── */
.show-more-eq-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: var(--bg3);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--txt2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.show-more-eq-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* ── Settings share block ── */
.setting-share-block {
    padding: 16px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.share-link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.share-link-input {
    font-size: 12px;
    color: var(--txt2);
    flex: 1;
}
.copy-link-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: var(--bg3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--txt2);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.copy-link-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.share-native-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--txt);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.share-native-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.link-accent {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.link-accent:hover { text-decoration: underline; }

/* ── Toast notification ── */
.share-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--txt);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    white-space: nowrap;
}
.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}