.search-form {
    background: linear-gradient(135deg, #0a2a3a 0%, #001927 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #1a3a4a;
}

.search-form h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 18px;
}

.search-input-wrapper {
    display: flex;
    gap: 12px;
}

.search-input-wrapper input {
    flex: 1;
    padding: 14px 18px;
    background: #001927;
    border: 2px solid #1a3a4a;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #4a9eff;
}

.search-input-wrapper button {
    padding: 14px 28px;
    background: #4a9eff;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.search-input-wrapper button:hover {
    background: #357abd;
}

.search-results {
    background: #0a2a3a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #1a3a4a;
}

.search-results h3 {
    color: #4a9eff;
    margin-bottom: 15px;
    font-size: 16px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #001927;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.search-result-item:hover {
    border-color: #4a9eff;
    background: #0a2a3a;
}

.search-result-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.search-result-item .clan-tag {
    color: #ffd700;
}

.search-result-item .player-nick {
    color: rgb(162, 255, 106);
    font-weight: 500;
}
.search-result-item:hover > .player-nick {
    color: #ffd700;
}

.search-result-item .members-count {
    margin-left: auto;
    color: #888;
    font-size: 14px;
}

.favorite-star {
    color: #ffd700;
    font-size: 16px;
    margin-left: auto;
}

.profile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1a3a4a;
    border: 2px solid #2a4a5a;
    border-radius: 8px;
    color: #4a9eff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #2a4a5a;
    border-color: #4a9eff;
}

.back-btn svg {
    flex-shrink: 0;
}

.favorite-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffd700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.favorite-btn:hover {
    background: #ffd700;
    color: #001927;
}

.favorite-btn.active {
    background: #ffd700;
    color: #001927;
}

.favorites-section {
    background: #0a2a3a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #1a3a4a;
}

.favorites-section h3 {
    color: #4a9eff;
    font-size: 16px;
    margin-bottom: 15px;
}

.top-chatters-section {
    background: #0a2a3a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #1a3a4a;
}

.top-chatters-section h3 {
    color: #4a9eff;
    font-size: 16px;
    margin-bottom: 15px;
}

.top-position {
    color: #666;
    font-size: 13px;
    min-width: 20px;
    flex-shrink: 0;
}

.message-count {
    margin-left: auto;
    color: #888;
    font-size: 13px;
}

.profile-card {
    background: #0a2a3a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #1a3a4a;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.profile-info {
    flex: 1;
}

.profile-rank-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-top: 2px;
}

.profile-info h2 {
    color: #fff;
    font-size: 22px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-info .clan-tag {
    color: #ffd700;
    font-size: 22px;
}

.whois-btn {
    margin-top: 15px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1a3a4a 0%, #0d2836 100%);
    border: 2px solid #2a5a7a;
    border-radius: 8px;
    color: #4a9eff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.whois-btn.whois-btn-small {
    padding: 6px 12px;
    font-size: 11px;
    margin-top: 10px;
}

.whois-btn:hover {
    background: linear-gradient(135deg, #2a5a7a 0%, #1a3a4a 100%);
    border-color: #4a9eff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.player-stats-table {
    margin-top: 15px;
    background: #001927;
    border-radius: 8px;
    padding: 12px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #1a3a4a;
}

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

.stats-label {
    color: #888;
    font-size: 13px;
}

.stats-value {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.whois-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whois-content p {
    color: #ccc;
    margin: 0;
    line-height: 1.6;
}

.whois-content a {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
}

.whois-content a:hover {
    text-decoration: underline;
}

.whois-instructions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.whois-instructions li {
    color: #ccc;
    padding-left: 20px;
    position: relative;
}

.whois-instructions li:before {
    content: "•";
    color: #4a9eff;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.whois-instructions code {
    background: #001927;
    color: #ffd700;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.whois-gif {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    border: 2px solid #1a3a4a;
    margin-top: 10px;
}

.profile-two-columns {
    columns: 2;
    column-gap: 20px;
    margin-bottom: 20px;
}

.profile-block {
    background: #0a2a3a;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #1a3a4a;
    break-inside: avoid;
    margin-bottom: 20px;
}

.profile-block.full-width {
    column-span: all;
}

.profile-card-icon,
.block-icon {
    color: #004267;
    flex-shrink: 0;
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.block-title {
    color: #4a9eff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.clan-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clan-history-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #001927;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.clan-history-row:hover {
    border-color: #1a3a4a;
    background: #0a2a3a;
}

.clan-history-row.current {
    border-color: #4a9eff;
}

.clan-history-row.current .clan-name {
    color: #ffd700;
    font-weight: 500;
}

.clan-history-row.current .clan-status {
    color: #4ade80;
    font-size: 11px;
    background: rgba(74, 222, 128, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.clan-history-row.past .clan-name {
    color: #888;
}

.clan-history-row.past .clan-date {
    color: #555;
    font-size: 12px;
}

.clan-history-row .clan-members {
    margin-left: auto;
    color: #666;
    font-size: 12px;
}

.clan-history-row .clan-members::after {
    content: ' игр.';
}

.clan-history-row:hover .clan-members {
    color: #888;
}

.action-note {
    margin-top: 15px;
    text-align: center;
}

.action-note p {
    color: #888;
    font-size: 13px;
    margin: 0 0 10px 0;
    font-style: italic;
}

.auth-required-note {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.ranks-timeline {
    display: flex;
    flex-direction: column-reverse;
    position: relative;
    padding-left: 0;
}

.rank-timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 0;
    gap: 0;
}

.rank-timeline-line {
    position: absolute;
    left: 24px;
    top: -50%;
    width: 4px;
    height: 100%;
    background: #1a3a4a;
    z-index: 0;
}

.rank-timeline-item:last-child .rank-timeline-line {
    display: none;
}

.rank-timeline-item[data-index="0"] .rank-timeline-line {
    background: linear-gradient(to top, #4ade80, #4a9eff);
}

.rank-timeline-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #001927;
    border: 3px solid #2c609d;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s;
}

.rank-timeline-circle.current {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-color: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

.rank-timeline-circle img {
    width: 32px;
    height: 32px;
}

.rank-timeline-circle.current img {
    width: 38px;
    height: 38px;
}

.rank-timeline-connector {
    width: 30px;
    height: 3px;
    background: #2c609d;
    flex-shrink: 0;
}

.rank-timeline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 12px;
    background: #001927;
    border-radius: 6px;
    border: 2px solid #2c609d;
}

.rank-timeline-name {
    color: #ffd700;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.rank-timeline-date {
    color: #888;
    font-size: 11px;
    white-space: nowrap;
}

.rank-timeline-item.current .rank-timeline-info {
    margin-left: -7px;
    border-color: #4ade80;
}

.rank-timeline-item.current .rank-timeline-name {
    color: #4ade80;
}

.rank-timeline-item.current .rank-timeline-date {
    color: #4ade80;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1a3a4a 0%, #0d2836 100%);
    border: 2px solid #2a5a7a;
    border-radius: 8px;
    color: #4a9eff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.action-btn:hover {
    background: linear-gradient(135deg, #2a5a7a 0%, #1a3a4a 100%);
    border-color: #4a9eff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.action-btn.primary {
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    border-color: #5aafff;
    color: #fff;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #5aafff 0%, #4a9eff 100%);
    border-color: #6abfff;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.action-btn.small-right {
    padding: 8px 16px;
    font-size: 13px;
    margin-top: 15px;
    margin-left: auto;
    display: flex;
}

.messages-block {
    margin-bottom: 0;
}

.companions-block {
    margin-top: 20px;
}

.companions-load-more {
    text-align: center;
}

.show-more-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

.show-more-inside-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.show-more-inside-btn:hover {
    background: linear-gradient(135deg, #5aafff 0%, #4a9eff 100%);
    transform: translateY(-1px);
}

.messages-container {
    background: #001927;
    border-radius: 10px;
    padding: 20px;
}

.companion-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.companion-message {
    padding: 10px 12px;
    background: #0a2a3a;
    border-radius: 8px;
    font-size: 13px;
    overflow: hidden;
    word-wrap: break-word;
}

.companion-message .msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    flex-wrap: wrap;
}

.companion-message .msg-header img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.companion-message .msg-header .from {
    color: rgb(162, 255, 106);
    word-break: break-word;
    overflow-wrap: break-word;
}

.companion-message .msg-header a.from:hover {
    color: #fff;
}

.companion-message .msg-header .arrow {
    color: #666;
    flex-shrink: 0;
}

.companion-message .msg-header .to {
    color: rgb(162, 255, 106);
    word-break: break-word;
    overflow-wrap: break-word;
}

.companion-message .msg-header a.to:hover {
    color: #ccc;
}

.companion-message .msg-text {
    color: #ccc;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.companion-message .msg-content {
    word-break: break-word;
    overflow-wrap: break-word;
}

.companion-message .msg-text .login-required {
    font-style: italic;
    color: #888;
}

.companion-message .msg-time {
    color: #666;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.companions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.companion-item {
    background: #001927;
    border-radius: 10px;
    padding: 16px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.companion-item:hover {
    border-color: #1a3a4a;
}

.companion-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.companion-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.companion-info img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.companion-info .clan-tag {
    color: #4a9eff;
    text-decoration: none;
}

.companion-info .player-nick {
    color: #ffd700;
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.companion-info .player-nick:hover {
    color: #fff;
}

.companion-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.companion-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.intensity-bar {
    display: flex;
    gap: 3px;
}

.intensity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a3a4a;
}

.intensity-dot.active {
    background: #4a9eff;
}

.intensity-dot.active.high {
    background: #ff8422;
}

.companion-date {
    color: #666;
    font-size: 12px;
}

.companion-header > .companion-msg-btn {
    margin-left: auto;
    margin-right: 10px;
}

.companion-msg-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #1a3a4a;
    border: 1px solid #2a5a7a;
    border-radius: 5px;
    color: #4a9eff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.companion-msg-btn:hover {
    background: #2a5a7a;
    border-color: #4a9eff;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-container {
    background: #0a2a3a;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 2px solid #1a3a4a;
}

.modal-container.small {
    max-width: 400px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #1a3a4a;
    flex-shrink: 0;
    gap: 15px;
}

.modal-header h3 {
    color: #ffd700;
    font-size: 18px;
    margin: 0;
    flex: 1;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #1a3a4a;
    border: 1px solid #2a4a5a;
    border-radius: 6px;
    color: #4a9eff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-toggle-btn:hover {
    background: #2a4a5a;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a3a4a;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #ef4444;
}

.modal-search {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #1a3a4a;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.modal-search input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    background: #001927;
    border: 2px solid #1a3a4a;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.modal-search input[type="text"]:focus {
    outline: none;
    border-color: #4a9eff;
}

.modal-search #modal-date-picker {
    padding: 10px 14px;
    background: #001927;
    border: 2px solid #1a3a4a;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    min-width: 180px;
}

.modal-search #modal-date-picker:focus {
    outline: none;
    border-color: #4a9eff;
}

.modal-search .flatpickr-input.flatpickr-mobile {
    padding: 10px 14px;
    background: #001927;
    border: 2px solid #1a3a4a;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.flatpickr-calendar {
    background: #0a1f2e !important;
    border: 1px solid #1a3a4a !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
}

.flatpickr-months {
    background: #001927 !important;
}

.flatpickr-month {
    color: #fff !important;
    fill: #fff !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: #001927 !important;
    color: #fff !important;
}

.flatpickr-current-month input.cur-year {
    color: #fff !important;
}

.flatpickr-weekdays {
    background: #001927 !important;
}

.flatpickr-weekday {
    color: #4a9eff !important;
}

.flatpickr-days {
    background: #0a1f2e !important;
}

.flatpickr-day {
    color: #666 !important;
    border-radius: 4px !important;
}

.flatpickr-day.flatpickr-disabled {
    color: #333 !important;
}

.flatpickr-day.has-messages {
    color: #fff !important;
    background: rgba(74, 158, 255, 0.2) !important;
    border: 1px solid rgba(74, 158, 255, 0.3) !important;
}

.flatpickr-day.has-messages:hover {
    background: rgba(74, 158, 255, 0.4) !important;
}

.flatpickr-day.selected {
    background: #4a9eff !important;
    border-color: #4a9eff !important;
    color: #fff !important;
}

.flatpickr-day.today {
    border-color: #4a9eff !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    fill: #fff !important;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: #4a9eff !important;
}

.search-apply-btn {
    padding: 10px 16px;
    background: #4a9eff;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-apply-btn:hover {
    background: #357abd;
}

.search-reset-btn {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #2a4a5a;
    border-radius: 6px;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-reset-btn:hover {
    background: #1a3a4a;
    color: #fff;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

.modal-content.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.modal-content.centered p {
    color: #ccc;
    margin: 0;
}

.modal-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 42, 58, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #1a3a4a;
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#modal-messages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#modal-messages-list .companion-message {
    background: #001927;
}

#modal-messages-list .companion-message .msg-header {
    align-items: center;
}

#modal-messages-list .companion-message .msg-header img {
    vertical-align: middle;
}

.load-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a3a4a 0%, #0d2836 100%);
    border: 2px solid #2a5a7a;
    border-radius: 8px;
    color: #4a9eff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #2a5a7a 0%, #1a3a4a 100%);
    border-color: #4a9eff;
}

.time-separator {
    text-align: center;
    color: #666;
    font-size: 12px;
    padding: 8px 0;
    position: relative;
}

.profile-section {
    margin-top: 20px;
}
.profile-section h3 {
    margin: 10px 0;
    color: #4a9eff;
    font-size: 18px;
}

.time-separator::before,
.time-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #1a3a4a;
}

.time-separator::before {
    left: 0;
}

.time-separator::after {
    right: 0;
}

.limit-notice {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    border-radius: 6px;
    padding: 12px;
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
}

.limit-notice a {
    color: #4a9eff;
    text-decoration: underline;
}

.no-messages-notice {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-size: 14px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5aafff 0%, #4a9eff 100%);
}

.limit-reached {
    background: linear-gradient(135deg, #3a1a1a 0%, #271010 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.limit-reached h3 {
    color: #ef4444;
    font-size: 24px;
    margin-bottom: 15px;
}

.limit-reached p {
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.limit-reached .btn {
    padding: 14px 30px;
    background: #4a9eff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s;
}

.limit-reached .btn:hover {
    background: #357abd;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #888;
}

.no-data {
    color: #666;
    text-align: center;
    padding: 20px;
}

@media (max-width: 1199px) {
    .companion-header > .companion-msg-btn {
        order: 4;
        margin-left: 0;
    }

    .companion-header > .companion-meta {
        order: 2;
        margin-left: auto;
    }

    .companion-header::after {
        content: '';
        flex-basis: 100%;
        height: 0;
        order: 3;
    }
}

@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column;
    }

    .profile-top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .back-btn,
    .favorite-btn {
        justify-content: center;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .profile-card .whois-btn {
        width: 100%;
        max-width: none;
    }

    .profile-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-info h2 {
        justify-content: center;
        font-size: 22px;
    }

    .profile-info .clan-tag {
        font-size: 18px;
    }

    .profile-two-columns {
        columns: 1;
    }

    .profile-block {
        padding: 16px;
    }

    .block-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .companion-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .companion-header::after {
        display: none;
    }

    .companion-header > .companion-meta {
        order: 2;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        margin-left: 0;
    }

    .companion-header > .companion-msg-btn {
        order: 3;
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }

    .companion-item .action-btn {
        width: 100%;
        text-align: center;
    }

    .modal-container {
        max-height: 100vh;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
        border: none;
    }

    .modal-overlay {
        padding: 0;
    }

    .filter-toggle-btn {
        display: flex;
    }

    .modal-search {
        display: none;
        flex-direction: column;
    }

    .modal-search input[type="text"],
    .modal-search #modal-date-picker {
        width: 100%;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-content {
        padding: 15px;
    }

    .action-btn {
        width: 100%;
        margin-top: 12px;
    }

    .profile-player-actions {
        flex-direction: column;
    }

    .profile-player-actions .action-btn-hide,
    .profile-player-actions .action-btn-notify {
        width: 100%;
        justify-content: center;
    }

    .messages-container {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 16px;
    }

    .profile-info h2 {
        font-size: 18px;
    }

    .profile-info .clan-tag {
        font-size: 16px;
    }

    .profile-rank-img {
        width: 36px;
        height: 36px;
    }

    .block-title {
        font-size: 16px;
    }

    .clan-history-row {
        flex-wrap: wrap;
        padding: 10px;
    }

    .clan-history-row .clan-members {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
        text-align: right;
    }
}

.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.challenge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #001927;
    border-radius: 8px;
}

.challenge-label {
    color: #666;
    font-size: 13px;
}

.challenge-position {
    color: #fff;
    font-weight: 500;
}

.challenge-stars {
    margin-left: auto;
    color: #ffd700;
    font-size: 13px;
}

.activity-block .block-title {
    color: #4a9eff;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-section-label {
    font-size: 12px;
    color: #5a7a8a;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.activity-hours-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-hour-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(74, 158, 255, 0.08);
    border-radius: 8px;
    border-left: 3px solid #4a9eff;
}

.activity-hour-icon {
    color: #4a9eff;
    flex-shrink: 0;
}

.activity-hour-value {
    color: #4a9eff;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #001927;
    border-radius: 8px;
}

.activity-row-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-row-icon.regularity {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.activity-row-icon.rank {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.activity-row-icon.clan {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
}

.activity-row-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.activity-row-label {
    font-size: 12px;
    color: #5a7a8a;
    line-height: 1;
}

.activity-row-value {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.activity-row-icon.regularity + .activity-row-content .activity-row-value {
    color: #4ade80;
}

.activity-row-icon.rank + .activity-row-content .activity-row-value {
    color: #fbbf24;
}

.activity-row-icon.clan + .activity-row-content .activity-row-value {
    color: #a78bfa;
}

.profile-not-found {
    background: linear-gradient(135deg, #0a2a3a 0%, #001927 100%);
    border: 2px solid #1a3a4a;
    border-radius: 12px;
    padding: 40px;
}

.profile-not-found .back-btn {
    margin-bottom: 30px;
}

.not-found-content {
    text-align: center;
}

.not-found-content h3 {
    color: #ffd700;
    font-size: 22px;
    margin-bottom: 15px;
}

.not-found-content p {
    color: #888;
    font-size: 15px;
    margin-bottom: 20px;
}

.limit-banner {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.limit-banner span {
    color: #ef4444;
    font-size: 14px;
}

.limit-banner a {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.limit-banner a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .limit-banner {
        flex-direction: column;
        text-align: center;
    }
}

.rank-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.rank-tooltip .rank-tooltip-text {
    visibility: hidden;
    opacity: 0;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;
    position: absolute;
    z-index: 10000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 400;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.rank-tooltip .rank-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}

.rank-tooltip:hover .rank-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.notes-block {
    background: linear-gradient(135deg, #12302a 0%, #0d2520 100%);
    border: 2px solid #1a4a3a;
    border-radius: 4px;
    padding: 24px 24px 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow:
        2px 3px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 220, 100, 0.06);
    transform: rotate(-0.4deg);
}

.notes-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 40px;
    height: 8px;
    background: rgba(200, 180, 80, 0.15);
    border-radius: 0 0 3px 3px;
}

.notes-block .block-header {
    margin-bottom: 10px;
}

.notes-block .block-title {
    color: #c8b44f;
    font-size: 18px;
    font-weight: 700;
}

.notes-block .block-icon {
    stroke: #c8b44f;
}

.note-hint {
    color: #6a8a7a;
    font-size: 12px;
    font-style: italic;
    margin-bottom: 10px;
}

.note-textarea {
    width: 100%;
    min-height: 42px;
    max-height: 300px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed #2a5a4a;
    border-radius: 4px;
    color: #d4c97a;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    overflow-y: auto;
    transition: background 0.3s, border-color 0.3s;
    box-sizing: border-box;
    line-height: 1.5;
}

.note-textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.25);
    border-color: #c8b44f;
}

.note-textarea::placeholder {
    color: #4a6a5a;
    font-style: italic;
}

.note-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 15px;
}

.note-counter {
    color: #5a7a6a;
    font-size: 12px;
}

.note-save-btn {
    padding: 8px 20px;
    background: #c8b44f;
    border: none;
    border-radius: 4px;
    color: #0d2520;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.note-save-btn:hover:not(:disabled) {
    background: #a89830;
}

.note-save-btn:disabled {
    background: #5a6a3a;
    cursor: not-allowed;
    opacity: 0.6;
}

.auth-required-note {
    color: #6a8a7a;
    font-style: italic;
}

@media (max-width: 768px) {
    .note-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .note-save-btn {
        width: 100%;
    }
}

.reviews-block {
    margin-top: 20px;
}

.review-form {
    background: #001927;
    border-radius: 10px;
    padding: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.review-textarea {
    width: 100%;
    min-height: 42px;
    max-height: 300px;
    padding: 14px;
    background: #001927;
    border: 2px solid #1a3a4a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    overflow-y: auto;
    transition: border-color 0.3s;
    box-sizing: border-box;
    line-height: 1.4;
}

.review-textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.review-textarea::placeholder {
    color: #555;
}

.review-form-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.reviews-block .filter-checkbox {
    display: flex;
    align-items: center;
    color: #8ba3b5;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.reviews-block .filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #00d4ff;
    background: transparent;
    border: 2px solid #3a5a6a;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: all 0.2s ease;
}

.reviews-block .filter-checkbox input[type="checkbox"]:checked {
    background: #00d4ff;
    border-color: #00d4ff;
}

.reviews-block .filter-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0a1929;
    font-size: 12px;
    font-weight: bold;
}

.reviews-block .filter-checkbox:hover {
    color: #e8f4f8;
}

.reviews-block .filter-checkbox:hover input[type="checkbox"] {
    border-color: #00d4ff;
}

.review-counter {
    color: #666;
    font-size: 13px;
}

.review-submit-btn {
    padding: 10px 24px;
    background: #4a9eff;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.review-submit-btn:hover:not(:disabled) {
    background: #357abd;
}

.review-submit-btn:disabled {
    background: #2a5a8d;
    cursor: not-allowed;
    opacity: 0.7;
}

.review-error {
    margin-top: 10px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    border-radius: 6px;
    color: #ef4444;
    font-size: 13px;
}

.review-login-required {
    background: #001927;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.review-login-required p {
    color: #888;
    margin: 0 0 15px 0;
    font-size: 15px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    background: #001927;
    border-radius: 10px;
    padding: 16px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.review-item:hover {
    border-color: #1a3a4a;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a3a4a;
}

.review-avatar-anonymous {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a3a4a;
    border: 2px solid #2a5a7a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    font-weight: bold;
}

.review-author-name {
    color: #4a9eff;
    font-weight: 500;
    font-size: 14px;
}

.review-author-anonymous {
    color: #666;
    font-style: italic;
    font-size: 14px;
}

.review-anonymous-badge {
    display: inline-block;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-style: italic;
}

.review-date {
    color: #555;
    font-size: 12px;
    flex-shrink: 0;
}

.review-content {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #1a3a4a;
}

.review-votes {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-vote-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid #1a3a4a;
    border-radius: 5px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.review-vote-btn:hover {
    border-color: #2a4a5a;
    color: #888;
}

.review-vote-btn.like.active {
    border-color: #4ade80;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.review-vote-btn.dislike.active {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.review-vote-btn svg {
    flex-shrink: 0;
}

.vote-count {
    min-width: 12px;
    text-align: center;
}

.review-votes-disabled {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
    pointer-events: none;
}

.vote-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 13px;
}

.vote-info svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-delete-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    border-radius: 5px;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.review-delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.review-report-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid #1a3a4a;
    border-radius: 5px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.review-report-btn:hover {
    border-color: #ffd700;
    color: #ffd700;
}

.reviews-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.reviews-empty {
    text-align: center;
    padding: 30px;
}

.reviews-empty p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

.report-hint {
    color: #888;
    font-size: 13px;
    margin: 0 0 12px 0;
}

.report-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: #001927;
    border: 2px solid #1a3a4a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.report-textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.report-textarea::placeholder {
    color: #555;
}

.report-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 15px;
}

.report-counter {
    color: #666;
    font-size: 13px;
}

.report-submit-btn {
    padding: 10px 20px;
    background: #ef4444;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.report-submit-btn:hover {
    background: #dc2626;
}

.report-error {
    margin-top: 10px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    border-radius: 6px;
    color: #ef4444;
    font-size: 13px;
}

@media (max-width: 768px) {
    .review-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .review-submit-btn {
        margin-left: 0;
        width: 100%;
    }

    .review-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .review-actions {
        align-self: flex-end;
    }

    .report-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .report-submit-btn {
        width: 100%;
    }
}

.block-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-analyze-wrapper {
    text-align: center;
    margin-top: 20px;
}

.ai-insufficient-data {
    text-align: center;
    padding: 30px 20px;
    background: rgba(74, 158, 255, 0.1);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 12px;
    margin-top: 20px;
}

.ai-insufficient-data svg {
    color: #4a9eff;
    margin-bottom: 12px;
}

.ai-insufficient-data p {
    color: #4a9eff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.ai-insufficient-data span {
    color: #93c5fd;
    font-size: 14px;
}

.ai-analyze-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: 2px solid #a78bfa;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    text-decoration: none;
}

.ai-analyze-btn-large:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    color: #fff;
}

.ai-analyze-btn-large svg {
    flex-shrink: 0;
}

.ai-analyze-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: 1px solid #a78bfa;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.ai-analyze-btn-small:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.ai-analyze-btn-small svg {
    flex-shrink: 0;
}

.ai-analyses-block {
    margin-top: 20px;
    background: linear-gradient(135deg, #1a1a3a 0%, #0d0d27 100%);
    border: 2px solid #4c1d95;
}

.ai-analyses-block .block-icon {
    color: #8b5cf6;
}

.ai-analyses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-analysis-item {
    background: #001927;
    border-radius: 10px;
    padding: 16px;
    border: 2px solid #1a3a4a;
    transition: all 0.3s;
}

.ai-analysis-item:hover {
    border-color: #8b5cf6;
}

.ai-analysis-preview {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.ai-analysis-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #1a3a4a;
}

.ai-analysis-date {
    color: #666;
    font-size: 12px;
}

.ai-analysis-read-more {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.ai-analysis-read-more:hover {
    background: linear-gradient(135deg, #5aafff 0%, #4a9eff 100%);
    color: #fff;
}

.ai-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.ai-loader-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.ai-brain {
    color: #8b5cf6;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
    }
}

.ai-thinking-dots {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.ai-thinking-dots span {
    width: 10px;
    height: 10px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: aiDots 1.4s ease-in-out infinite;
}

.ai-thinking-dots span:nth-child(1) { animation-delay: 0s; }
.ai-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiDots {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.ai-loader-text {
    color: #8b5cf6;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.ai-loader-subtext {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.ai-confirm-text {
    color: #fff;
    font-size: 16px;
    margin: 0 0 10px 0;
    text-align: center;
}

.ai-confirm-subtext {
    color: #888;
    font-size: 14px;
    margin: 0 0 25px 0;
    text-align: center;
    line-height: 1.5;
}

.ai-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ai-cancel-btn {
    padding: 12px 24px;
    background: #1a3a4a;
    border: 2px solid #2a5a7a;
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-cancel-btn:hover {
    background: #2a5a7a;
    color: #fff;
}

.ai-start-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: 2px solid #a78bfa;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-start-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    transform: translateY(-1px);
}

.ai-analysis-text {
    color: #ccc;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ai-analysis-text h2,
.ai-analysis-text h3,
.ai-analysis-text h4 {
    color: #8b5cf6;
    margin: 20px 0 10px 0;
}

.ai-analysis-text h2 { font-size: 20px; }
.ai-analysis-text h3 { font-size: 17px; }
.ai-analysis-text h4 { font-size: 15px; }

.ai-analysis-text strong {
    color: #ffd700;
}

.ai-analysis-text li {
    margin-left: 20px;
    margin-bottom: 5px;
}

.ai-analysis-text p {
    margin: 10px 0;
}

.ai-metrics-container {
    background: linear-gradient(135deg, #1a1a3a 0%, #0d0d27 100%);
    border: 2px solid #4c1d95;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.ai-metrics-title {
    color: #8b5cf6;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-align: center;
}

.ai-metrics-circles {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.ai-metric-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ai-metric-circle-svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.ai-metric-circle-bg {
    fill: none;
    stroke: #001927;
    stroke-width: 8;
}

.ai-metric-circle-progress {
    fill: none;
    stroke-width: 8;
    stroke-dasharray: 251;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.ai-metric-circle-politeness {
    stroke: #4ade80;
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.6));
}

.ai-metric-circle-rudeness {
    stroke: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
}

.ai-metric-circle-text {
    transform: rotate(90deg);
    transform-origin: center;
    fill: #fff;
    font-size: 18px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
}

.ai-metric-circle-label {
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
}

.ai-metrics-grid {
    display: grid;
    gap: 20px;
}

.ai-metric-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-metric-label {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
}

.ai-metric-bar-container {
    flex: 1;
    height: 24px;
    background: #001927;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1a3a4a;
}

.ai-metric-bar {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
    position: relative;
}

.ai-metric-bar-politeness {
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.ai-metric-bar-rudeness {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.ai-metric-value {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}

@media (max-width: 768px) {
    .ai-metrics-circles {
        gap: 20px;
    }

    .ai-metric-circle-svg {
        width: 70px;
        height: 70px;
    }

    .ai-metric-circle-text {
        font-size: 16px;
    }

    .ai-metric-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ai-metric-label {
        min-width: auto;
    }

    .ai-metric-value {
        text-align: center;
    }
}

.ai-disclaimer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 2px solid #fbbf24;
    border-radius: 10px;
    margin-top: 25px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 500;
}

.ai-disclaimer svg {
    flex-shrink: 0;
    color: #fbbf24;
}

@media (max-width: 768px) {
    .ai-disclaimer {
        flex-direction: row;
        gap: 10px;
        padding: 12px 15px;
        font-size: 13px;
    }
}

.ai-recent-actions {
    margin-top: 20px;
}

.ai-view-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-view-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

@media (max-width: 768px) {
    .ai-confirm-actions {
        flex-direction: column;
    }

    .ai-cancel-btn,
    .ai-start-btn {
        width: 100%;
    }

    .ai-analysis-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .ai-analysis-read-more {
        width: 100%;
        text-align: center;
    }
}

.spy-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 15px;
}

.spy-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #1a3a4a;
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spy-spin 1s linear infinite;
}

@keyframes spy-spin {
    to { transform: rotate(360deg); }
}

.spy-loader p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.spy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spy-list li {
    padding: 12px 16px;
    background: #0a2a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    border: 1px solid #1a3a4a;
}

.spy-list li strong {
    color: #4a9eff;
}

.spy-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.spy-link:hover {
    text-decoration: underline;
}

.spy-not-found,
.spy-no-data {
    color: #999;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.spy-error {
    color: #ef4444;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.spy-success {
    color: #4ade80;
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
}

.spy-new-nick-link {
    display: block;
    text-align: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
}

.spy-new-nick-link:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a5d8f 100%);
    transform: scale(1.02);
}

.spy-nick-link {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.spy-nick-link:hover {
    text-decoration: underline;
    color: #6bb3ff;
}

.spy-check-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.spy-actual {
    color: #4ade80;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.spy-list li {
    word-break: break-all;
}

.spy-data-fresh {
    text-align: center;
    padding: 20px;
    background: rgba(74, 222, 128, 0.1);
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
}

.spy-data-fresh svg {
    margin-bottom: 10px;
}

.spy-data-fresh p {
    color: #4ade80;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.spy-data-fresh span {
    color: #86efac;
    font-size: 14px;
}

.renamed-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 14px;
    color: #999;
}

.renamed-notice .new-nick-link {
    color: #4a9eff;
    font-weight: 600;
    text-decoration: none;
}

.renamed-notice .new-nick-link:hover {
    text-decoration: underline;
}

.nicknames-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nickname-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #001927;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.nickname-history-row:hover {
    border-color: #4a9eff;
    background: #0a2a3a;
}

.nickname-history-row.current {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.nickname-name {
    color: #fff;
    font-weight: 500;
    word-break: break-all;
}

.nickname-status {
    color: #999;
    font-size: 13px;
}

.nickname-status.current-status {
    color: #4ade80;
    font-weight: 600;
}

.nickname-history-row.past .nickname-name {
    color: #999;
}

.nickname-date {
    color: #999;
    font-size: 13px;
}

.discord-instruction {
    text-align: left;
}

.discord-instruction p {
    margin: 0 0 10px 0;
    color: #ccc;
    line-height: 1.6;
}

.discord-instruction a {
    color: #4a9eff;
    text-decoration: none;
}

.discord-instruction a:hover {
    text-decoration: underline;
}

.discord-instruction .whois-gif {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}

.profile-player-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.profile-player-actions .action-btn-hide {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-player-actions .action-btn-hide:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: #f87171;
}

.profile-player-actions .action-btn-notify {
    background: transparent;
    border: 1px solid #f59e0b;
    color: #f59e0b;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-player-actions .action-btn-notify:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: #fbbf24;
}

.profile-player-actions .action-btn-notify.watching {
    background: rgba(74, 222, 128, 0.1);
    border-color: #4ade80;
    color: #4ade80;
}

.profile-player-actions .action-btn-notify.watching:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: #22c55e;
    color: #22c55e;
}

.hidden-notice {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 20px;
    color: #ff6b6b;
    font-size: 14px;
    line-height: 1.5;
}

.hidden-notice a {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
}

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