.product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}
.product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.product-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}
.product-breadcrumbs a:hover {
    color: var(--ios-blue);
}
.product-breadcrumbs i {
    font-size: 10px;
}
.boost-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,165,0,0.05));
    border-radius: 20px;
    padding: 16px 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,215,0,0.3);
    flex-wrap: wrap;
}
.boost-alert.top1 {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,165,0,0.1));
    border-color: #FFD700;
}
.boost-alert.featured {
    background: linear-gradient(135deg, rgba(175,82,222,0.1), rgba(255,101,132,0.05));
    border-color: var(--ios-purple);
}
.boost-alert-icon {
    font-size: 36px;
}
.boost-alert-content {
    flex: 1;
}
.boost-alert-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}
.boost-alert-text {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.boost-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ios-orange);
    font-weight: 500;
}
.boost-alert-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    font-weight: 500;
}
.boost-alert-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ios-green);
}
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.product-gallery {
    position: sticky;
    top: 100px;
}
.main-image-container {
    position: relative;
    background: var(--glass-primary);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 1 / 0.9;
}
.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    transition: transform 0.3s;
}
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}
.main-image-container:hover .nav-arrow {
    opacity: 1;
}
.nav-prev {
    left: 16px;
}
.nav-next {
    right: 16px;
}
.image-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    color: white;
    z-index: 10;
}
.image-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}
.image-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}
.top1-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}
.top3-badge {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #333;
}
.sale-badge {
    background: var(--ios-red);
}
.hot-badge {
    background: var(--ios-orange);
}
.new-badge {
    background: var(--ios-green);
}
.zoom-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
    z-index: 2;
}
.zoom-icon:hover {
    background: var(--ios-blue);
    transform: scale(1.05);
}
.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.thumbnail-list::-webkit-scrollbar {
    display: none;
}
.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    background: #ffffff;
    border: 2px solid transparent;
    flex-shrink: 0;
}
.thumbnail.active {
    opacity: 1;
    border-color: var(--ios-blue);
}
.thumbnail:hover:not(.active) {
    opacity: 0.8;
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-thumbnail {
    background: linear-gradient(135deg, #FF3B30, #FF9500);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: white;
    font-size: 14px;
}
.video-thumbnail i {
    font-size: 24px;
}
.product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}
.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-tertiary);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.product-rating-large {
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-rating-large .stars {
    color: var(--ios-yellow);
    font-size: 14px;
}
.rating-value {
    font-weight: 600;
    color: var(--text-primary);
}
.product-sales, .product-views, .product-version {
    display: flex;
    align-items: center;
    gap: 6px;
}
.product-price-block {
    margin: 24px 0;
}
.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.current-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--ios-blue);
}
.sale-price {
    color: var(--ios-red);
}
.old-price {
    font-size: 20px;
    text-decoration: line-through;
    color: var(--text-tertiary);
}
.discount-badge {
    background: var(--ios-red);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}
.price-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
}
.product-short-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--glass-secondary);
    border-radius: 16px;
}
.customization-banner {
    background: linear-gradient(135deg, rgba(0,122,255,0.08), rgba(88,86,214,0.04));
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px solid rgba(0,122,255,0.2);
}
.customization-icon {
    font-size: 48px;
    color: var(--ios-blue);
}
.customization-content {
    flex: 1;
}
.customization-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.customization-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}
.customization-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.customization-features span {
    font-size: 12px;
    color: var(--ios-green);
    display: flex;
    align-items: center;
    gap: 6px;
}
.customization-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.customization-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}
.customization-note {
    font-size: 12px;
    color: var(--text-tertiary);
}
.product-actions {
    margin-bottom: 24px;
}
.buy-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-buy, .btn-cart, .btn-wishlist, .btn-download, .btn-refinement {
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-buy {
    background: var(--gradient-primary);
    color: white;
    flex: 2;
}
.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.btn-cart {
    background: var(--gradient-success);
    border: 1px solid var(--border-light);
    color: #fff;
}
.btn-cart:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}
.btn-wishlist {
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}
.btn-wishlist.active {
    background: var(--ios-red);
    color: white;
    border-color: transparent;
}
.btn-wishlist:hover:not(.active) {
    background: rgba(255,59,48,0.1);
    color: var(--ios-red);
}
.purchased-panel {
    background: linear-gradient(135deg, rgb(255 255 255 / 59%), rgba(10, 132, 255, 0.05));
    border-radius: 20px;
    padding: 20px;
}
.purchased-badge {
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.license-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--glass-primary);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.license-label {
    font-size: 13px;
    color: var(--text-tertiary);
}
.license-key {
    font-family: monospace;
    font-size: 14px;
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 1px;
}
.copy-key-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color 0.2s;
}
.copy-key-btn:hover {
    color: var(--ios-blue);
}
.purchased-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-download {
    background: var(--ios-green);
    color: white;
}
.btn-refinement {
    background: var(--ios-orange);
    color: white;
}
.login-to-buy {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-register {
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-register:hover {
    background: var(--glass-secondary);
    transform: translateY(-2px);
}
.installment-info {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.product-guarantees {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--glass-secondary);
    border-radius: 20px;
    flex-wrap: wrap;
}
.guarantee-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.guarantee-item i {
    font-size: 24px;
    color: var(--ios-blue);
}
.guarantee-item strong {
    font-size: 13px;
    display: block;
}
.guarantee-item span {
    font-size: 11px;
    color: var(--text-tertiary);
}
.product-details {
    background: var(--glass-secondary);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}
.detail-item:last-child {
    border-bottom: none;
}
.detail-label {
    color: var(--text-tertiary);
}
.detail-value {
    font-weight: 500;
    color: var(--text-primary);
}
.developer-link {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-primary);
}
.developer-link:hover {
    color: var(--ios-blue);
}
.verified-badge {
    color: var(--ios-green);
    font-size: 12px;
}
.info-tooltip {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    margin-left: 4px;
}
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.share-buttons span {
    font-size: 13px;
    color: var(--text-tertiary);
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}
.share-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}
.product-tabs {
    margin-top: 48px;
}
.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs-header::-webkit-scrollbar {
    display: none;
}
.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-tertiary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tab-btn.active {
    color: var(--ios-blue);
    border-bottom: 2px solid var(--ios-blue);
}
.tab-count {
    background: var(--glass-secondary);
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-description {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
}
.features-section, .use-cases-section, .integrations-section {
    margin-bottom: 32px;
}
.features-section h3, .use-cases-section h3, .integrations-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
}
.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}
.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--glass-secondary);
    border-radius: 12px;
}
.features-list li i {
    color: var(--ios-green);
}
.use-cases-list, .integrations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.use-case-tag, .integration-tag {
    padding: 6px 16px;
    background: var(--glass-secondary);
    border-radius: 30px;
    font-size: 13px;
}
.specifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}
.spec-card {
    background: var(--glass-secondary);
    border-radius: 20px;
    padding: 20px;
}
.spec-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.spec-table {
    width: 100%;
}
.spec-table tr {
    border-bottom: 1px solid var(--border-light);
}
.spec-table td {
    padding: 10px 0;
}
.spec-table td:first-child {
    color: var(--text-tertiary);
    width: 40%;
}
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tech-badge {
    padding: 6px 14px;
    background: var(--glass-primary);
    border-radius: 30px;
    font-size: 13px;
}
.tech-badge.framework {
    background: rgba(0,122,255,0.1);
    color: var(--ios-blue);
}
.tech-badge.database {
    background: rgba(52,199,89,0.1);
    color: var(--ios-green);
}
.languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.lang-badge {
    padding: 6px 14px;
    background: var(--glass-primary);
    border-radius: 30px;
    font-size: 13px;
}
.versions-timeline {
    position: relative;
    padding-left: 30px;
}
.version-entry {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}
.version-marker {
    position: relative;
    width: 30px;
    flex-shrink: 0;
}
.version-dot {
    width: 12px;
    height: 12px;
    background: var(--ios-blue);
    border-radius: 50%;
    position: absolute;
    left: 9px;
    top: 8px;
    z-index: 2;
}
.version-line {
    position: absolute;
    left: 14px;
    top: 28px;
    bottom: -30px;
    width: 2px;
    background: var(--border-light);
}
.version-entry:last-child .version-line {
    display: none;
}
.version-content {
    flex: 1;
    background: var(--glass-secondary);
    border-radius: 20px;
    padding: 20px;
}
.version-entry.latest .version-content {
    border: 1px solid var(--ios-blue);
}
.version-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.version-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.version-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.latest-badge {
    background: var(--ios-green);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
}
.version-date, .version-size {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.version-actions {
    margin-left: auto;
}
.version-download {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ios-blue);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.version-changelog {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
}
.no-changelog {
    color: var(--text-tertiary);
    font-style: italic;
}
.reviews-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--glass-secondary);
    border-radius: 24px;
    flex-wrap: wrap;
}
.rating-summary-box {
    text-align: center;
    min-width: 150px;
}
.rating-big {
    font-size: 48px;
    font-weight: 800;
    color: var(--ios-yellow);
}
.rating-stars-big {
    font-size: 20px;
    color: var(--ios-yellow);
    margin: 8px 0;
}
.rating-count-big {
    font-size: 13px;
    color: var(--text-tertiary);
}
.rating-distribution {
    flex: 1;
}
.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.rating-label {
    width: 60px;
    font-size: 13px;
}
.rating-bar {
    flex: 1;
    height: 8px;
    background: var(--glass-primary);
    border-radius: 4px;
    overflow: hidden;
}
.rating-bar-fill {
    height: 100%;
    background: var(--ios-yellow);
    border-radius: 4px;
}
.rating-count-small {
    width: 40px;
    font-size: 12px;
    color: var(--text-tertiary);
}
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}
.review-card {
    background: var(--glass-secondary);
    border-radius: 20px;
    padding: 20px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    overflow: hidden;
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.verified-icon {
    color: var(--ios-green);
    font-size: 12px;
}
.review-stars {
    color: var(--ios-yellow);
    font-size: 13px;
    margin-top: 4px;
}
.review-date {
    font-size: 12px;
    color: var(--text-tertiary);
}
.review-content {
    color: var(--text-secondary);
    line-height: 1.6;
}
.review-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.review-helpful {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.review-helpful:hover {
    color: var(--ios-blue);
}
.empty-reviews {
    text-align: center;
    padding: 60px;
    color: var(--text-tertiary);
}
.empty-reviews i {
    font-size: 48px;
    margin-bottom: 16px;
}
.write-review {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}
.write-review h3 {
    font-size: 18px;
    margin-bottom: 20px;
}
.rating-select {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.rating-stars-input {
    display: flex;
    gap: 8px;
}
.rating-stars-input i {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color 0.2s;
}
.rating-stars-input i:hover,
.rating-stars-input i.active {
    color: var(--ios-yellow);
}
.faq-section {
    background: var(--glass-secondary);
    border-radius: 24px;
    padding: 24px;
}
.faq-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}
.faq-cat {
    padding: 8px 20px;
    background: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: all 0.2s;
}
.faq-cat.active {
    background: var(--gradient-primary);
    color: white;
}
.faq-category-group {
    display: none;
}
.faq-category-group.active {
    display: block;
}
.faq-item {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.faq-question {
    padding: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.faq-question:hover {
    background: var(--glass-primary);
}
.faq-question i {
    transition: transform 0.3s;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 16px 16px;
    display: none;
    color: var(--text-secondary);
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    display: block;
}
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.support-card {
    text-align: center;
    padding: 32px 24px;
        background: var(--glass-secondary);
    border-radius: 24px;
    transition: all 0.2s;
}
.support-card:hover {
    transform: translateY(-4px);
}
.support-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--ios-blue);
}
.support-card h3 {
    margin-bottom: 12px;
}
.support-card p {
    color: var(--text-tertiary);
    margin-bottom: 20px;
}
.similar-tech-section {
    margin-top: 60px;
}
.similar-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}
.similar-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
    padding: 8px 0;
}
.similar-track::-webkit-scrollbar {
    display: none;
}
.similar-card {
    flex: 0 0 200px;
    background: var(--glass-primary);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
}
.similar-card:hover {
    transform: translateY(-4px);
    border-color: var(--ios-blue);
}
.similar-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.similar-info {
    padding: 12px;
}
.similar-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.similar-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ios-blue);
}
.similar-rating {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}
.slider-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}
.slider-nav:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}
.recommended-section, .developer-products-section {
    margin-top: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
}

.section-link {
    color: var(--ios-blue);
    text-decoration: none;
    font-size: 14px;
}

.slider-controls {
    display: flex;
    gap: 8px;
}

.slider-control {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.slider-control:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ===== СЛАЙДЕР С РЕКОМЕНДАЦИЯМИ ===== */
.recommended-slider {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
    
    /* Полностью скрываем полосу прокрутки */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE и Edge */
}

.recommended-slider:active {
    cursor: grabbing;
}

/* Скрываем для Chrome/Safari/Opera */
.recommended-slider::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Альтернатива - если нужно оставить тонкую полосу (опционально) */
.recommended-slider.has-scrollbar {
    scrollbar-width: thin;
}

.recommended-slider.has-scrollbar::-webkit-scrollbar {
    display: block;
    height: 4px;
}

.recommended-slider.has-scrollbar::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 4px;
}

.recommended-slider.has-scrollbar::-webkit-scrollbar-thumb {
    background: var(--ios-blue);
    border-radius: 4px;
}

.recommended-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 8px 4px 20px 4px;
    user-select: none;
}

.recommended-card {
    background: var(--glass-primary);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
    width: 220px;
    flex-shrink: 0;
    user-select: none;
}

/* Запрещаем выделение текста при drag */
.recommended-card * {
    user-select: none;
    pointer-events: none;
}

/* Но ссылка должна быть кликабельной */
.recommended-card a {
    pointer-events: auto;
}

.rec-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 0.9;
}

.rec-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    pointer-events: none;  /* Предотвращаем конфликты при drag */
}

.recommended-card:hover .rec-image {
    transform: scale(1.05);
}

.rec-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--ios-red);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    pointer-events: none;  /* Чтобы не мешать drag */
}

.rec-info {
    padding: 12px;
    pointer-events: none;  /* Предотвращаем выделение текста при drag */
}

.rec-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.rec-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.rec-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rec-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ios-blue);
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .recommended-card {
        width: 180px;
    }
    
    .recommended-slider {
        cursor: auto;  /* На мобильных курсор не меняем */
    }
}

@media (max-width: 480px) {
    .recommended-card {
        width: 150px;
    }
}
.developer-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.dev-product-card {
    display: flex;
    gap: 12px;
    background: var(--glass-secondary);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.dev-product-card:hover {
    background: var(--glass-secondary);
    transform: translateX(4px);
}
.dev-product-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}
.dev-product-info {
    flex: 1;
}
.dev-product-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dev-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--ios-blue);
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.modal-content {
    background: var(--glass-primary);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    border: 1px solid var(--border-light);
}
.modal-zoom .modal-content {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    max-width: 90vw;
    max-height: 90vh;
}
.zoom-gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 32px;
    transition: all 0.3s;
    z-index: 10;
    border: none;
}
.zoom-nav:hover {
    background: var(--ios-blue);
    transform: translateY(-50%) scale(1.1);
}
.zoom-nav.prev {
    left: 20px;
}
.zoom-nav.next {
    right: 20px;
}
.modal-zoom img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
}
.zoom-thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.zoom-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.zoom-thumb.active {
    opacity: 1;
    border-color: var(--ios-blue);
}
.zoom-thumb:hover {
    opacity: 0.8;
}
.modal-video .modal-content {
    max-width: 800px;
    background: transparent;
    backdrop-filter: none;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-error {
    text-align: center;
    padding: 60px;
    background: var(--glass-primary);
    border-radius: 16px;
}
.video-error i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-tertiary);
}
.modal-small {
    max-width: 500px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}
.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.2s;
    padding: 8px;
    border-radius: 50%;
}
.modal-close:hover {
    background: var(--glass-secondary);
    transform: rotate(90deg);
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-secondary);
    border-top-color: var(--ios-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@media (max-width: 1024px) {
    .product-container {
        gap: 32px;
    }
    .specifications-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .product-page {
        padding: 16px;
    }
    .product-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-gallery {
        position: static;
    }
    .product-title {
        font-size: 24px;
    }
    .current-price {
        font-size: 28px;
    }
    .buy-actions {
        flex-direction: column;
    }
    .btn-buy, .btn-cart, .btn-wishlist {
        width: 100%;
        justify-content: center;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
    .tabs-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .recommended-track {
        gap: 16px;
    }
    .recommended-card {
        width: 180px;
    }
    .developer-products-grid {
        grid-template-columns: 1fr;
    }
    .reviews-summary {
        flex-direction: column;
        align-items: center;
    }
    .price-note {
        font-size: 11px;
    }
    .similar-card {
        flex: 0 0 160px;
    }
    .zoom-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .customization-banner {
        flex-direction: column;
        text-align: center;
    }
    .customization-features {
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .boost-alert {
        flex-direction: column;
        text-align: center;
    }
    .boost-alert-stats {
        justify-content: center;
    }
    .thumbnail-list {
        justify-content: center;
    }
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    .product-meta-row {
        gap: 12px;
    }
    .product-guarantees {
        justify-content: center;
    }
    .similar-card {
        flex: 0 0 140px;
    }
    .zoom-thumb {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ЗАПРОСА ДОРАБОТКИ
   ============================================ */

.refinement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refinement-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.3s ease;
}

.refinement-modal-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: var(--glass-primary);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.refinement-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0,122,255,0.1), rgba(175,82,222,0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.refinement-modal-icon {
    font-size: 32px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.refinement-modal-header h2 {
    flex: 1;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.refinement-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.refinement-modal-close:hover {
    background: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
    transform: rotate(90deg);
}

.refinement-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scrollbar-width: thin;
}

.refinement-product-info {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 24px;
}

.refinement-product-info img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.refinement-product-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.refinement-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ios-blue);
}

/* Типы доработок */
.refinement-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.refinement-type-card {
    padding: 16px 12px;
    background: rgb(211 211 211 / 20%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.refinement-type-card:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-2px);
}

.refinement-type-card input {
    display: none;
}

.refinement-type-card.selected {
    background: linear-gradient(135deg, rgba(0,122,255,0.2), rgba(175,82,222,0.1));
    border-color: var(--ios-blue);
    transform: scale(1.02);
}

.refinement-type-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.refinement-type-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.refinement-type-desc {
    font-size: 10px;
    color: var(--text-tertiary);
}

/* Срочность */
.refinement-urgency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.refinement-urgency-card {
    padding: 14px 12px;
    background: rgb(211 211 211 / 20%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.refinement-urgency-card input {
    display: none;
}

.refinement-urgency-card.selected {
    background: rgba(255, 149, 0, 0.15);
    border-color: #FF9500;
}

.refinement-urgency-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.refinement-urgency-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.refinement-urgency-days {
    font-size: 11px;
    color: var(--text-tertiary);
}

.refinement-urgency-price {
    font-size: 10px;
    color: #FF9500;
    margin-top: 4px;
}

/* Форма */
.refinement-form-group {
    margin-bottom: 24px;
}

.refinement-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.refinement-input,
.refinement-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgb(211 211 211 / 20%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.refinement-input:focus,
.refinement-textarea:focus {
    outline: none;
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.refinement-textarea {
    resize: vertical;
    font-family: inherit;
}

/* Слайдер сложности */
.refinement-complexity-slider {
    padding: 8px 0;
}

.refinement-complexity-slider input {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #34C759, #FFCC00, #FF3B30, #AF52DE, #1A1A2E);
    border-radius: 2px;
    outline: none;
}

.refinement-complexity-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(211 211 211 / 20%);
    border: 2px solid var(--ios-blue);
}

.refinement-complexity-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Бюджет */
.refinement-budget-input {
    display: flex;
    gap: 12px;
    align-items: center;
}

.refinement-budget-input input {
    flex: 1;
}

.refinement-budget-hint {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Файлы */
.refinement-file-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.refinement-file-btn {
    padding: 12px 20px;
    background: rgba(0, 122, 255, 0.15);
    border: 1px dashed var(--ios-blue);
    border-radius: 16px;
    cursor: pointer;
    color: var(--ios-blue);
    font-weight: 500;
    transition: all 0.2s;
}

.refinement-file-btn:hover {
    background: rgba(0, 122, 255, 0.25);
}

.refinement-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.refinement-file-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
}

.refinement-file-remove {
    background: none;
    border: none;
    color: #FF3B30;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
}

.refinement-hint {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Опции */
.refinement-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.refinement-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    padding: 8px 12px;
    background: rgb(211 211 211 / 20%);
    border-radius: 12px;
    transition: all 0.2s;
}

.refinement-option input {
    display: none;
}

.refinement-option-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
}

.refinement-option input:checked + .refinement-option-checkbox {
    background: var(--ios-blue);
    border-color: var(--ios-blue);
}

.refinement-option input:checked + .refinement-option-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.refinement-option small {
    font-size: 10px;
    color: var(--text-tertiary);
}

/* Оценка */
.refinement-estimate {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0,122,255,0.1), rgba(175,82,222,0.05));
    border-radius: 20px;
    margin: 24px 0;
}

.refinement-estimate-icon {
    font-size: 36px;
}

.refinement-estimate-content {
    flex: 1;
}

.refinement-estimate-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.refinement-estimate-price {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.refinement-estimate-note {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Кнопки в футере */
.refinement-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.refinement-btn {
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.refinement-btn-primary {
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    color: white;
}

.refinement-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.refinement-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.refinement-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .refinement-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .refinement-urgency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .refinement-modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .refinement-modal-body {
        padding: 16px;
    }
}

/* Стили для карточек выбора лицензии */
.license-option-card {
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    cursor: pointer;
}

.license-option-card:hover {
    transform: translateY(-3px);
}

.license-option-card.active {
    background: rgba(0, 122, 255, 0.15) !important;
    border-color: #007AFF !important;
}

.license-option-card[data-license="extended"].active {
    background: rgba(175, 82, 222, 0.15) !important;
    border-color: #AF52DE !important;
}

.purchased-panel {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.1), rgba(10, 132, 255, 0.05));
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.purchased-badge {
    background: var(--ios-green);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.license-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgb(211 211 211 / 20%);
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.license-key {
    font-family: monospace;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 1px;
    word-break: break-all;
}

.copy-key-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 6px 12px;
    border-radius: 30px;
    transition: all 0.2s;
}

.copy-key-btn:hover {
    background: rgba(0, 122, 255, 0.2);
    color: var(--ios-blue);
}

.purchased-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-download {
    background: var(--ios-green);
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.btn-refinement {
    background: var(--ios-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-refinement:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.login-to-buy {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-register {
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-register:hover {
    background: var(--glass-secondary);
    transform: translateY(-2px);
}


.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.chat-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.new-message-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.new-message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,122,255,0.4);
}

.chat-messages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-message {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--glass-secondary);
    border-radius: 20px;
    transition: all 0.2s;
}

.chat-message:hover {
    background: var(--glass-secondary);
}

.chat-message.solution-message {
    background: linear-gradient(135deg, rgba(48,209,88,0.05), rgba(48,209,88,0.02));
    border-left: 3px solid #30D158;
}

.chat-message-avatar {
    flex-shrink: 0;
}

.chat-message-avatar img,
.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.chat-message-content {
    flex: 1;
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.chat-message-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.author-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.user-badge {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: 500;
}

.admin-badge {
    background: rgba(255,69,58,0.15);
    color: #FF453A;
}

.moderator-badge {
    background: rgba(10,132,255,0.15);
    color: #0A84FF;
}

.publisher-badge {
    background: rgba(48,209,88,0.15);
    color: #30D158;
}

.solution-badge {
    background: rgba(48,209,88,0.15);
    color: #30D158;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 30px;
}

.pinned-badge {
    background: rgba(255,215,0,0.15);
    color: #FFD700;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 30px;
}

.chat-message-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.chat-message-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    word-break: break-word;
}

.chat-message-text pre {
    background: rgba(0,0,0,0.2);
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 12px 0;
}

.chat-message-text code {
    font-family: monospace;
    font-size: 13px;
    background: rgba(0,0,0,0.15);
    padding: 2px 6px;
    border-radius: 6px;
}

.chat-message-text a {
    color: var(--ios-blue);
    text-decoration: none;
}

.chat-message-text a:hover {
    text-decoration: underline;
}

.chat-message-actions {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 20px;
}

.action-btn:hover {
    background: var(--glass-primary);
}

.like-btn.liked {
    color: #FF3B30;
}

.delete-btn:hover {
    color: #FF3B30;
}

.reply-form-card {
    background: var(--glass-primary);
    border-radius: 24px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid var(--border-light);
}

.reply-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.close-reply-form {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 4px 8px;
    border-radius: 50%;
}

.close-reply-form:hover {
    background: var(--glass-secondary);
    color: var(--ios-red);
}

.reply-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--ios-blue);
}

.reply-toolbar {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 6px 12px;
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: var(--ios-blue);
    color: white;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.btn-primary-sm {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
}

.btn-outline-sm {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
}

.btn-outline-sm:hover {
    background: var(--glass-secondary);
}

.empty-chat {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

.empty-chat i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-chat h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-chat p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .chat-message {
        padding: 16px;
        gap: 12px;
    }
    
    .chat-message-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chat-message-avatar img,
    .avatar-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .new-message-btn {
        width: 100%;
        justify-content: center;
    }
    
    .reply-form-card {
        padding: 16px;
    }
}

/* ============================================
   DISCUSSION SYSTEM STYLES
   ============================================ */

/* Анимированные точки загрузки */
.dots-loader {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dots-loader span {
    width: 8px;
    height: 8px;
    background: var(--ios-blue);
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.dots-loader span:nth-child(1) { animation-delay: 0s; }
.dots-loader span:nth-child(2) { animation-delay: 0.2s; }
.dots-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 60%, 100% { transform: scale(1); opacity: 0.5; }
    30% { transform: scale(1.3); opacity: 1; }
}

/* Карточки обсуждений */
.discussions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.discussions-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.new-topic-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.new-topic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,122,255,0.4);
}

.discussion-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 16px;
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    border-color: transparent;
    color: white;
}

.discussion-card {
    background: var(--glass-secondary);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid var(--border-light);
}

.discussion-card:hover {
    transform: translateX(4px);
    border-color: var(--ios-blue);
}

.discussion-pinned {
    background: rgba(255,215,0,0.05);
    border-color: rgba(255,215,0,0.3);
}

.discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.discussion-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.discussion-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-pinned {
    background: rgba(255,215,0,0.15);
    color: #FFD700;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.badge-resolved {
    background: rgba(48,209,88,0.15);
    color: #30D158;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.discussion-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

.discussion-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discussion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-tertiary);
    flex-wrap: wrap;
    gap: 12px;
}

/* Модальное окно темы */
.topic-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.topic-modal.active {
    display: flex;
}

.topic-modal-content {
    background: var(--glass-primary);
    backdrop-filter: blur(40px);
    border-radius: 28px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.topic-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.topic-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Сообщения в теме */
.message-item {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--glass-secondary);
    border-radius: 20px;
}

.message-item.solution {
    border: 1px solid #30D158;
    background: rgba(48,209,88,0.05);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.message-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.message-author-info {
    display: flex;
    flex-direction: column;
}

.message-username {
    font-weight: 600;
}

.message-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.badge-purchased {
    background: rgba(48,209,88,0.15);
    color: #30D158;
}

.badge-developer {
    background: rgba(10,132,255,0.15);
    color: #0A84FF;
}

.badge-admin {
    background: rgba(255,69,58,0.15);
    color: #FF453A;
}

.message-date {
    font-size: 11px;
    color: var(--text-tertiary);
}

.message-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.message-content pre {
    background: #1a1a2e;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 12px 0;
}

.message-content code {
    font-family: monospace;
    font-size: 13px;
}

.message-actions {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.message-action-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    transition: all 0.2s;
}

.message-action-btn:hover {
    color: var(--ios-blue);
}

.message-action-btn.liked {
    color: var(--ios-red);
}

/* Форма нового сообщения */
.reply-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.reply-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--ios-blue);
}

.reply-toolbar {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 6px 12px;
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: var(--ios-blue);
    color: white;
}

.reply-submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Форма новой темы */
.new-topic-modal .topic-modal-content {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ios-blue);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    padding: 10px 24px;
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    color: var(--text-secondary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .topic-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .discussions-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .new-topic-btn {
        justify-content: center;
    }
    
    .discussion-header {
        flex-direction: column;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Стили для вложенных комментариев */
.chat-replies {
    margin-top: 16px;
    padding-top: 8px;
}

.chat-message {
    transition: all 0.2s;
}

.chat-message .chat-message {
    background: rgb(211 211 211 / 20%);
    margin-top: 12px;
}

.chat-show-more {
    margin-top: 12px;
    padding-left: 48px;
}

.show-more-replies {
    background: none;
    border: none;
    color: var(--ios-blue);
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.show-more-replies:hover {
    background: rgba(0, 122, 255, 0.1);
}

/* Анимация для новых комментариев */
@keyframes highlightNew {
    0% { background: rgba(0, 122, 255, 0.2); }
    100% { background: transparent; }
}

.chat-message.new-message {
    animation: highlightNew 1s ease-out;
}
/* ============================================
   TWITTER-ПОДОБНАЯ ЛЕНТА КОММЕНТАРИЕВ ДЛЯ МАРКЕТПЛЕЙСА КОДА
   ============================================ */

/* Основной контейнер ленты */
.chat-messages-list {
    display: flex;
    flex-direction: column;
}

/* Карточка твита/комментария */
.tweet-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 20px;
    background: var(--glass-primary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s;
}

.tweet-item:hover {
    background: var(--glass-secondary);
}

.tweet-item.tweet-pinned {
    background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(255,215,0,0.02));
    border-left: 3px solid #FFD700;
}

.tweet-item.tweet-solution {
    background: linear-gradient(135deg, rgba(48,209,88,0.05), rgba(48,209,88,0.02));
    border-left: 3px solid #30D158;
}

/* Аватар */
.tweet-avatar {
    flex-shrink: 0;
}

.tweet-avatar img,
.tweet-avatar .avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.tweet-avatar .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

/* Контент твита */
.tweet-content {
    flex: 1;
    min-width: 0;
}

/* Шапка твита */
.tweet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.tweet-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tweet-username {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.tweet-handle {
    font-size: 13px;
    color: var(--text-tertiary);
}

.user-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.admin-badge {
    background: rgba(255,69,58,0.15);
    color: #FF453A;
}

.moderator-badge {
    background: rgba(10,132,255,0.15);
    color: #0A84FF;
}

.publisher-badge {
    background: rgba(48,209,88,0.15);
    color: #30D158;
}

.buyer-badge {
    background: rgba(255,149,0,0.15);
    color: #FF9F0A;
}

.tweet-date {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Текст твита */
.tweet-text {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 15px;
    word-break: break-word;
}

.tweet-text pre {
    background: rgb(211 211 211 / 20%);
    padding: 12px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 8px 0;
    font-size: 13px;
}

.tweet-text code {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.15);
    padding: 2px 6px;
    border-radius: 6px;
}

.tweet-text a {
    color: var(--ios-blue);
    text-decoration: none;
}

.tweet-text a:hover {
    text-decoration: underline;
}

/* Действия (лайки, ответы, удаление) */
.tweet-actions {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.tweet-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 30px;
    transition: all 0.2s;
}

.tweet-action:hover {
    background: var(--glass-secondary);
}

.reply-action:hover {
    color: var(--ios-blue);
}

.like-action {
    transition: all 0.2s;
}

.like-action:hover {
    color: #FF3B30;
}

.like-action.liked {
    color: #FF3B30;
}

.like-action.liked i {
    animation: likePop 0.3s ease;
}

@keyframes likePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.delete-action:hover {
    color: #FF3B30;
}

/* Вложенные ответы */
.tweet-replies {
    margin-top: 12px;
    padding-left: 0;
    border-left: 2px solid var(--border-light);
}

.tweet-item .tweet-item {
    margin-left: 0;
    padding-left: 0;
}

.tweet-item .tweet-item .tweet-avatar img,
.tweet-item .tweet-item .avatar-placeholder {
    width: 36px;
    height: 36px;
}

/* Кнопка показать ещё */
.tweet-show-more {
    margin-top: 12px;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--ios-blue);
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 30px;
    transition: all 0.2s;
}

.show-more-btn:hover {
    background: rgba(0, 122, 255, 0.1);
}

/* Форма ответа */
.tweet-reply-form {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.reply-form-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.reply-avatar {
    flex-shrink: 0;
}

.reply-avatar img,
.reply-avatar .avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.reply-input-wrapper {
    flex: 1;
}

.reply-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--glass-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.reply-input:focus {
    outline: none;
    border-color: var(--ios-blue);
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* Пустое состояние */
.empty-chat {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

.empty-chat i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-chat h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Заголовок чата */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.chat-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.chat-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.new-message-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.new-message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .tweet-item {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .tweet-avatar img,
    .tweet-avatar .avatar-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .tweet-username {
        font-size: 14px;
    }
    
    .tweet-handle,
    .tweet-date {
        font-size: 11px;
    }
    
    .tweet-text {
        font-size: 14px;
    }
    
    .tweet-actions {
        gap: 16px;
    }
    
    .chat-stats {
        font-size: 12px;
    }
    
    .new-message-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tweet-actions {
        gap: 12px;
    }
    
    .tweet-action span {
        display: none;
    }
    
    .tweet-action {
        padding: 6px;
    }
}

/* Стили для вложенных комментариев с плавными отступами */
.tweet-item {
    transition: all 0.2s;
}

.tweet-replies {
    margin-top: 8px;
}

.tweet-item .tweet-item {
    margin-top: 8px;
    padding-bottom: 8px;
}

/* Разные отступы для разных уровней */
.tweet-item[data-level="1"] { margin-left: 44px; }
.tweet-item[data-level="2"] { margin-left: 88px; }
.tweet-item[data-level="3"] { margin-left: 132px; }
.tweet-item[data-level="4"] { margin-left: 176px; }
.tweet-item[data-level="5"] { margin-left: 220px; }

.refinement-accordion {
    margin: 20px 0;
    border-radius: 20px;
    background: var(--glass-secondary);
    overflow: hidden;
    transition: all 0.3s;
}
.refinement-accordion-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--glass-primary);
}
.refinement-accordion-header:hover {
    background: rgba(0,122,255,0.05);
}
.accordion-icon { font-size: 28px; }
.accordion-title { flex: 1; }
.accordion-title strong { display: block; font-size: 16px; }
.accordion-subtitle { font-size: 12px; color: var(--text-tertiary); }
.accordion-arrow i { transition: transform 0.3s; }
.refinement-accordion.active .accordion-arrow i { transform: rotate(180deg); }
.refinement-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}
.refinement-accordion.active .refinement-accordion-body {
    max-height: 300px; /* Достаточно для содержимого */
    padding: 0 20px 20px 20px;
}
.customization-content-compact {
    padding-top: 8px;
}
.customization-features-compact {
    display: flex;
    gap: 20px;
    margin: 12px 0;
    font-size: 13px;
    flex-wrap: wrap;
}

.rfp-container { max-width: 800px; margin: 0 auto; }
.rfp-header { text-align: center; padding: 30px 20px; background: var(--glass-secondary); border-radius: 24px; margin-bottom: 30px; }
.rfp-list { display: flex; flex-direction: column; gap: 16px; }
.rfp-item { background: var(--glass-primary); border-radius: 20px; padding: 20px; border-left: 4px solid var(--ios-blue); }
.rfp-status { display: inline-block; padding: 4px 12px; border-radius: 30px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.status-pending { background: #FF9F0A20; color: #FF9F0A; }
.status-accepted { background: #30D15820; color: #30D158; }
.status-in_progress { background: #0A84FF20; color: #0A84FF; }
.status-completed { background: #30D15820; color: #30D158; }
.rfp-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.rfp-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-tertiary); margin-bottom: 12px; }
.rfp-link { color: var(--ios-blue); text-decoration: none; font-weight: 500; }

/* ============================================
   МОДАЛЬНЫЕ ОКНА НА МОБИЛЬНЫХ - ВЕСЬ ЭКРАН
   ============================================ */

@media (max-width: 768px) {
    /* Общие стили для всех модалок на мобильных */
    .modal,
    .modal-lib,
    .topic-modal,
    .refinement-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(20px) !important;
    }
    
    /* Контейнер модалки на весь экран */
    .modal-content,
    .modal-content-lib,
    .topic-modal-content,
    .refinement-modal-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;  /* Убираем скругление углов */
        border: none !important;
        background: #fff !important;
        backdrop-filter: blur(30px) !important;
    }
    
    /* Специфично для refinement-modal-container */
    .refinement-modal-container {
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        animation: none !important; /* Убираем анимацию на мобильных */
    }
    
    /* Убираем overlay эффект или делаем его прозрачным */
    .refinement-modal-overlay,
    .modal-backdrop {
        display: none !important;
    }
    
    /* Заголовок модалки адаптируем */
    .refinement-modal-header,
    .modal-header-lib,
    .topic-modal-header {
        padding: 16px 20px !important;
        position: sticky !important;
        top: 0 !important;
        background: inherit !important;
        backdrop-filter: blur(40px) !important;
        z-index: 10 !important;
        border-bottom: 1px solid var(--border-light) !important;
    }
    
    /* Тело модалки с прокруткой */
    .refinement-modal-body,
    .modal-body-lib,
    .topic-modal-body {
        padding: 20px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1 !important;
    }
    
    /* Футер модалки */
    .refinement-modal-footer,
    .modal-footer-lib {
        padding: 16px 20px !important;
        position: sticky !important;
        bottom: 0 !important;
        background: inherit !important;
        backdrop-filter: blur(40px) !important;
        border-top: 1px solid var(--border-light) !important;
        z-index: 10 !important;
    }
    
    /* Кнопка закрытия увеличивается для удобства */
    .refinement-modal-close,
    .modal-close-lib,
    .topic-modal-header .modal-close {
        width: 44px !important;
        height: 44px !important;
        font-size: 24px !important;
    }
    
    /* Для модалки с видео */
    .modal-video .modal-content {
        border-radius: 0 !important;
    }
    
    .video-container {
        border-radius: 0 !important;
    }
    
    /* Для модалки с зумом изображений */
    .modal-zoom .modal-content {
        background: rgba(0, 0, 0, 0.95) !important;
        border-radius: 0 !important;
    }
    
    /* Для модалки с лицензией */
    .modal-small {
        border-radius: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }
    
    /* Сетка типов доработок на мобильных */
    .refinement-type-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* Сетка срочности на мобильных */
    .refinement-urgency-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Опции доработок */
    .refinement-options-grid {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Оценка стоимости */
    .refinement-estimate {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    /* Кнопки в футере на всю ширину */
    .refinement-modal-footer {
        flex-direction: column-reverse !important;
        gap: 12px !important;
    }
    
    .refinement-modal-footer .refinement-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px !important;
    }
}

/* Для очень маленьких экранов (iPhone SE и подобные) */
@media (max-width: 480px) {
    .refinement-type-grid {
        grid-template-columns: 1fr !important;
    }
    
    .refinement-modal-body {
        padding: 16px !important;
    }
    
    /* Уменьшаем отступы */
    .refinement-form-group {
        margin-bottom: 20px !important;
    }
    
    /* Делаем инпуты удобнее для пальцев */
    .refinement-input,
    .refinement-textarea,
    .reply-input {
        font-size: 16px !important; /* Предотвращает зум на iOS */
        padding: 14px !important;
    }
}
/* ============================================
   RFP / ТЕХНИЧЕСКОЕ ЗАДАНИЕ - СТИЛИ
   ============================================ */

.rfp-container {
    max-width: 100%;
}

/* Блок "Требуется покупка" */
.rfp-purchase-required {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.05));
    border-radius: 32px;
    border: 1px solid var(--border-light);
}

.rfp-purchase-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.rfp-purchase-required h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.rfp-purchase-required p {
    color: var(--text-tertiary);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.rfp-purchase-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Заголовок для купленных товаров */
.rfp-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(175, 82, 222, 0.04));
    border-radius: 28px;
    margin-bottom: 24px;
}

.rfp-header-icon {
    font-size: 48px;
}

.rfp-header-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.rfp-header-text p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Кнопка создания */
.rfp-create-btn-wrapper {
    margin-bottom: 32px;
}

.rfp-create-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #34C759, #5AC8FA);
    border: none;
    border-radius: 60px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.rfp-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 199, 89, 0.3);
    gap: 16px;
}

/* Список запросов */
.rfp-list {
    margin-top: 8px;
}

.rfp-list-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rfp-list-count {
    background: var(--glass-secondary);
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: normal;
}

/* Карточка запроса */
.rfp-item-card {
    background: var(--glass-secondary);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.rfp-item-card:hover {
    transform: translateX(4px);
    border-color: var(--ios-blue);
}

.rfp-item-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.rfp-item-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rfp-unread-badge {
    background: rgba(10, 132, 255, 0.15);
    color: #0A84FF;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
}

.rfp-item-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.rfp-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rfp-item-urgent {
    color: #FF9500;
}

.rfp-item-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    padding-left: 8px;
    border-left: 3px solid var(--ios-blue);
}

.rfp-item-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.rfp-item-btn {
    padding: 8px 18px;
    background: rgba(0, 122, 255, 0.1);
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ios-blue);
}

.rfp-item-btn:hover {
    background: var(--ios-blue);
    color: white;
    transform: translateY(-2px);
}

.rfp-item-btn-danger {
    background: rgba(255, 69, 58, 0.1);
    color: #FF453A;
}

.rfp-item-btn-danger:hover {
    background: #FF453A;
    color: white;
}

.rfp-btn-badge {
    background: var(--ios-red);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

/* Пустое состояние */
.rfp-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--glass-secondary);
    border-radius: 24px;
}

.rfp-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.rfp-empty-state p {
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* Адаптив */
@media (max-width: 768px) {
    .rfp-purchase-required {
        padding: 40px 20px;
    }
    
    .rfp-purchase-required h3 {
        font-size: 20px;
    }
    
    .rfp-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .rfp-item-card {
        padding: 16px;
    }
    
    .rfp-item-title {
        font-size: 15px;
    }
    
    .rfp-item-meta {
        gap: 12px;
        font-size: 11px;
    }
    
    .rfp-item-actions {
        justify-content: center;
    }
    
    .rfp-item-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* Фикс для горизонтального скролла */
.similar-track,
.recommended-track {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    cursor: grab;
}

.similar-track:active,
.recommended-track:active {
    cursor: grabbing;
}

.similar-track::-webkit-scrollbar,
.recommended-track::-webkit-scrollbar {
    height: 4px;
}

.similar-track::-webkit-scrollbar-track,
.recommended-track::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 4px;
}

.similar-track::-webkit-scrollbar-thumb,
.recommended-track::-webkit-scrollbar-thumb {
    background: var(--ios-blue);
    border-radius: 4px;
}

/* Кнопки навигации */
.slider-nav,
.slider-control {
    flex-shrink: 0;
    z-index: 10;
}

.slider-nav.disabled,
.slider-control.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Скрываем скроллбар на мобильных если нужно */
@media (max-width: 768px) {
    .similar-track::-webkit-scrollbar,
    .recommended-track::-webkit-scrollbar {
        display: none;
    }
}

/* ============================================
   FIX: ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ ДЛЯ RECOMMENDED-SLIDER
   ============================================ */

.recommended-section {
    margin-top: 60px;
    overflow: hidden;
}

.recommended-slider {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;  /* Плавный скролл на iOS */
    scroll-behavior: smooth;
    cursor: grab;
    scrollbar-width: thin;  /* Тонкий скроллбар на Firefox */
}

.recommended-slider:active {
    cursor: grabbing;
}

/* Стилизация скроллбара */
.recommended-slider::-webkit-scrollbar {
    height: 6px;
}

.recommended-slider::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.recommended-slider::-webkit-scrollbar-thumb {
    background: var(--ios-blue);
    border-radius: 10px;
}

.recommended-slider::-webkit-scrollbar-thumb:hover {
    background: var(--ios-purple);
}

.recommended-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 8px 4px 16px 4px;  /* Добавляем отступ снизу для скроллбара */
}

.recommended-card {
    width: 220px;
    flex-shrink: 0;
    background: var(--glass-primary);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
}

.recommended-card:hover {
    transform: translateY(-4px);
    border-color: var(--ios-blue);
    box-shadow: var(--shadow-lg);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .recommended-card {
        width: 180px;
    }
    
    .recommended-slider {
        cursor: auto;  /* На мобильных курсор не меняем */
    }
}

@media (max-width: 480px) {
    .recommended-card {
        width: 150px;
    }
}

/* Компактная версия заглушки */
.support-placeholder.compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 69, 58, 0.08);
    border-radius: 40px;
    border: 1px dashed rgba(255, 69, 58, 0.3);
    flex-wrap: wrap;
}

.support-placeholder.compact i {
    font-size: 16px;
    margin: 0;
    color: #FF453A;
}

.support-placeholder.compact span {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    color: var(--text-secondary);
}

.support-placeholder.compact small {
    display: none;
}

.btn-outline-sm {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--ios-blue);
    border-radius: 30px;
    color: var(--ios-blue);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-sm:hover {
    background: var(--ios-blue);
    color: white;
}

/* Маленький текст заглушки */
.support-placeholder small {
    display: block;
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 6px;
    opacity: 0.7;
}

/* Компактная версия (без small) */
.support-placeholder.compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 69, 58, 0.08);
    border-radius: 40px;
    border: 1px dashed rgba(255, 69, 58, 0.3);
    flex-wrap: wrap;
}

.support-placeholder.compact i {
    font-size: 16px;
    margin: 0;
    color: #FF453A;
}

.support-placeholder.compact span {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    color: var(--text-secondary);
}

.support-placeholder.compact small {
    display: none;
}