/* Основные стили для Telegram MiniApp */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #111111;
    color: white;
    min-height: calc(100vh + 60px);
    overflow-x: hidden;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    background-image: url(/static/img/background.svg);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Light Source */
.light-source {
    position: fixed;
    top: -250px;
    left: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgb(85, 124, 108) 0%, rgba(38, 88, 66, 0.7) 20%, rgba(57, 80, 70, 0.4) 40%, rgba(57, 80, 70, 0.2) 60%, rgba(57, 80, 70, 0.1) 80%, transparent 100%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(20px);
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 16px 8px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    background-color: #1a1a1a;
}

.app-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.header-icons {
    display: flex;
    gap: 12px;
}

.header-icon {
    width: 24px;
    height: 24px;
    color: white;
    cursor: pointer;
}

/* Main Header Section */
.main-header {
    position: relative;
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* User Profile Card */
.user-profile {
    background: linear-gradient(135deg, #adadad1e, #adadad1e);
    border: 1px solid #70707075;
    border-radius: 26px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.profile-username {
    font-size: 14px;
    color: #ccc;
}

.notification-container {
    background: linear-gradient(135deg, #adadad1e, #adadad1e);
    border: 1px solid #70707075;
    border-radius: 14px;
    text-align: center;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon {
    width: 20px;
    height: 20px;
    color: white;
    cursor: pointer;
}

.logo-container {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Balance Section */
.balance-section {
    margin: 16px 0;
}

.balance-label {
    font-size: 18px;
    color: rgb(218, 218, 218);
    margin-bottom: -2px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 500;
    color: white;
    margin-bottom: 8px;
}

.deposit-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #11241C;
    color: #00BA78;
    border: 1px solid #1a382c;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 16px;
}

.deposit-icon {
    width: 12px;
    height: 12px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    margin-bottom: -2px;
}

.action-button {
    flex: 1;
    height: 60px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.action-button:hover {
    opacity: 0.8;
}

.deposit-button {
    background: linear-gradient(135deg, #0E3326 0%, #0E251D 100%);
    border: 1px solid #27473B;
}

.withdraw-button {
    background: linear-gradient(135deg, #383A39 0%, #575757 100%);
    border: 1px solid #4A4C4B;
}

.action-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.action-label {
    color: #464646;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

/* Info Button */
.info-button {
    width: 100%;
    background-color: #1A1A1A;
    border-radius: 18px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 16px 0;
    transition: opacity 0.2s;
    border-top: 1px solid #444;
    padding: 12px 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    object-fit: contain;
}

.info-label {
    color: rgb(126, 126, 126);
    font-size: 16px;
    font-weight: 500;
}

/* Start Deal Button */
.start-deal-button {
    width: 100%;
    height: 50px;
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
    border-radius: 20px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin: 20px 0;
    margin-bottom: 90px;
    transition: opacity 0.2s;
}

.start-deal-button:hover {
    opacity: 0.8;
}

.start-deal-icon {
    width: 20px;
    height: 20px;
    color: white;
}
 
.start-deal-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* Bottom Navigation */
/* Footer Container */
footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: calc(700px - 80px);

    z-index: 1000;
}

.bottom-nav {
    background-color: #1A1A1A;
    display: flex;
    justify-content: space-around;
    padding: 0;
    border-radius: 18px;
    margin-bottom: 16px;
    overflow: hidden;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px 0;
    flex: 1;
    position: relative;
    color: rgb(224, 224, 224);
}

.nav-item:hover {
    opacity: 0.8;
}

.nav-item.active {
    background-color: #1E1E1E;
    border-radius: 18px;
    border-top: 1px solid #444;
    color: rgb(255, 255, 255);
}

.nav-icon {
    width: 20px;
    height: 20px;
    color: white;
}

.nav-label {
    font-size: 16px;
    font-weight: 500;
}

/* Footer */
.footer {
    text-align: center;
    padding: 16px 0 100px 0;
    color: #1A1A1A;
    font-size: 12px;
}

/* User Profile Block */
.user-profile-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    margin-bottom: 0;
    gap: 12px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #00BA78;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2C2C2C;
}

.profile-avatar-large .fas.fa-user {
    font-size: 48px;
    color: #949e9e;
    position: absolute;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating-block {
    background: linear-gradient(135deg, #adadad21, #adadad1e);
    border: 1px solid #70707075;
    border-radius: 20px;
    padding: 2px 7px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -27.5px;
    z-index: 10;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rating-star {
    width: 14px;
    height: 14px;
}

.rating-text {
    color: #ffe600;
    font-size: 16px;
    font-weight: 400;
}

.username-large {
    color: rgb(202, 202, 202);
    font-size: 24px;
    font-weight: 500;
    text-align: center;
}

.channel-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.channel-link.has-channel {
    color: #5fd3eb;
    font-weight: 600;
}

.channel-link.has-channel:hover {
    color: #B8E6FE;
}

.channel-icon {
    width: 14px;
    height: 14px;
}

.channel-text {
    font-size: 16px;
}

/* Channel Input Field */
.channel-input-container {
    width: 95%;
    margin-top: -2px;
    display: none;
}

.channel-input-container.active {
    display: block;
}

.channel-input-wrapper {
    position: relative;
    background-color: #1a1a1a;
    border: 2px solid #353535;
    border-bottom: 1px solid #353535;
    border-radius: 20px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-input-field {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
    padding: 0;
}

.channel-input-field::placeholder {
    color: #99A1A1;
}

.channel-save-button {
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.channel-save-button:hover {
    opacity: 0.8;
}

.channel-save-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Profile Page Styles */
.reviews-button {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #383A39 0%, #575757 100%);
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin: 20px 0;
    margin-bottom: 0;
    transition: opacity 0.2s;
}

.reviews-button:hover {
    opacity: 0.8;
}

.reviews-icon {
    width: 20px;
    height: 20px;
}

.reviews-text {
    color: #bbbbbb;
    font-size: 16px;
    font-weight: 500;
}

.stats-container {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.stat-card {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.deals-card {
    background-color: #101B17;
    color: #00BA78;
    border: 1px solid #27312E;
}

.amount-card {
    background: linear-gradient(135deg, #7979791e, #adadad1e);
    border: 1px solid #70707075;
}

.stat-icon-container.deals {
    background-color: #0F281F;
    color: #00BA78;
    border: 1px solid #223931;
    border-radius: 50%;
    text-align: center;
    padding: 8px;
    width: 46px;
    height: 46px;

}

.stat-icon-container.amount {
    background: linear-gradient(135deg, #7979791e, #adadad1e);
    border: 1px solid #70707075;
    border-radius: 50%;
    text-align: center;
    padding: 8px;
    padding: 8px;
    width: 46px;
    height: 46px;
}

.stat-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.stat-number.deals {
    color: #00BA78;
}

.stat-label {
    font-size: 14px;
    text-align: center;
    border-radius: 16px;
    padding: 1px 12px;
    min-width: 100%;
}

.stat-label.deals {
    color: #b8b8b8;
    background: linear-gradient(135deg, #0F281F, #0F281F);
    border: 1px solid #223931;
}

.stat-label.amount {
    color: #fff;
    background: linear-gradient(135deg, #7979791e, #adadad1e);
    border: 1px solid #70707075;
}

.registration-date {
    text-align: center;
    color: #808080;
    font-size: 16px;
    font-weight: 500;
    margin: 20px 0;
}

/* Deals Page Styles */
.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.deals-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.deals-filter {
    display: flex;
    gap: 2px;
    background-color: #1a1a1a;
    border-radius: 32px;
    padding: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 32px;
    cursor: pointer;
    transition: all 0.2s;
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.filter-option svg {
    width: 18px;
    height: 18px;
}

.filter-option:hover {
    opacity: 0.8;
}

.filter-option.active {
    color: #00ba78;
    background-color: oklab(69.5564% -.149127 .0568408 / .08);
}

.deals-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.deals-loading p {
    font-size: 15px;
    color: #c7c7c7;
    font-weight: 500;
    text-align: center;
}

.deals-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.empty-state-text {
    font-size: 15px;
    color: #c7c7c7;
    font-weight: 500;
    text-align: center;
}

.start-deal-button-deals {
    width: 100%;
    height: 50px;
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
    border-radius: 20px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin: 20px 0;
    margin-bottom: 20px;
    transition: opacity 0.2s;
}

.start-deal-button-deals:hover {
    opacity: 0.8;
}

/* Deals Container */
.deals-container {
    position: relative;
    min-height: 200px;
    margin-bottom: 20px;
}

/* Deals Grid */
.deals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.deal-card {
    background-color: #101B17;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.deal-card:hover {
    border-color: #4A4C4B;
    transform: translateY(-2px);
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid;
}

.status-waiting_acceptance {
    border-color: #ffd000;
    background-color: transparent;
}

.status-active,
.status-completed {
    border-color: #00BA78;
    background-color: transparent;
}

.status-arbitration,
.status-cancelled {
    border-color: #FF4444;
    background-color: transparent;
}

.deal-id {
    color: #949e9e;
    font-size: 12px;
    font-weight: 500;
}

.deal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deal-amount {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.opponent-avatar-deals {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opponent-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2C2C2C;
}

.opponent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opponent-avatar i {
    color: #949e9e;
    font-size: 10px;
}

.deal-status {
    font-size: 12px;
    font-weight: 500;
    text-align: left;
}

.deal-status.status-waiting_acceptance {
    color: #ffd000;
}

.deal-status.status-active,
.deal-status.status-completed {
    color: #00BA78;
}

.deal-status.status-arbitration,
.deal-status.status-cancelled {
    color: #FF4444;
}

.deal-details-btn {
    width: 100%;
    padding: 6px 16px;
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
    border: none;
    border-radius: 24px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deal-details-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(27, 101, 67, 0.3);
}

/* Deal Detail Page */
.deal-navigation {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.back-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 2px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #2C2C2C;
}

.deal-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.guarantor-type-card {
    background-color: #191F1D;
    border: 1px solid #353535;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.guarantor-icon {
    color: #00BA78;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantor-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.deal-status-card {
    background-color: #191F1D;
    border: 1px solid #353535;
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.deal-status-card.status-waiting_acceptance {
    background-color: #ffd00027;
    border-color: #ffd0003f;
}

.deal-status-card.status-active {
    background-color: #0F2A1A;
    border-color: #00BA78;
}

.deal-status-card.status-completed {
    background-color: #0F2A1A;
    border-color: #00BA78;
}

.deal-status-card.status-arbitration {
    background-color: #2A0F0F;
    border-color: #FF4444;
}

.deal-status-card.status-cancelled {
    background-color: #2A0F0F;
    border-color: #FF4444;
}

.status-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.status-text.status-waiting_acceptance {
    color: #ffd000;
}

.status-text.status-active {
    color: #00BA78;
}

.status-text.status-completed {
    color: #00BA78;
}

.status-text.status-arbitration {
    color: #FF4444;
}

.status-text.status-cancelled {
    color: #FF4444;
}

.participants-section {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.participant-card {
    flex: 1;
    background-color: #101B17;
    border-radius: 12px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.participant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2C2C2C;
}

.participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.participant-avatar i {
    color: #949e9e;
    font-size: 20px;
}

.participant-info {
    text-align: center;
    width: 100%;
}

.participant-username {
    color: #CFD1C5;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.participant-role {
    color: #363636;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.participant-id {
    width: 100%;
    background: linear-gradient(135deg, #adadad10, #adadad10);
    border: 1px solid #7070703f;
    border-bottom: none;
    border-radius: 16px;
    padding: 4px 6px;
    color: #AFBABB;
    font-size: 14px;
    font-weight: 500;
}

.participants-arrow {
    color: #949e9e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-conditions-section {
    background-color: #171717;
    border-radius: 10px;
    overflow: hidden;
}

.conditions-header-deal-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #383A39 0%, #575757 100%);
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.conditions-header-deal-detail:hover {
    background: linear-gradient(135deg, #404241 0%, #5F5F5F 100%);
}



.conditions-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.conditions-arrow {
    color: #949e9e;
    transition: transform 0.2s ease;
    display: flex;
}

.conditions-content {
    padding: 12px 12px 12px 12px;
}

.deal-amount-field {
    margin-bottom: 8px;
}

.amount-value-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
}

.amount-label {
    color: #363636;
    font-size: 14px;
    font-weight: 500;
}

.amount-value {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #353535;
    border-radius: 16px;
    padding: 10px 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.deal-conditions-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.deal-actions-section {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 22px;
}

.deal-action-button {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.deal-action-button.gray {
    background: linear-gradient(135deg, #383A39 0%, #575757 100%);
}

.deal-action-button.green {
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
}

.deal-action-button.red {
    background: linear-gradient(to right, #2A0F0F 0%, #3A1F1F 50%, #2A0F0F 100%);
}

.deal-rating-block {
    background-color: #101B17;
    border: 1px solid #353535;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deal-rating-block-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.deal-rating-block-header svg {
    width: 20px;
    height: 20px;
    color: #FFD700;
}

.deal-rating-block-content {
    color: #b9b9b9;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .participants-arrow {
        transform: rotate(0deg);
    }

    body {
        max-width: 100%;
    }
    
    .container {
        padding: 12px 12px;
    }
    
    .action-button {
        height: 50px;
    }
    
    footer {
        width: calc(100% - 24px);
        max-width: calc(100% - 80px);
    }
    
    .deals-header {
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px 8px;
    }
    
    footer {
        width: calc(100% - 16px);
        max-width: calc(100% - 80px);
    }

    .channel-save-button {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .channel-input-field {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .channel-save-button {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .channel-input-wrapper {
        padding: 5px 8px;
    }
    
    .channel-input-field {
        font-size: 13px;
    }
}

/* Secret Word Form Styles */
.secret-word-form {
    background-color: #1a1a1a;
    border-radius: 16px;
    padding: 20px 24px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    text-align: center;
    border: 1px solid #444444;
}

.secret-word-form.active {
    display: flex;
}

.shield-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.shield-icon-bg {
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: oklab(69.5564% -.149127 .0568408 / .1);
    border-radius: 50%;
    width: 54px;
    height: 54px;
}

.secret-word-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.secret-word-subtitle {
    font-size: 17px;
    font-weight: 500;
    color: #b9b9b9;
    margin-bottom: 24px;
    line-height: 1.4;
}

.secret-word-form-element {
    width: 100%;
    max-width: 400px;
    margin-bottom: 60px;
}

.form-field {
    margin-bottom: 20px;
    text-align: left;
}

.field-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.input-container {
    position: relative;
}

.secret-input {
    width: 100%;
    padding: 10px 50px 6px 14px;
    background-color: #1a1a1a;
    border: 1px solid #444444;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease;
}

.secret-input:focus {
    border-color: #1B6543;
}

.secret-input::placeholder {
    color: #888888;
    font-weight: 600;
}

.toggle-visibility {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-visibility:hover {
    opacity: 0.7;
}

.secret-word-warning {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.warning-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lock-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-text {
    flex: 1;
}

.warning-text p {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.warning-text ul {
    color: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-text li {
    color: #d4d4d4;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 4px;
    position: relative;
    padding-left: 12px;
}

.warning-text li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #888888;
}

.secret-word-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.secret-word-submit-btn:hover {
    opacity: 0.9;
}

.secret-word-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hide main content when form is active */
.form-active #mainContent,
.form-active #bottomNav {
    display: none;
}

/* Top-up Form Styles */
.top-up-form {
    background-color: #1a1a1a;
    border-radius: 16px;
    padding: 20px 24px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #444444;
    margin-top: 26px;
    margin-bottom: 100px;
}

.top-up-form.active {
    display: flex;
}

.top-up-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.top-up-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #b9b9b9;
    margin-bottom: 24px;
    line-height: 1.4;
}

.top-up-form-element {
    width: 100%;
    max-width: 400px;
}

.field-hint {
    font-size: 1rem;
    font-weight: 500;
    color: #c7c7c7;
    margin-top: 4px;
    text-align: left;
}

.top-up-input {
    width: 100%;
    padding: 12px 14px 8px 14px;
    background-color: #1a1a1a;
    border: 1px solid #444444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease;
}

.top-up-input:focus {
    border-color: #00ba78;
}

.top-up-input::placeholder {
    color: #b9b9b9;
    font-weight: 600;
}

/* Dropdown Styles */
.dropdown-container {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    width: 100%;
    padding: 8px 14px 8px 14px;
    background-color: #1a1a1a;
    border: 1px solid #444444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease;
}

.dropdown-trigger:hover {
    border-color: #555555;
}

.dropdown-trigger.active {
    border-color: #00ba78;
}

.dropdown-placeholder {
    font-size: 16px;
    color: #b9b9b9;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border: 1px solid #444444;
    border-radius: 8px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu-scrollable {
    max-height: 170px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    position: relative;
}

.dropdown-option:hover {
    background-color: #3a3a3a;
}

.dropdown-option.selected {
    background-color: #3a3a3a;
    border-radius: 8px;
}

.option-icon {
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.option-check {
    flex-shrink: 0;
}

/* Top-up Buttons */
.top-up-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin-top: 24px;
}

.top-up-cancel-btn {
    flex: 0 0 40%;
    padding: 16px;
    background-color: #1a1a1a;
    border: 1px solid #444444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-up-cancel-btn:hover {
    background-color: #2a2a2a;
    border-color: #555555;
}

.top-up-submit-btn {
    flex: 0 0 60%;
    padding: 16px;
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-up-submit-btn:hover {
    opacity: 0.9;
}

.top-up-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hide main content when top-up form is active */
.topup-active #mainContent {
    display: none;
}

/* Search Page Styles */
.search-section {
    margin-top: 20px;
}

.search-container {
    background-color: #1A1A1A;
    border: 1px solid #313131;
    border-bottom: 1px solid #313131;
    border-radius: 14px;
    padding: 6px;
    transition: height 0.3s ease;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-content-container {
    display: flex;
    width: 100%;
    padding: 20px 46px 20px 36px;
    background-color: #2C2C2C;
    border: 2px solid #414141;
    border-bottom: 1px solid #414141;
    border-radius: 16px;
}

.search-emoji {
    position: absolute;
    left: 12px;
    z-index: 2;
    font-size: 16px;
    top: 19px;
}

.search-input {
    width: 100%;
    background-color: transparent;
    border: none;
    text-align: center; /* Центрируем введенный текст */
    color: white;
    font-size: 16px;
    outline: none;
}

.search-input::placeholder {
    color: #C7C7C7;
}

.search-input:focus {
    border-color: #00BA78;
}

.search-icon {
    position: absolute;
    right: 18px;
    z-index: 2;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    padding-top: 8px;
    display: none; /* Скрываем по умолчанию */
    padding: 0 4px;
    margin-top: 20px;
}

.search-results.has-results {
    display: block; /* Показываем когда есть результаты */
}

.search-no-results {
    text-align: center;
    color: #C7C7C7;
    font-size: 16px;
    padding: 60px 0 25px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #262626;
    padding: 12px 6px;
    border-radius: 24px;
    cursor: pointer;
}

.search-result-item.selected {
    background-color: #2a2a2a;
    border: 2px solid #484848;
    margin: 0 -4px;
    padding: 6px 6px;
    border-radius: 24px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-color: rgba(255, 255, 255, 0.2);
    border-style: solid;
    border-width: 2px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #313131;
    position: relative;
}

.user-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #313131;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar i {
    color: #C7C7C7;
    font-size: 18px;
}

.user-info {
    flex: 1;
    margin-right: 12px;
}

.user-name {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.user-stats {
    display: flex;
    gap: 8px;
}

.deals-badge {
    background-color: #1E4436;
    color: #03AC70;
    padding: 4px 8px;
    border-radius: 32px;
    font-size: 13px;
    font-weight: 500;
}

.rating-badge {
    background-color: #373428;
    color: #F1BE02;
    padding: 4px 8px;
    border-radius: 32px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-badge svg {
    width: 12px;
    height: 12px;
}

/* User Action Buttons */
.user-action-buttons {
    padding: 0 0;
    margin-top: 16px;
    display: none;
}

.user-action-buttons.visible {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
    justify-content: center;
    padding: 0 0;
    margin-bottom: 20px;
}

.user-action-button {
    width: 100%;
    padding: 6px 16px;
    border: none;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.user-action-button.profile-button {
    background-color: #2C2C2C;
    color: white;
}

.user-action-button.profile-button:hover {
    background-color: #3C3C3C;
}

.user-action-button.deal-button {
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
    color: white;
}

.user-action-button.deal-button:hover {
    opacity: 0.9;
}

.user-action-button .button-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-color: rgba(255, 255, 255, 0.2);
    border-style: solid;
    border-width: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #313131;
    position: relative;
}

.user-action-button .button-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #313131;
}

.user-action-button .button-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-action-button .button-avatar i {
    color: #C7C7C7;
    font-size: 14px;
}

/* Back Button */
.back-button-container {
    margin-bottom: -54px;
}

.back-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #2c2c2c25;
    border: 1px solid #2c3330;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #3C3C3C;
}

/* User Profile Page Specific Styles */
.avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #313131;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C7C7C7;
    font-size: 48px;
}

.no-channel {
    color: #C7C7C7;
    font-style: italic;
}

.channel-link {
    color: #03AC70;
    text-decoration: none;
    word-break: break-all;
}

.channel-link:hover {
    text-decoration: underline;
}

.channel-link.no-link {
    cursor: default;
}

.channel-link.no-link:hover {
    text-decoration: none;
}

.start-deal-button-user-profile {
    width: 96%;
    height: 40px;
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
    border-radius: 20px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin: 0 auto;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}

.start-deal-button-user-profile:hover {
    opacity: 0.8;
}

/* Create Deal Page Styles */
.deal-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.deal-navigation .back-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #2c2c2c25;
    border: 1px solid #2c3330;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.deal-navigation .back-button:hover {
    background-color: #3C3C3C;
}

.deal-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    flex: 1;
    text-align: left;
    margin: 0 10px;
}

.opponent-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.opponent-info {
    text-align: right;
}

.opponent-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.opponent-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: right;
    justify-content: right;
    font-size: 14px;
    color: #FFD700;
    font-weight: 500;
}

.opponent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.opponent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Deal Form Styles */
.deal-form {
    margin: 20px 0;
}

.form-error {
    background-color: #291716;
    border: 1px solid #681E21;
    color: #791719;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.form-field {
    margin-bottom: 20px;
}

.deal-input {
    width: 100%;
    padding: 12px 20px;
    background-color: #171717;
    border: 1px solid #353535;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease;
}

.deal-input:focus {
    border-color: #00BA78;
}

.deal-input::placeholder {
    color: #A1A1A1;
}

.amount-input {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.field-error {
    color: #FF644E;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

/* Guarantor Selection */
.guarantor-selection {
    display: flex;
    background-color: #171717;
    border: 1px solid #353535;
    border-radius: 12px;
    padding: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.guarantor-option {
    flex: 1;
    padding: 8px 16px;
    background-color: transparent;
    border: none;
    color: #949e9e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s ease;
    border-radius: 10px;
}

.guarantor-option:hover {
    color: #F1FFFF;
}

.guarantor-option.selected {
    background-color: #182722;
    color: #00BA78;
    font-weight: 600;
}

.guarantor-option svg {
    width: 14px;
    height: 14px;
}

/* Deal Conditions */
.deal-conditions-container {
    position: relative;
    background-color: #171717;
    border: 1px solid #353535;
    border-radius: 16px;
    transition: border-color 0.2s ease;
    min-height: 200px;
}

.conditions-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #383A39 0%, #575757 100%);
    border: 1px solid #4A4C4B;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 10px 20px;
    gap: 8px;
    margin-bottom: 10px;
    color: #C7C7C7;
    font-size: 16px;
    font-weight: 500;
}

.conditions-header svg {
    width: 20px;
    height: 20px;
}

.conditions-input {
    padding: 0 12px;
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    resize: none;
    min-height: 80px;
}

.conditions-input::placeholder {
    color: #C7C7C7;
}

.character-counter {
    position: absolute;
    bottom: -22px;
    right: 14px;
    color: #99A1AF;
    font-size: 12px;
    font-weight: 500;
}

/* Create Deal Button */
.create-deal-button {
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    transition: opacity 0.2s ease;
}

.create-deal-button:hover {
    opacity: 0.9;
}

.create-deal-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background-color: #1A1A1A;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    border: 1px solid #2C2C2C;
}

.modal-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.modal-icon svg {
    width: 30px;
    height: 30px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.modal-text {
    font-size: 16px;
    color: #949e9e;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-button {
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.confirm-button {
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
    color: white;
}

.confirm-button:hover {
    opacity: 0.9;
}

.cancel-button {
    background-color: #202020;
    border: 1px solid #353535;
    color: white;
}

.cancel-button:hover {
    background-color: #3C3C3C;
}

/* Back Button in Header */
.main-header .back-button {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.main-header .back-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-header .back-button svg {
    width: 24px;
    height: 24px;
}

/* Adjust user-profile when back button is present */
.main-header:has(.back-button) .user-profile {
    margin-left: 60px;
}
.user-info-card {
    background-color: #1A1A1A;
    border: 1px solid #353535;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-username {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
}

.user-rating {
    font-size: 14px;
    color: #BBBBBB;
}

.user-info-right {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #353535;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BBBBBB;
    font-size: 20px;
}

.user-reviews-rating-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-button {
    background: transparent;
    border: 1px solid #FFD700;
    border-radius: 8px;
    padding: 8px 12px;
    color: #FFD700;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.filter-button:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.filter-button.active {
    background-color: #FFD700;
    color: #000000;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #353535;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BBBBBB;
    font-size: 14px;
}

.review-user-name {
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
}

.review-rating {
    background-color: rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #FFD700;
}

.review-text {
    font-size: 14px;
    color: #BBBBBB;
    line-height: 1.4;
    margin-bottom: 8px;
}

.review-date {
    font-size: 12px;
    color: #666666;
    text-align: right;
}

.no-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.no-reviews-icon {
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-reviews-text {
    font-size: 16px;
    color: #BBBBBB;
}
.rating-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.rating-modal-content {
    background-color: #101B17;
    border: 1px solid #353535;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.rating-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rating-modal-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.rating-modal-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.rating-modal-close:hover {
    color: white;
}

.rating-modal-body {
    margin-bottom: 24px;
}

.rating-user-text {
    color: #d3d3d3;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.rating-stars {
    display: flex;
    justify-content: left;
    gap: 8px;
    margin-bottom: 14px;
}

.rating-stars .star {
    cursor: pointer;
    transition: transform 0.2s;
    color: #FFD700;
}

.rating-stars .star:hover {
    transform: scale(1);
}

.rating-comment-section {
    margin-bottom: 0;
}

.rating-comment-label {
    display: block;
    color: #d3d3d3;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.rating-comment-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background-color: #191F1D;
    border: 1px solid #353535;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.rating-comment-input:focus {
    outline: none;
}

.rating-comment-input::placeholder {
    color: #666;
}

.rating-comment-counter {
    margin-top: -2px;
    text-align: left;
}

.rating-comment-counter span {
    color: #999;
    font-size: 12px;
    font-weight: 500;
}

.rating-modal-buttons {
    display: flex;
    gap: 12px;
}

.rating-modal-button {
    flex: 1;
    padding: 9px 4px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-modal-button.cancel-button {
    background-color: #20202050;
    border: 1px solid #2c2c2c;
    color: white;
}

.rating-modal-button.cancel-button:hover {
    background-color: #3C3C3C;
}

.rating-modal-button.submit-button {
    background: linear-gradient(to right, #1B6543 0%, #0F432B 50%, #1B6543 100%);
    color: white;
}

.rating-modal-button.submit-button:hover {
    opacity: 0.9;
}

/* User Reviews Container Styles */
.user-reviews-container {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reviews-header {
    display: flex;
    align-items: center;

    margin-bottom: 20px;
    justify-content: space-between;
}

.reviews-header-left {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.reviews-title {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    flex: 1;
}

.user-info-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.user-info-left .user-username {
    font-size: 16px;
    font-weight: 600;
    color: #C7C7C7;
}

.user-info-left .user-rating {
    font-size: 14px;
    color: #ffd700;
}

.user-info-right {
    display: flex;
    align-items: center;
}

.user-info-right .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #353535;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BBBBBB;
    font-size: 16px;
    margin: 0;
}

.user-reviews-rating-filters {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
}

.filter-button {
    background: transparent;
    border: 1px solid #FFD700;
    border-radius: 20px;
    padding: 3px 16px;
    color: #FFD700;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.filter-button:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.filter-button.active {
    background-color: #FFD700;
    color: #000000;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    background-color: rgba(27, 27, 27, 0.8);
    border: 1px solid #353535;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.review-card:hover {
    background-color: rgba(26, 26, 26, 1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #353535;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BBBBBB;
    font-size: 14px;
}

.review-user-name {
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
}

.review-rating {
    background-color: rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #FFD700;
}

.review-text {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
}

.review-date {
    font-size: 12px;
    color: #8a8a8a;
    text-align: right;
}

.no-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.no-reviews-text {
    font-size: 16px;
    color: #BBBBBB;
}