/* Character Detail Page Styles */

/* Language Toggle */
.language-toggle-container {
    margin-bottom: 20px;
    text-align: left;
}

.language-toggle-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 255, 212, 0.2) 100%);
    border: 1px solid var(--tg-theme-primary);
    border-radius: 8px;
    color: var(--tg-heading-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.language-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3) 0%, rgba(0, 255, 212, 0.3) 100%);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
}

.language-toggle-btn i {
    margin-left: 8px;
}

/* Translation Styles */
.translatable-content {
    position: relative;
}

.translator-credit {
    display: block;
    font-size: 11px;
    color: var(--tg-theme-primary);
    margin-top: 5px;
    font-style: italic;
}

.translation-request-btn {
    margin-top: 10px;
}

.btn-request-translation {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--tg-theme-primary);
    border-radius: 6px;
    color: var(--tg-theme-primary);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-request-translation:hover {
    background: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.btn-request-translation i {
    margin-left: 5px;
}

.btn-request-translation-small {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--tg-theme-primary);
    border-radius: 4px;
    color: var(--tg-theme-primary);
    text-decoration: none;
    font-size: 10px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.btn-request-translation-small:hover {
    background: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item a {
    color: var(--tg-theme-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--tg-common-color-cyan);
}

.breadcrumb-item.active {
    color: var(--tg-body-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--tg-body-color);
    margin: 0 10px;
}

/* Character Info Card */
.character-info-card {
    background: linear-gradient(135deg, var(--tg-common-color-black-2) 0%, var(--tg-common-color-black-4) 100%);
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 30px;
    position: sticky;
    top: 100px;
}

.character-avatar {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.character-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.character-avatar .no-avatar {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--tg-theme-primary) 0%, var(--tg-common-color-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: bold;
    color: var(--tg-common-color-black);
    margin: 0 auto;
}

.character-rarity-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.character-rarity-badge .star {
    color: #ffd700;
    font-size: 16px;
    margin: 0 2px;
}

.character-info-content {
    text-align: center;
}

.character-name {
    font-size: 28px;
    font-weight: 600;
    color: var(--tg-heading-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.character-meta {
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    color: var(--tg-body-color);
    font-size: 14px;
}

.meta-value {
    color: var(--tg-heading-color);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.character-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.character-description p {
    color: var(--tg-body-color);
    line-height: 1.8;
    text-align: right;
}

.character-story-link {
    margin-top: 20px;
}

.btn-story {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--tg-theme-primary) 0%, var(--tg-common-color-cyan) 100%);
    color: var(--tg-common-color-black);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-story:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.4);
}

/* Character Section */
.character-section {
    background: linear-gradient(135deg, var(--tg-common-color-black-2) 0%, var(--tg-common-color-black-4) 100%);
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--tg-heading-color);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    margin: 0;
    text-transform: uppercase;
}

#constellations .section-header h2::before,
#constellations .section-header h2::after,
#constellations .section-header::before,
#constellations .section-header::after,
#constellations .section-header > div::before,
#constellations .section-header > div::after {
    display: none !important;
    content: none !important;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 400;
    color: var(--tg-body-color);
    margin: 0;
    margin-top: 5px;
}

.level-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.level-selector input[type="range"] {
    accent-color: var(--tg-theme-primary);
    width: 100%;
    height: 6px;
    direction: ltr;
}

.level-markers {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 12px;
    color: var(--tg-body-color);
    margin-top: 5px;
}

.level-selector span {
    color: var(--tg-heading-color);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* Stats Cards Grid */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.15);
}

.stat-card-label {
    color: var(--tg-body-color);
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-card-value {
    color: var(--tg-heading-color);
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.2);
}

.stat-card-value .translatable-content {
    display: inline-block;
}

.stat-card-value button,
.stat-card-label button {
    vertical-align: middle;
    margin-left: 5px;
}

.stats-table .no-stats-message {
    color: var(--tg-body-color);
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.no-stats-message {
    color: var(--tg-body-color);
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
}

/* Materials Container */
.materials-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.materials-column {
    display: flex;
    flex-direction: column;
}

/* Materials Grid */
.materials-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.material-item-with-count {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.material-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.material-count {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

/* Special Food */
.special-food-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.special-food-icon {
    width: 96px;
    height: 96px;
    border-radius: 8px;
}

.special-food-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.special-food-stars {
    color: #ffd700;
    font-size: 14px;
}

/* Costumes */
.costume-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
}

.costume-image {
    width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.costume-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--tg-heading-color);
}

.costume-description {
    font-size: 14px;
    color: var(--tg-body-color);
    line-height: 1.6;
}

/* Recommended Build */
.build-content {
    padding: 20px 0;
}

.build-note {
    text-align: right;
    font-size: 14px;
    color: var(--tg-body-color);
    margin-bottom: 20px;
}

.build-link {
    color: var(--tg-theme-primary);
    text-decoration: none;
    font-weight: 600;
}

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

.build-item {
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.build-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--tg-heading-color);
    margin: 0;
}

.build-percentage {
    font-size: 16px;
    font-weight: 600;
    color: var(--tg-theme-primary);
}

.build-description {
    color: var(--tg-body-color);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.build-artifact,
.build-constellation {
    color: var(--tg-body-color);
    font-size: 14px;
    margin-top: 10px;
}

.build-artifact strong,
.build-constellation strong {
    color: var(--tg-heading-color);
    margin-left: 5px;
}

/* Skill Card */
.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
}

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

.skill-title {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.skill-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--tg-heading-color);
    margin: 0 0 5px 0;
}

.skill-type {
    font-size: 12px;
    color: var(--tg-theme-primary);
    background: rgba(0, 217, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.skill-level-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.skill-level-label {
    color: var(--tg-heading-color);
    font-weight: 500;
    font-size: 16px;
}

.skill-level-selector input[type="range"] {
    accent-color: var(--tg-theme-primary);
    width: 100%;
    height: 6px;
    direction: ltr;
}

.skill-description {
    margin-bottom: 15px;
}

.skill-description p {
    color: var(--tg-body-color);
    line-height: 1.8;
    text-align: right;
}

.skill-attributes h4 {
    font-size: 16px;
    color: var(--tg-heading-color);
    margin-bottom: 15px;
}

.attributes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 15px;
}

/* Skill Attributes - using same style as stats-table */
.skill-attributes {
    margin-top: 20px;
}

.skill-attributes .stats-cards-grid {
    margin-top: 0;
}

/* Passive Card */
.passive-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.passive-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.passive-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.passive-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--tg-heading-color);
    margin: 0 0 5px 0;
}

.passive-type {
    font-size: 12px;
    color: var(--tg-theme-secondary);
    background: rgba(255, 0, 110, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 10px;
}

.unlock-level {
    font-size: 12px;
    color: var(--tg-body-color);
}

.passive-description p {
    color: var(--tg-body-color);
    line-height: 1.8;
    text-align: right;
}

/* Constellations Grid */
.constellations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    direction: ltr; /* Ensure left-to-right order for C1, C2, C3, C4 */
}

.constellation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.constellation-card:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-5px);
}

.constellation-level {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--tg-theme-primary) 0%, var(--tg-common-color-cyan) 100%);
    color: var(--tg-common-color-black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.constellation-icon {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin: 20px auto 15px;
}

.constellation-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tg-heading-color);
    margin-bottom: 10px;
}

.constellation-card p {
    color: var(--tg-body-color);
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}

/* Materials Section */
.materials-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.materials-group h3 {
    font-size: 18px;
    color: var(--tg-heading-color);
    margin-bottom: 15px;
}

.materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.material-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
}

.material-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

.material-item span {
    color: var(--tg-body-color);
    font-size: 14px;
}

/* Contributors Section */
.contributors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contributor-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.contributor-item:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
}

.contributor-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.contributor-name {
    color: var(--tg-heading-color);
    font-weight: 600;
    font-size: 16px;
}

.contributor-type {
    color: var(--tg-theme-primary);
    font-size: 14px;
    background: rgba(0, 217, 255, 0.1);
    padding: 4px 10px;
    border-radius: 5px;
}

.contributor-description {
    color: var(--tg-body-color);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Suggest Edit Section */
.suggest-edit-section {
    text-align: center;
    padding: 20px;
}

.suggest-edit-section p {
    color: var(--tg-body-color);
    margin-bottom: 15px;
}

.btn-suggest-edit {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--tg-theme-primary) 0%, var(--tg-common-color-cyan) 100%);
    color: var(--tg-common-color-black);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-suggest-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.4);
}

.btn-suggest-edit i {
    margin-left: 8px;
}

/* Suggest Item in Sidebar */
.wiki-menu-item.suggest-item {
    background: rgba(0, 255, 110, 0.1);
    border-color: rgba(0, 255, 110, 0.3);
    margin-top: 10px;
}

.wiki-menu-item.suggest-item:hover {
    background: rgba(0, 255, 110, 0.2);
    border-color: rgba(0, 255, 110, 0.5);
    color: var(--tg-common-color-green);
}

/* Hakush.in Style Character Detail */
.character-detail-hakush {
    min-height: 100vh;
    background: var(--tg-common-color-black);
    padding-top: 120px;
}

@media (max-width: 992px) {
    .character-detail-hakush {
        padding-top: 140px;
    }
}

.character-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.character-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.character-hero-section .container {
    position: relative;
    z-index: 2;
}

.character-hero-image {
    text-align: center;
    padding: 40px 0;
}

.character-main-img {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.character-hero-info {
    color: white;
    padding: 40px 0;
}

/* Character Stats Panel (Right Side) */
.character-stats-panel {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.stats-panel-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.stats-panel-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.stats-panel-header h3 {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
}

.stats-list .stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 15px 20px;
    margin: 0;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    border-left: none;
    border-right: none;
    border-top: none;
}

.stats-list .stat-card:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
}

.stats-list .stat-card:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
}

.stats-list .stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
    transform: none;
    box-shadow: none;
}

.stats-list .stat-card-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
}

.stats-list .stat-card-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    text-shadow: none;
}

.story-voice-button-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-story-voice {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.5);
    border-radius: 8px;
    color: rgba(0, 217, 255, 1);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-story-voice:hover {
    background: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
    color: rgba(0, 217, 255, 1);
}

.character-stats-panel .level-selector {
    margin-bottom: 20px;
}

.character-stats-panel .level-selector input[type="range"] {
    accent-color: rgba(0, 217, 255, 1);
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    direction: ltr;
}

.character-stats-panel .level-markers {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.character-stats-panel .level-markers span {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.character-rarity-stars {
    margin-bottom: 20px;
}

.character-rarity-stars .star {
    color: #ffd700;
    font-size: 24px;
    margin: 0 3px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.character-hero-name {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.character-hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-meta-item .meta-icon {
    width: 24px;
    height: 24px;
}

.character-hero-description {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
}

.character-hero-description p {
    color: rgba(255, 255, 255, 0.9);
}

.character-hero-additional-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-info-item .info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    min-width: 100px;
}

.hero-info-item .info-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.story-voice-link {
    margin-top: 20px;
}

.language-toggle-hero {
    margin-top: 20px;
}

.namecard-content,
.special-food-content {
    padding: 20px;
}

.namecard-name,
.special-food-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--tg-heading-color);
    margin-bottom: 10px;
}

.namecard-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.namecard-description {
    color: var(--tg-body-color);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

/* Character Details Sections */
.character-details-sections {
    background: var(--tg-common-color-black-2);
    padding-top: 180px !important;
    padding-bottom: 40px;
}

@media (max-width: 992px) {
    .character-details-sections {
        padding-top: 200px !important;
        padding-bottom: 40px;
    }
}

/* Modal Styles */
.modal-content {
    background: var(--tg-common-color-black-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: var(--tg-heading-color);
}

.btn-close {
    filter: invert(1);
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    color: var(--tg-heading-color);
    margin-bottom: 8px;
    display: block;
}

.modal-body .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--tg-body-color);
    padding: 12px;
    border-radius: 8px;
}

.modal-body .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--tg-theme-primary);
    color: var(--tg-body-color);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-request-translation-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 255, 212, 0.2) 100%);
    border: 1px solid var(--tg-theme-primary);
    border-radius: 6px;
    color: var(--tg-heading-color);
    text-decoration: none;
    font-size: 12px;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 32px;
    line-height: 1;
}

.btn-request-translation-modal:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3) 0%, rgba(0, 255, 212, 0.3) 100%);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.btn-request-translation-modal i {
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.btn-toggle-translation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 255, 212, 0.2) 100%);
    border: 1px solid var(--tg-theme-primary);
    border-radius: 6px;
    color: var(--tg-heading-color);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 32px;
    margin: 0;
    line-height: 1;
}

.btn-toggle-translation:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3) 0%, rgba(0, 255, 212, 0.3) 100%);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.btn-toggle-translation i {
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.min-vh-50 {
    min-height: 50vh;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
    .materials-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .character-info-card {
        position: static;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .materials-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .materials-grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .calculator-materials-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .calculator-material-card {
        padding: 12px;
        gap: 12px;
    }
    
    .calculator-material-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .calculator-material-name {
        font-size: 14px;
    }
    
    .calculator-material-count-text {
        font-size: 12px;
    }
    
    .skill-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .attributes-grid {
        grid-template-columns: 1fr;
    }
    
    .constellations-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .character-hero-name {
        font-size: 32px;
    }
    
    .character-hero-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Ascend Calculator */
.calculator-content {
    padding: 20px 0;
    direction: rtl;
    text-align: right;
}

.calculator-levels {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.calculator-level-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calculator-level-item label {
    color: var(--tg-heading-color);
    font-weight: 500;
    font-size: 16px;
    text-align: right;
}

.calculator-slider-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row-reverse;
}

.calculator-slider-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.calculator-slider-item span {
    color: var(--tg-body-color);
    font-size: 14px;
    text-align: right;
}

.calculator-slider-item input[type="range"] {
    width: 100%;
    accent-color: var(--tg-theme-primary);
    direction: ltr;
}

.calculator-results {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    direction: rtl;
    text-align: right;
}

.calculator-total {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.calculator-total strong {
    color: var(--tg-heading-color);
    font-size: 18px;
}

.calculator-materials {
    direction: rtl;
}

.calculator-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    direction: rtl;
}

.calculator-material-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.calculator-material-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.calculator-material-icon-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}

.calculator-material-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.calculator-material-icon-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tg-body-color);
    font-size: 24px;
}

.calculator-material-count-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--tg-theme-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.calculator-material-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.calculator-material-name {
    color: var(--tg-heading-color);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.calculator-material-count-text {
    color: var(--tg-body-color);
    font-size: 13px;
    opacity: 0.8;
}

.calculator-material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    flex-direction: row-reverse;
    text-align: right;
}

.calculator-material-item img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

.calculator-material-item span {
    color: var(--tg-body-color);
    font-size: 14px;
}

/* Teams Section */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.team-header {
    margin-bottom: 15px;
}

.team-name {
    color: var(--tg-heading-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.team-description {
    color: var(--tg-body-color);
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.team-member {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.team-member.main-character {
    border-color: var(--tg-theme-primary);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.team-member-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--tg-theme-primary);
    color: var(--tg-common-color-black);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.team-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: row-reverse;
}

.team-creator {
    color: var(--tg-body-color);
    font-size: 12px;
    opacity: 0.7;
}

.team-actions {
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
}

.btn-team-like,
.btn-team-dislike {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--tg-body-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-team-like:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
    color: #4ade80;
}

.btn-team-dislike:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #f87171;
}

.btn-team-like.active {
    background: rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.5);
    color: #4ade80;
}

.btn-team-dislike.active {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    color: #f87171;
}

.btn-team-like i,
.btn-team-dislike i {
    font-size: 14px;
}

.like-count,
.dislike-count {
    font-weight: 600;
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .team-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Story & Quotes Section */
.story-quotes-container {
    margin-top: 30px;
}

.stories-list,
.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.story-item,
.quote-item {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(0, 217, 255, 0.3);
    padding-bottom: 20px;
}

.story-title,
.quote-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tg-heading-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-text,
.quote-text {
    color: var(--tg-body-color);
    line-height: 1.8;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.story-unlock,
.quote-unlock {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.unlock-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 4px;
    font-size: 12px;
    color: var(--tg-theme-primary);
}

.story-item:last-child,
.quote-item:last-child {
    border-left: none;
    padding-left: 0;
}

@media (max-width: 768px) {
    .story-item,
    .quote-item {
        padding-left: 15px;
    }
    
    .story-title,
    .quote-title {
        font-size: 16px;
    }
    
    .story-text,
    .quote-text {
        font-size: 13px;
    }
}

