body {
    font-family: Arial, sans-serif;
    max-width: 400px;
    height: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #0C134F;
    color: #D4ADFC;
    padding-bottom: 100px;
    overscroll-behavior: none;
    touch-action: manipulation;
}

/* Add these styles at the top of your CSS file */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0C134F;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-logo {
    width: 200px;
    height: auto;
    animation: pulse 2s infinite;
}

.loading-text {
    color: #D4ADFC;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    animation: fadeInOut 1.5s infinite;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes fadeInOut {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Update the content transition */
body > *:not(.loading-overlay) {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.character-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding-right: 10px;
    margin-top: 0;
}
.character-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 3px solid transparent;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #ff6b6b) border-box;
    animation: gradientBorder 3s ease-in-out infinite;
}

@keyframes gradientBorder {
    0% {
        background: linear-gradient(45deg, #ff6b6b, #ffd93d, #ff6b6b) border-box;
    }
    50% {
        background: linear-gradient(225deg, #ffd93d, #ff6b6b, #ffd93d) border-box;
    }
    100% {
        background: linear-gradient(45deg, #ff6b6b, #ffd93d, #ff6b6b) border-box;
    }
}

.character-info {
    flex-grow: 1;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.character-info h2 {
    margin: 0 0 4px 0;
}
.character-info p {
    margin: 0 0 8px 0;
}
.mini-buttons-wrapper {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.mini-btn {
    background-color: #1D267D;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 120px;
    height: 2rem;
    color: #D4ADFC;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 173, 252, 0.2);
    border: 1px solid rgba(212, 173, 252, 0.1);
}
.mini-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 173, 252, 0.3);
    background-color: #2A3490;
}
.mini-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 173, 252, 0.2);
}
.mini-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 173, 252, 0.2),
        transparent
    );
    transition: 0.5s;
}
.mini-btn:hover::before {
    left: 100%;
}
.mini-btn.active {
    background-color: #5C469C;
    color: #D4ADFC;
    box-shadow: 0 0 15px rgba(92, 70, 156, 0.5);
}
/* news channel button */
.mini-btn.news-channel {
    background: linear-gradient(45deg, #0088cc, #00a2ff);
    border: 1px solid rgba(0, 136, 204, 0.3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2);
    min-width: 85px;
    width: auto;
    padding: 5px 6px;
    font-size: 11px;
}
.mini-btn.news-channel:hover {
    background: linear-gradient(45deg, #00a2ff, #0088cc);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
}
.mini-btn.news-channel:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 136, 204, 0.2);
}
.mini-btn.news-channel::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}
.progress-container {
    margin-bottom: 15px;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.progress-container label {
    min-width: 100px;
    color: #D4ADFC;
    font-size: 14px;
}

.boost-btn {
    background: rgba(57, 224, 11, 0.1);
    border: 1px solid rgba(57, 224, 11, 0.3);
    padding: 3px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    color: #39e00b;
    font-size: 10px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(57, 224, 11, 0.1);
    margin-left: -20px;
}

.boost-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(57, 224, 11, 0.2),
        transparent
    );
    transition: 0.5s;
}

.boost-btn:hover {
    transform: scale(1.05);
    background: rgba(57, 224, 11, 0.15);
    border-color: rgba(57, 224, 11, 0.5);
    box-shadow: 0 4px 12px rgba(57, 224, 11, 0.2);
}

.boost-btn:hover::before {
    left: 100%;
}

.boost-btn:active {
    transform: scale(0.95);
    background: rgba(57, 224, 11, 0.2);
}

.boost-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.boost-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.boost-text {
    color: #39e00b;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(57, 224, 11, 0.3);
    transition: all 0.3s ease;
}

.boost-btn:hover .boost-text {
    text-shadow: 0 0 12px rgba(57, 224, 11, 0.5);
}

.progress-bar {
    width: 100%;
    background-color: #2d3579;
    border-radius: 13px;
    padding: 3px;
    position: relative;
}
.progress {
    height: 20px;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
    position: relative;
    min-width: 20px;
}
.progress-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, background-color 0.3s;
}
.become-member-btn {
    margin-top: 20px;
    background-color: #9C27B0;
    color: white;
    font-size: 12px;
    flex: 1;
}

.feedback-support-btn {
    margin-top: 20px;
    color: white;
    font-size: 12px;
    border-style: solid;
    border-color: #607D8B;
    border-width: 1px;
    background: transparent;
    flex: 1;
}

.feedback-support-btn:hover {
    background: rgba(96, 125, 139, 0.1);
}

.profile-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    width: 100%;
}

.feedback-support-btn {
    color: white;
    border-style: solid;
    border-color: #607D8B;
    border-width: 1px;
    background: transparent;
}

.feedback-support-btn:hover {
    background: rgba(96, 125, 139, 0.1);
}


.discover-characters {
    background-color: #4CAF50;
    color: white;
}
.button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.interest-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.interest-bubble {
    background-color: #1D267D;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #D4ADFC;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.interest-bubble span {
    margin-left: 4px;
}
.other-picture-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(29, 38, 125, 0.1);
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.other-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    display: block;
}
.physical-attributes {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px;
    border-radius: 4px;
    color: white;
    z-index: 2;
}
.physical-attributes p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.2;
}
/* Hamburger Menu Styles */
.hamburger-menu {
    position: relative;
    z-index: 1000;
}

.hamburger-icon {
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-icon {
    width: 24px;
    height: 24px;
    fill: #D4ADFC;
    transition: all 0.3s ease;
}

.hamburger-icon:hover .menu-icon {
    fill: #E5B8F4;
    transform: scale(1.1);
}

/* Add active state for when menu is open */
.hamburger-icon.active .menu-icon {
    fill: #E5B8F4;
    filter: drop-shadow(0 0 8px rgba(229, 184, 244, 0.4));
}

/* Update menu items container */
.menu-items {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1D267D;
    border-radius: 8px;
    padding: 8px;
    display: none;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 173, 252, 0.1);
}

.menu-items.active {
    display: block;
}

.menu-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    color: #D4ADFC;
}

.menu-item:hover {
    background-color: #5C469C;
}

.mood-section {
    position: relative;
    background-color: #1D267D;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    animation: glowingBorder 2s ease-in-out infinite;
}

.current-mood {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    position: relative;
}

.mood-emoji {
    font-size: 24px;
}

.mood-text {
    font-size: 18px;
    font-weight: 500;
}

.mood-description {
    color: #D4ADFC;
    margin-bottom: 15px;
    line-height: 1.4;
}

.mood-buttons {
    display: flex;
    gap: 10px;
}

.mood-btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

.change-mood {
    background-color: #E5B8F4;
    color: black;
}

.learn-more {
    background-color: #1D267D;
    color: white;
    border-style: solid;
    border-color: #607D8B;
    border-width: 1px;
}

.character-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    row-gap: 50px;
    column-gap: 20px;
    padding: 20px 0;
}

.character-card {
    background: #1D267D;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.card-content {
    flex: 1;
}

.character-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.character-card h3 {
    margin: 5px 0;
    font-size: 16px;
}

.character-card p {
    color: #D4ADFC;
    font-size: 14px;
    margin: 5px 0;
}

.chat-btn {
    background-color: #4CAF50;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-btn:hover {
    background-color: #45a049;
}

@keyframes glowingBorder {
    0% {
        box-shadow: 0 0 5px #ff00ff,
                    0 0 10px #00ff00,
                    0 0 15px #0000ff;
    }
    50% {
        box-shadow: 0 0 10px #ff00ff,
                    0 0 15px #00ff00,
                    0 0 20px #0000ff;
    }
    100% {
        box-shadow: 0 0 5px #ff00ff,
                    0 0 10px #00ff00,
                    0 0 15px #0000ff;
    }
}

@keyframes glowingBorderPicture {
    0% {
        box-shadow: 0 0 5px #ff00ff,
                    0 0 10px #00ffff,
                    0 0 15px #ffff00;
    }
    50% {
        box-shadow: 0 0 10px #ff00ff,
                    0 0 15px #00ffff,
                    0 0 20px #ffff00;
    }
    100% {
        box-shadow: 0 0 5px #ff00ff,
                    0 0 10px #00ffff,
                    0 0 15px #ffff00;
    }
}

@keyframes glowingBorderBonding {
    0% {
        box-shadow: 0 0 5px #4CAF50,
                    0 0 10px #2196F3,
                    0 0 15px #FF9800;
    }
    50% {
        box-shadow: 0 0 10px #4CAF50,
                    0 0 15px #2196F3,
                    0 0 20px #FF9800;
    }
    100% {
        box-shadow: 0 0 5px #4CAF50,
                    0 0 10px #2196F3,
                    0 0 15px #FF9800;
    }
}

@keyframes glowingBorderReddish {
    0% {
        box-shadow: 0 0 5px #FF69B4,
                    0 0 10px #FF1493,
                    0 0 15px #FF4500;
    }
    50% {
        box-shadow: 0 0 10px #FF69B4,
                    0 0 15px #FF1493,
                    0 0 20px #FF4500;
    }
    100% {
        box-shadow: 0 0 5px #FF69B4,
                    0 0 10px #FF1493,
                    0 0 15px #FF4500;
    }
}


.bonding-scores,
.mood-section,
.character-cards,
.general-info-box,
.subscription-section,
.profile-section,
.mood-info-section,
.bonding-info-section {
    margin-bottom: 20px;
}

.bonding-scores {
    position: relative;
    background-color: #0C134F;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    animation: glowingBorderBonding 2s ease-in-out infinite;
}

.bonding-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.bonding-btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.reset-bonding {
    background-color: #E5B8F4;
    color: black;
    border: none;
    }

.learn-more-bonding {
    background-color: #0C134F;
    color: white;
    border-style: solid;
    border-color: #607D8B;
    border-width: 1px;

}

.bonding-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.mood-animation {
    width: 60px;
    height: 60px;
    position: absolute;
    right: 0px;
    top: -50px;
    z-index: 3;
}

.chat-animation {
    width: 70px;
    height: 70px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 3;
}

.mood-info-section {
    padding: 20px;
    margin-top: 20px;
    background-color: #1D267D;
    border-radius: 8px;
    animation: glowingBorder 2s ease-in-out infinite;
}

.mood-info-card {
    background-color: #0C134F;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

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

.mood-header .mood-emoji {
    font-size: 24px;
}

.mood-header h4 {
    margin: 0;
    color: #D4ADFC;
}

.mood-info-description {
    color: #D4ADFC;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.eligibility-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 5px;
}

.eligibility-tag.available {
    background-color: #4CAF50;
    color: white;
}

.eligibility-tag.locked {
    background-color: #F44336;
    color: white;
}

.back-btn {
    background-color: #E5B8F4;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    max-width: 300px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: scale(1.05);
}

.photo-capability {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 13px;
    color: #D4ADFC;
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-icon {
    font-size: 16px;
}

.bonding-info-section {
    padding: 20px;
    margin-top: 20px;
    background-color: #1D267D;
    border-radius: 8px;
    animation: glowingBorderBonding 2s ease-in-out infinite;
}

.notice-card {
    background-color: #0C134F;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

.notice-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #D4ADFC;
}

.bonding-info-card {
    background-color: #0C134F;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid;
}

.bonding-info-card.trust { border-color: #4CAF50; }
.bonding-info-card.familiarity { border-color: #2196F3; }
.bonding-info-card.nice { border-color: #FF9800; }
.bonding-info-card.rude { border-color: #F44336; }

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

.score-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-emoji {
    font-size: 20px;
}

.bonding-header h4 {
    margin: 0;
    color: #D4ADFC;
}

.bonding-info-description {
    color: #D4ADFC;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.score-tip {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #D4ADFC;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-icon {
    font-size: 16px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.subscription-section {
    padding: 20px;
    margin-top: 20px;
}

.subscription-card {
    background-color: #1D267D;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    animation: glowingBorder 2s ease-in-out infinite;
}

.subscription-card h3 {
    color: #D4ADFC;
    margin-bottom: 20px;
    text-align: center;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.price-option {
    background-color: #0C134F;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.price-option:hover {
    transform: translateY(-5px);
}

.price-option.popular {
    border: 2px solid #E5B8F4;
}

.popular-tag {
    position: absolute;
    top: -18px;
    right: -10px;
    background-color: #E5B8F4;
    color: #0C134F;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.price-header {
    margin-bottom: 5px;
}

.credit-amount {
    display: block;
    color: #D4ADFC;
    font-size: 14px;
    font-weight: bold;
}

.star-amount {
    color: #FFD700;
    font-size: 12px;
}

.price {
    color: #D4ADFC;
    font-size: 18px;
    font-weight: bold;
}

.subscription-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    background-color: #E5B8F4;
    color: #0C134F;
    font-weight: bold;
}

.subscription-btn:hover {
    transform: scale(1.05);
}

.membership-content {
    text-align: center;
    margin-bottom: 20px;
}

.membership-price {
    margin-bottom: 10px;
}

.price-amount {
    color: #D4ADFC;
    font-size: 36px;
    font-weight: bold;
}

.price-period {
    color: #D4ADFC;
    font-size: 16px;
}

.star-reward {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
}

.membership-features {
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #D4ADFC;
}

.feature-icon {
    font-size: 18px;
}

.pricing-list {
    margin-bottom: 20px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #0C134F;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #D4ADFC;
}


.profile-section {
    margin: 20px 0;
}

.profile-card {
    background: #1D267D;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: glowingBorder 2s infinite;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-emoji {
    font-size: 24px;
    background-color: #0C134F;
    padding: 8px;
    border-radius: 50%;
}

.profile-title {
    color: #D4ADFC;
    font-size: 18px;
    font-weight: bold;
}

.profile-info {
    background-color: #0C134F;
    border-radius: 12px;
    padding: 15px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(212, 173, 252, 0.1);
}

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

.info-label {
    color: #D4ADFC;
    opacity: 0.8;
    font-size: 14px;
}

.info-value {
    color: #D4ADFC;
    font-weight: bold;
}

.info-value.credits {
    color: #FFD700;
}

.info-value.subscription.inactive {
    color: #F44336;
}

.info-value.subscription.active {
    color: #4CAF50;
}

.profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.app-logo {
    display: flex;
    align-items: center;
    padding: 12px;
    width: 50%;
}

.app-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Create a header container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    margin-bottom: 0px;
    gap: 10px;
}

/* Bottom Navigation Styles */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0C134F;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 16px 0; /* Adjust this value to move the bottom navigation up or down */
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 400px;
    margin: 0 auto;
    border-top: 1px solid rgba(212, 173, 252, 0.1);

}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: #D4ADFC;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 33.33%;
    position: relative;
    overflow: hidden;
    margin-top: -8px; /* Adjust this value to move the bottom navigation up or down */
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 3px;
    background-color: #E5B8F4;
    transition: transform 0.3s ease;
    border-radius: 3px;
}

.nav-btn:hover {
    color: #E5B8F4;
    transform: translateY(-2px);
}

.nav-btn:active {
    transform: scale(0.95) translateY(0);
}

.nav-btn.active {
    color: #E5B8F4;
}

.nav-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nav-btn:hover .nav-text {
    opacity: 1;
}

/* Add a subtle glow effect for active state */
.nav-btn.active .nav-icon {
    filter: drop-shadow(0 0 8px rgba(229, 184, 244, 0.4));
}

/* Update icon styles to include search icon */
.home-icon,
.search-icon,
.profile-icon {
    width: 24px;
    height: 24px;
    fill: #D4ADFC;
    transition: all 0.3s ease;
}

.nav-btn:hover .home-icon,
.nav-btn:hover .search-icon,
.nav-btn:hover .profile-icon {
    fill: #E5B8F4;
    transform: scale(1.1);
}

.nav-btn.active .home-icon,
.nav-btn.active .search-icon,
.nav-btn.active .profile-icon {
    fill: #E5B8F4;
    filter: drop-shadow(0 0 8px rgba(229, 184, 244, 0.4));
}

/* Thank You Page Styles */
.thank-you-section {
    margin: 20px 0;
}

.thank-you-card {
    background-color: #1D267D;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    animation: glowingBorder 2s ease-in-out infinite;
}

.thank-you-image {
    margin: -20px -20px 20px -20px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
}

.thank-you-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.thank-you-content {
    padding: 0 10px;
}

.thank-you-content h2 {
    color: #E5B8F4;
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(229, 184, 244, 0.5);
}

.thank-you-content p {
    color: #D4ADFC;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.thank-you-card .back-btn {
    background-color: #E5B8F4;
    color: #0C134F;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.thank-you-card .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 184, 244, 0.3);
}

.thank-you-card .back-btn:active {
    transform: translateY(0);
}

/* Add this with your other styles */
.go-to-cleo-btn {
    background: linear-gradient(45deg, #E5B8F4, #D4ADFC);
    color: #0C134F;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(229, 184, 244, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    width: 80%;
    max-width: 250px;
}

.go-to-cleo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 184, 244, 0.4);
}

.go-to-cleo-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(229, 184, 244, 0.3);
}

.go-to-cleo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.go-to-cleo-btn:hover::before {
    left: 100%;
}

/* Add these styles to your existing app.css file */

.temp-mood-message,
.temp-reset-message {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.temp-mood-message p,
.temp-reset-message p {
    color: #D4ADFC;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    margin: 0;
}

.go-to-chat-btn {
    background-color: transparent;
    color: white;
    border-style: solid;
    border-color: #607D8B;
    border-width: 1px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(229, 184, 244, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.go-to-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 184, 244, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.go-to-chat-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(229, 184, 244, 0.1);
}

.go-to-chat-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.go-to-chat-btn:hover::before {
    left: 100%;
}

.character-card-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 20px;
    margin-top: 20px;
    box-sizing: border-box;
}

.character-card-buttons .back-btn {
    margin-bottom: 10px;
    width: 100%;
}

.chat-btn-big {
    background-color: #E5B8F4;
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.x-follow-btn {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.premium-card {
    background: linear-gradient(145deg, #1D267D, #2A3490);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.premium-card:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.premium-ribbon {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
    animation: pulse-gold 2s infinite;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.premium-badge {
    position: absolute;
    top: 16px;
    right: -34px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 30px;
    font-size: 10px;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse-gold {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
}

.premium-card .card-content img {
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.premium-card .chat-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.premium-card .chat-btn:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

/* Tips and Tricks Styles */
.tips-section {
    padding: 20px;
    margin-top: 20px;
}

.tips-header {
    text-align: center;
    margin-bottom: 30px;
}

.tips-header h2 {
    color: #E5B8F4;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(229, 184, 244, 0.5);
}

.tips-subtitle {
    color: #D4ADFC;
    font-size: 16px;
    opacity: 0.8;
}

.tips-welcome {
    background: linear-gradient(145deg, #1D267D, #2A3490);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tips-card {
    background-color: #1D267D;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    animation: glowingBorder 2s ease-in-out infinite;
}

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

.tips-icon {
    font-size: 24px;
    background-color: #0C134F;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tips-content {
    color: #D4ADFC;
}

.tips-content h4 {
    color: #E5B8F4;
    margin: 15px 0 10px;
}

.pro-tip {
    background-color: #0C134F;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tip-icon {
    font-size: 20px;
}

.example-box {
    background-color: #0C134F;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.example-box h6 {
    color: #E5B8F4;
    margin: 0 0 8px;
}

.pro-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-tips-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.bullet {
    font-size: 20px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    color: #E5B8F4;
    margin-bottom: 8px;
}

.mood-guide {
    margin: 20px 0;
}

.request-examples {
    background-color: #0C134F;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.request-examples h5 {
    color: #E5B8F4;
    margin: 0 0 15px;
}

.credits-indicator {
    background: linear-gradient(45deg, #1D267D, #2A3490);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid rgba(212, 173, 252, 0.1);
    animation: subtle-glow 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.credits-icon {
    font-size: 14px;
}

.credits-value {
    color: #D4ADFC;
    font-weight: bold;
    font-size: 14px;
    min-width: 20px;
    text-align: right;
}

@keyframes subtle-glow {
    0% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 2px 12px rgba(212, 173, 252, 0.3);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
}

.credits-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 173, 252, 0.4);
    background: linear-gradient(45deg, #2A3490, #1D267D);
}

.credits-indicator:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 173, 252, 0.2);
}



/* Carousel Styles */
.credits-carousel {
    background: linear-gradient(145deg, #1D267D, #2A3490);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin: 0 auto;
    
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.credit-package {
    background: rgba(13, 19, 79, 0.7);
    border-radius: 15px;
    padding: 25px 35px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 0;
    min-width: 240px;
    
    box-sizing: border-box;
    margin: 0 auto;
}

/* this popular class is not used anymore */
.credit-package.popular {
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.pricing-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: #0C134F;
    border-radius: 12px;
    color: #D4ADFC;
}

.pricing-icon {
    color: #B47AFF;
    min-width: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    
}

.pricing-header h3 {
    margin: 0;
    color: #D4ADFC;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Optional hover effect */
.pricing-card:hover .pricing-icon {
    fill: var(--accent-color, #B47AFF);
}

.package-header {
    margin-bottom: 20px;
}

.credit-amount {
    font-size: 48px;
    font-weight: bold;
    color: #E5B8F4;
    display: block;
    line-height: 1;
    margin-top: 20px;
    background: linear-gradient(45deg, #E5B8F4, #D4ADFC);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.credit-label {
    font-size: 14px;
    color: #D4ADFC;
    opacity: 0.8;
    letter-spacing: 2px;
}

.package-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.star-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.tg-star {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.price-amount {
    font-size: 32px;
    font-weight: bold;
    color: #FFD700;
}

.package-features {
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #D4ADFC;
    font-size: 14px;
}

.feature-icon {
    font-size: 18px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(212, 173, 252, 0.3);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #D4ADFC;
    
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(29, 38, 125, 0.8);
    border: none;
    color: #D4ADFC;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(29, 38, 125, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.subscription-btn {
    margin-top: 30px;
    background: linear-gradient(45deg, #E5B8F4, #D4ADFC);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: #0C134F;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subscription-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 184, 244, 0.3);
}

.package-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #0C134F;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: shine 2s infinite;
    z-index: 2;
}

.package-label-membership {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #0C134F;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: shine 2s infinite;
    z-index: 2;
}




.discount-bubble {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    z-index: 2;
    width: fit-content;
    animation: pulse-discount 2s infinite;
}

@keyframes pulse-discount {
    0% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

/* Update credit package to support new elements */
.credit-package {
    position: relative;
    padding-top: 30px;
    margin-top: 15px;
}

.membership-card {
    background: linear-gradient(145deg, #1D267D, #2A3490);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.info-card {
    background: rgba(13, 19, 79, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.info-content {
    padding: 15px;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h4 {
    color: #E5B8F4;
    margin-bottom: 10px;
    font-size: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #D4ADFC;
    font-size: 14px;
    padding: 8px;
    background: rgba(29, 38, 125, 0.3);
    border-radius: 8px;
}

.info-icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.price-period {
    color: #D4ADFC;
    font-size: 16px;
    opacity: 0.8;
    margin-left: 5px;
}

.membership-card .package-header {
    text-align: center;
    margin-bottom: 20px;
}

.membership-card .credit-amount {
    background: linear-gradient(45deg, #E5B8F4, #D4ADFC);
    margin-top: 30px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Add shine animation for the label */
@keyframes shine {
    0% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
}

/* Update membership card to accommodate the label */
.membership-card {
    margin-top: 15px;
    padding-top: 35px;
}

.payment-method-section {
    background-color: #0C134F;
    max-width: 300px;
    border-radius: 16px;
    margin: 15px auto; /* Changed to 'auto' for horizontal centering */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-method-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.payment-method-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.5px;
}

.payment-method-arrow {
    font-size: 16px;
    color: #fff;
    transition: transform 0.3s ease;
}

.payment-method-content {
    display: none;
    padding: 8px 20px 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.payment-option.selected {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.payment-icon {
    font-size: 18px;
    margin-right: 12px;
    color: #FFD700;
}

.payment-text {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

/* TON Connect */
#ton-connect {
    display: none;
    margin: 20px auto;
    max-width: 300px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ton-connect > div {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* credit package styles */

.credit-package, .membership-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.credit-package.selected, .membership-card.selected {
    border: 2px solid #E5B8F4;
    box-shadow: 0 0 15px rgba(229, 184, 244, 0.5);
    
    transition: all 0.3s ease;
}

.video-loading-spinner {
    position: absolute;
    inset: 0; /* This sets top, right, bottom, left to 0 */
    margin: auto; /* This centers the element */
    width: 40px;
    height: 40px;
    border: 4px solid #1D267D;
    border-top: 4px solid #E5B8F4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

.video-error {
    color: #F44336;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    background-color: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    margin: 10px 0;
}

/* Dating Rank Section */
.dating-rank-section {
    background: #0C134F;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: glowingBorderReddish 2s ease-in-out infinite;
}

.dating-rank-title {
    font-size: 18px;
    font-weight: 600;
    color: #D4ADFC;
    margin-bottom: 15px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.dating-rank-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #FF1493);
    border-radius: 3px;
}

.dating-badge {
    width: 150px;
    height: 150px;
    border-radius: 25%;
    margin: 0 auto 15px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(212, 173, 252, 0.4));
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: badgePulse 2s ease-in-out infinite;
}

.dating-badge:hover {
    transform: scale(1.1);
    animation: none;
}

.rank-info {
    text-align: center;
    margin-bottom: 15px;
}

.current-rank {
    font-size: 16px;
    color: #D4ADFC;
    margin-bottom: 10px;
    text-align: center;
}

.rank-name {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    margin: 8px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}


.rank-description {
    font-size: 14px;
    color: #D4ADFC;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 0 5px;
}

.community-stats {
    background: linear-gradient(135deg, #1D267D 0%, #0C134F 100%);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    color: #D4ADFC;
    margin-top: 20px;
    border: 1px solid rgba(212, 173, 252, 0.2);
}

.percentile-value {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    margin: 0 5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.rank-note {
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.note-icon {
    font-size: 1.2em;
    color: #FF69B4;
}

.note-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    line-height: 1.4;
    font-style: italic;
}

/* Ranks Info Section */
.ranks-info-section {
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.ranks-info-section h2 {
    text-align: center;
    color: #D4ADFC;
    margin-bottom: 30px;
    font-size: 24px;
    position: relative;
    padding-bottom: 15px;
}

.ranks-info-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #FF1493);
    border-radius: 3px;
}

.ranks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    
    max-width: 800px;
    margin: 0 auto;
}

.rank-card {
    display: flex;
    background: linear-gradient(45deg, #1D267D, #2A3490);
    border-radius: 12px;
    padding: 15px;    
    gap: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rank-card:hover {
    transform: translateY(-2px);
}

.rank-badge {
    width: 120px;
    height: 120px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 30px; /* Make space for the rarity bubble */
}

.rank-badge img {
    width: 100%;
    height: 100%;
    border-radius: 25%;
    border: 1px solid rgba(212, 173, 252, 0.2);
    object-fit: contain;
    border-radius: 25%;
}

.rank-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rank-info h3 {
    margin: 0 0 8px 0;
    color: #FFD700;
    font-size: 16px;
}

.rank-description {
    margin: 0 0 12px 0;
    color: #D4ADFC;
    font-size: 14px;
    line-height: 1.4;
}

.difficulty-level-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.difficulty-level {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 8px;
    border-radius: 20px;
    font-size: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.difficulty-level::before {
    content: "Difficulty Level:";
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.difficulty-level {
    color: #fff;
    font-weight: 500;
    text-transform: capitalize;
}

.rarity-bubble {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    text-align: center;
    width: fit-content;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.rarity-bubble.super-ultra-rare {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
}

.rarity-bubble.very-rare {
    background: linear-gradient(45deg, #FF69B4, #FF1493);
    color: white;
}

.rarity-bubble.rare {
    background: linear-gradient(45deg, #4169E1, #1E90FF);
    color: white;
}

.rarity-bubble.uncommon {
    background: linear-gradient(45deg, #32CD32, #00FF00);
    color: black;
}

.rarity-bubble.common {
    background: linear-gradient(45deg, #A9A9A9, #808080);
    color: white;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.rank-calculation-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rank-calculation-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.rank-calculation-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.rank-calculation-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #FF1493);
    border-radius: 3px;
}

.calculation-content {
    color: #e0e0e0;
    line-height: 1.6;
}

.calculation-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.calculation-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.calculation-content ul li {
    margin: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.calculation-content ul li:hover {
    transform: translateX(5px);
}

.calculation-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ffd93d;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.calculation-content ul li:hover::before {
    transform: translateX(5px);
}

.calculation-content .note {
    background: rgba(255, 217, 61, 0.1);
    border-left: 4px solid #ffd93d;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.calculation-content .note::before {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* Instagram-like Story Styles */
.story-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent mobile browser behaviors */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Prevent context menu */
    -webkit-context-menu: none;
    -moz-context-menu: none;
    -ms-context-menu: none;
    
}

.story-overlay.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

/* Story content container - centered with max-width */
.story-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 100vh;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    /* Prevent mobile browser behaviors */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.story-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100002;
    padding: 15px 15px 0;
    display: flex;
    gap: 4px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    background-color: white;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

.story-progress-fill.active {
    animation: storyProgress 4s linear forwards;
}

@keyframes storyProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.story-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100020;
    padding: 50px 15px 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.story-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E5B8F4;
}

.story-user-details {
    color: white;
}

.story-username {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.story-timestamp {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.story-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 100010;
    position: relative;
    pointer-events: auto;
}

.story-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.story-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.story-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    /* Prevent mobile browser behaviors */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: none;
}

.story-image.active {
    opacity: 1;
    z-index: 2;
}

/* Ensure proper aspect ratio for story images (720x1024 = 9:13.33) */
.story-image {
    aspect-ratio: 9/13.33;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Center the image within the container */
.story-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.story-navigation {
    position: absolute;
    top: 80px; /* Start below the header */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100003;
    display: flex;
}

.story-nav-left {
    flex: 1;
    cursor: pointer;
    /* Prevent mobile browser behaviors but keep touch events */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.story-nav-right {
    flex: 1;
    cursor: pointer;
    /* Prevent mobile browser behaviors but keep touch events */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.story-counter {
    position: absolute;
    top: 100px;
    left: 15px;
    color: white;
    font-size: 14px;
    opacity: 0.8;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 12px;
}

/* Story preview indicator on character image */
.character-image {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.character-image:hover {
    transform: scale(1.05);
}

.story-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #E5B8F4, #D4ADFC);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #0C134F;
    font-weight: bold;
    animation: storyPulse 2s infinite;
    z-index: 10;
}

@keyframes storyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile-specific adjustments */
@media (max-width: 400px) {
    .story-content-wrapper {
        max-width: 100vw;
        width: 100vw;
    }
    
    .story-header {
        padding: 45px 10px 10px;
    }
    
    .story-user-avatar {
        width: 35px;
        height: 35px;
    }
    
    .story-username {
        font-size: 14px;
    }
    
    .story-timestamp {
        font-size: 11px;
    }
    
    .story-counter {
        top: 55px;
        left: 10px;
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .story-close-btn {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    
    /* Ensure proper aspect ratio on mobile - show full image */
    .story-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: 9/13.33;
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
    }
}

/* Ensure story overlay takes full height on mobile */
@media (max-height: 600px) {
    .story-overlay {
        height: 100vh;
    }
    
    .story-content {
        height: calc(100vh - 80px); /* Account for header */
    }
    
    .story-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: 9/13.33;
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
    }
}

/* Additional mobile optimizations */
@media (max-width: 400px) and (max-height: 800px) {
    .story-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
    }
    
    .story-progress-container {
        padding: 10px 10px 0;
    }
    
    .story-header {
        padding: 40px 10px 10px;
    }
    
    /* Optimize image display for smaller screens - show full image */
    .story-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: 9/13.33;
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
    }
}

/* Prevent body scroll when story is active */
body.story-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Improve touch targets for mobile */
@media (max-width: 400px) {
    .story-nav-left,
    .story-nav-right {
        min-height: 60px;
    }
    
    .story-close-btn {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
}

.story-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.story-chat-btn {
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.6);
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.story-chat-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(128, 128, 128, 0.8);
    transform: scale(1.05);
}

.story-chat-btn:active {
    transform: scale(0.95);
}

