/* === Карточки точек клева — выравнивание + кнопки === */

.post-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

.post-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* НЕ растягиваем зелёное поле рыб */
.post-fish {
    flex: none !important;
}

.card-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 0 20px 15px;
    margin-top: auto;
}

.card-actions .helper-fishing-btn {
    border-color: #16a34a;
    background: linear-gradient(135deg, rgba(22,163,74,0.14), rgba(34,197,94,0.07));
    color: #15803d;
}

.card-actions .helper-fishing-btn:hover {
    border-color: #15803d;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
}

.dark-theme .card-actions .helper-fishing-btn {
    border-color: #4ade80;
    background: rgba(34,197,94,0.14);
    color: #86efac;
}

.dark-theme .card-actions .helper-fishing-btn:hover {
    border-color: #22c55e;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
}

.modal-helper-fishing-btn {
    width: 100%;
    margin: 18px 0 4px;
    padding: 13px 16px;
    border: 2px solid #16a34a;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(22,163,74,.14), rgba(34,197,94,.07));
    color: #15803d;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.modal-helper-fishing-btn:hover { background: linear-gradient(135deg,#16a34a,#15803d); color: #fff; }
.dark-theme .modal-helper-fishing-btn { border-color: #4ade80; color: #86efac; background: rgba(34,197,94,.14); }
.dark-theme .modal-helper-fishing-btn:hover { color: #fff; background: linear-gradient(135deg,#16a34a,#15803d); }

.helper-fallback-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.72);
}

.helper-fallback-box {
    width: min(440px, 100%);
    border-radius: 18px;
    padding: 24px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
    text-align: center;
}

.helper-fallback-box h3 { margin: 0 0 10px; font-size: 1.25rem; }
.helper-fallback-box p { margin: 0 0 18px; line-height: 1.5; color: #4b5563; }
.helper-fallback-actions { display: flex; gap: 10px; }
.helper-fallback-actions > * {
    flex: 1;
    min-height: 44px;
    border: 0;
    border-radius: 11px;
    padding: 11px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.helper-retry-btn { background: #e5e7eb; color: #1f2937; }
.helper-download-btn { background: #16a34a; color: #fff; }
.helper-fallback-close {
    margin-top: 13px;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}
.dark-theme .helper-fallback-box { background: #1f2937; color: #f9fafb; }
.dark-theme .helper-fallback-box p { color: #d1d5db; }
.dark-theme .helper-retry-btn { background: #374151; color: #f9fafb; }

.card-actions button {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 8px;
    border-radius: 12px;
    border: 2px solid #3b82f6;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(59,130,246,0.05));
    color: #3b82f6;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.card-actions button:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #2563eb;
}

.card-actions button:hover svg path {
    fill: white;
}

.dark-theme .card-actions button {
    background: rgba(59,130,246,0.15);
    border-color: #60a5fa;
    color: #93c5fd;
}

.dark-theme .card-actions button:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
}

@media (max-width: 768px) {
    .card-actions {
        padding: 0 15px 12px;
    }
    .card-actions button {
        padding: 10px 6px;
        font-size: 0.82rem;
    }
    .helper-fallback-actions { flex-direction: column; }
}
