.tag, form button {
    cursor: pointer;
    transition: .3s
}

form button[type=submit]:disabled {
    cursor: not-allowed;
    background: rgba(128, 128, 128, 0.24);
}

form button[type=submit]:disabled:hover {
    box-shadow: none;
}

form .input_box .error {
    font-size: 10px;
    color: #ff4757;
}

*, .tag-counter, form .input_box input {
    box-sizing: border-box
}

@font-face {
    font-family: Montserrat;
    src: url('./fonts/JTUSjIg1_i6t8kCHKm459W1hyyTh89ZNpQ.woff2') format('woff2'), url('./fonts/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2') format('woff2');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    font-family: Montserrat, sans-serif
}

body {
    background: #f5f5f5
}

.container {
    max-width: 1200px;
    margin: 0 auto
}

.form-control {
    width: 100%;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 5px
}

.selected-tags-section, form .input_box {
    margin-bottom: 20px
}

form .input_box input {
    width: 100%;
    height: 57px;
    border: 1px solid #dadaf2;
    border-radius: 5px;
    outline: 0;
    background: #f8f8fb;
    font-size: 16px;
    padding: 0 20px;
    transition: .2s
}

form .input_box input:focus {
    border-color: #626cd6
}

form button {
    width: 100%;
    height: 56px;
    border-radius: 5px;
    border: none;
    outline: 0;
    background: #626cd6;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
}

form button:hover {
    background: #4954d0;
    box-shadow: 0 4px 10px rgba(73, 84, 208, .3)
}

.auth-container-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px
}

.request-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1)
}

.request-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1e2b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    letter-spacing: -0.01em;
}

.request-title a {
    color: #635bff;
    text-decoration: none;
    font-size: 1.25rem;
    transition: transform 0.15s;
    display: inline-block;
}

.request-title a:hover {
    transform: translateX(-3px);
}

.request-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666
}

.tag, .tag-available {
    background: #e9ecef;
    color: #495057
}

.request-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px
}

.selected-tag, .tag {
    align-items: center
}

.tag {
    background: #f1f4f9;
    color: #1f2a3e;
    padding: 0.25rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.tag-disabled {
    position: relative;
    cursor: not-allowed !important
}

.tag-disabled:hover {
    transform: none !important;
    box-shadow: none !important
}

.limit-badge {
    margin-left: 6px;
    font-size: 10px;
    opacity: .7
}

.shop-name, h3 {
    font-size: 16px
}

.response-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    transition: transform .2s, box-shadow .2s
}

.btn, .remove-tag {
    transition: .3s;
    cursor: pointer
}

.response-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1)
}

.shop-name {
    font-weight: 600;
    color: #626cd6;
    margin-bottom: 5px
}

.shop-rating {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 10px
}

.shop-address {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #2e7d32;
    margin: 10px 0
}

.btn, .limit-label, .status {
    font-weight: 500
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px
}

.btn-primary {
    background: #626cd6;
    color: #fff
}

.btn-primary:hover {
    background: #4954d0
}

.btn-danger {
    background: #ef4444;
    color: #fff
}

.btn-danger:hover {
    background: #dc2626
}

.response-actions {
    display: flex;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px
}

.status-has_offers {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.tags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0
}

.selected-tags, .tags-list {
    display: flex;
    padding: 15px;
    background: #f8f9fa;
    min-height: 10px;
    gap: 10px
}

h3 {
    color: #555
}

.tags-list {
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-radius: 12px;
    max-height: 195px;
    overflow: scroll
}

.selected-tags {
    flex-wrap: wrap;
    border-radius: 5px
}

.remove-tag, .selected-tag {
    display: inline-flex;
    color: #fff
}

.selected-tag {
    gap: 10px;
    padding: 5px 10px;
    background: #626cd6;
    border-radius: 5px;
    font-size: 13px;
    animation: .3s slideIn
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(.8)
    }
    to {
        opacity: 1;
        transform: scale(1)
    }
}

.remove-tag {
    background: rgba(255, 255, 255, .2);
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    margin: 0
}

.remove-tag:hover {
    background: rgba(255, 255, 255, .4);
    transform: rotate(90deg)
}

.tag-counter {
    color: #fff;
    border-radius: 3px;
    padding: 4px;
    font-size: 13px
}

.limit-progress-container {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0
}

.limit-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 10px;
    gap: 10px
}

.limit-label {
    color: #64748b
}

.limit-counter {
    color: #626cd6;
    font-weight: 600;
    background: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px
}

.limit-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden
}

.limit-progress-fill {
    height: 100%;
    width: 0%;
    background: #626cd6;
    border-radius: 10px;
    transition: width .3s
}

.limit-counter-clear-all {
    background: #ff4757;
    color: #fff;
    border: none;
    padding: 3px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    transition: .3s;
    height: auto;
    width: auto;
    margin: 0
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0)
    }
    25% {
        transform: translateX(-5px)
    }
    75% {
        transform: translateX(5px)
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1
    }
    50% {
        transform: scale(1.05);
        opacity: .9
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px
    }

    form {
        display: flex;
        flex-direction: column;
        gap: 5px
    }

    form input {
        width: 100% !important
    }

    form input[type="checkbox"] {
        width: auto !important;
    }

    .btn-edit, .btn-respond {
        width: 100%;
        text-align: center
    }

    .limit-progress-container {
        padding: 10px 12px
    }

    .limit-progress-info {
        font-size: 12px
    }

    .limit-progress-bar {
        height: 6px
    }
}

@media (max-width: 480px) {
    .form-control {
        padding: 15px
    }

    form .input_box input {
        font-size: 14px;
        padding: 10px;
    }

    .tags-header {
        display: block;
    }
}

.input_box a {
    color: #0066cc;
    text-decoration: underline;
}
.input_box a:hover {
    color: #004499;
}


/* Дополнительные стили для тегов внутри инпута */
.tag-input-wrapper {
    margin-bottom: 20px;
}

.tag-input-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: #f8f8fb;
    border: 1px solid #dadaf2;
    border-radius: 5px;
    padding: 8px 12px;
    transition: all 0.2s ease;
    cursor: text;
    min-height: 57px;
}

.tag-input-line:focus-within {
    border-color: #626cd6;
    box-shadow: 0 0 0 2px rgba(98, 108, 214, 0.1);
    background: white;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #626cd6;
    color: white;
    padding: 4px 10px 4px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    animation: chipFadeIn 0.15s ease;
}

@keyframes chipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tag-chip button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.tag-chip button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.tag-search-input {
    flex: 1;
    min-width: 120px;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 6px 0;
    background: transparent;
    font-family: inherit;
    color: #333;
}

.tag-search-input::placeholder {
    color: #aaa;
    font-size: 13px;
}

.suggestions-wrapper {
    position: relative;
}

.suggestions-dropdown {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dadaf2;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestions-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.1s;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.suggestions-dropdown li:hover {
    background: #f0f4ff;
}

.suggestions-dropdown .suggestion-add {
    font-size: 11px;
    color: #626cd6;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 12px;
}

.suggestions-dropdown .no-results {
    justify-content: center;
    color: #999;
    font-style: italic;
}

.available-tags-section {
    margin-top: 15px;
}

.available-tags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.tags-count {
    color: #626cd6;
    font-weight: 500;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.tag-available {
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.tag-available:hover {
    background: #dee2e6;
    transform: translateY(-1px);
}

.tag-available.tag-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tag-available.tag-disabled:hover {
    background: #e9ecef;
    transform: none;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 20px;
    width: 100%;
}

/* Адаптация */
@media (max-width: 768px) {
    .tag-input-line {
        padding: 6px 10px;
        min-height: 50px;
    }

    .tag-chip {
        font-size: 11px;
        padding: 3px 8px 3px 10px;
    }

    .tag-search-input {
        font-size: 13px;
    }
}

.footer a {
    color: #8e99ab;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.15s;
    margin: 0 0.5rem;
}

.footer a:hover {
    color: #635bff;
}

/* Модалка — стиль Stripe */
.onboarding-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.onboarding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.onboarding-container {
    position: relative;
    max-width: 540px;
    width: 90%;
    background: white;
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: onboardingFadeIn 0.2s ease-out;
}

@keyframes onboardingFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.onboarding-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #8e8e93;
    transition: color 0.1s ease;
}

.onboarding-close:hover {
    color: #1a1a1a;
}

.onboarding-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.onboarding-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.onboarding-text {
    font-size: 16px;
    color: #3a3a3a;
    margin-bottom: 24px;
    line-height: 1.4;
}

.onboarding-features {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.onboarding-feature {
    flex: 1;
    background: #f7f7f9;
    border-radius: 16px;
    padding: 12px 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.onboarding-feature-icon {
    font-size: 24px;
}

.onboarding-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.onboarding-category {
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 13px;
    color: #1a1a1a;
}

.onboarding-button {
    background: #0066ff;
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.1s ease;
    margin-bottom: 16px;
    width: 100%;
    max-width: 260px;
}

.onboarding-button:hover {
    background: #0052cc;
}

.onboarding-hint {
    font-size: 13px;
    color: #8e8e93;
    margin: 0;
}

/* Мобильная адаптация */
@media (max-width: 560px) {
    .onboarding-container {
        padding: 24px 20px;
    }
    .onboarding-title {
        font-size: 24px;
    }
    .onboarding-features {
        flex-direction: column;
        gap: 8px;
    }
    .onboarding-feature {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        padding: 10px;
    }
}
