@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

* {
    font-family: 'Noto Sans Bengali', Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Homepage Styles */
.golden-gradient {
    background: linear-gradient(180deg, #B8860B 0%, #FFD700 50%, #F4E4BC 100%);
}

.golden-extended-gradient {
    background: linear-gradient(180deg, #B8860B 0%, #FFD700 30%, #F4E4BC 70%, #ffffff 85%, #ffffff 100%);
    min-height: calc(100vh - 140px);
}

/* Glowing Button Styles */
.glowing-button {
    position: relative;
    background: white;
    border: 2px solid transparent;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glowing-button .button-text {
    color: #1A1A1A;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}

.glowing-button .button-icon {
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

/* Gold Button */
.glowing-button[data-color="gold"]::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF8C00, #FFD700);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: glowingGold 3s ease-in-out infinite;
    transition: opacity 0.5s;
}

.glowing-button[data-color="gold"]:hover::before {
    opacity: 1;
}

.glowing-button[data-color="gold"]:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 
                0 0 40px rgba(255, 215, 0, 0.4),
                0 0 60px rgba(255, 215, 0, 0.2);
}

.glowing-button[data-color="gold"]:hover .button-icon {
    color: #9C27B0;
}

/* Blue Button */
.glowing-button[data-color="blue"]::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2962FF, #0D47A1, #1976D2, #2962FF);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: glowingBlue 3s ease-in-out infinite;
    transition: opacity 0.5s;
}

.glowing-button[data-color="blue"]:hover::before {
    opacity: 1;
}

.glowing-button[data-color="blue"]:hover {
    box-shadow: 0 0 20px rgba(41, 98, 255, 0.6), 
                0 0 40px rgba(41, 98, 255, 0.4),
                0 0 60px rgba(41, 98, 255, 0.2);
}

.glowing-button[data-color="blue"]:hover .button-icon {
    color: #2962FF;
}

/* Red Button */
.glowing-button[data-color="red"]::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff4444, #cc0000, #ff6b6b, #ff4444);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: glowingRed 3s ease-in-out infinite;
    transition: opacity 0.5s;
}

.glowing-button[data-color="red"]:hover::before {
    opacity: 1;
}

.glowing-button[data-color="red"]:hover {
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6), 
                0 0 40px rgba(255, 68, 68, 0.4),
                0 0 60px rgba(255, 68, 68, 0.2);
}

.glowing-button[data-color="red"]:hover .button-icon {
    color: #4CAF50;
}

/* Glowing Animations */
@keyframes glowingGold {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glowingBlue {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glowingRed {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Modern Slider Styles */
.modern-slider {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.slider-slide:hover img {
    transform: scale(1.05);
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slider-slide:hover .slider-overlay {
    transform: translateY(0);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.9);
    transition: width 4s linear;
    z-index: 5;
}

.floating-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-up-from-bottom {
    animation: slideUpFromBottom 0.6s ease-out forwards;
}

@keyframes slideUpFromBottom {
    0% { transform: translateY(200px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Glow text effect */
.glow-text {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3), 
                 0 0 10px rgba(0, 0, 0, 0.2), 
                 0 0 15px rgba(0, 0, 0, 0.1), 
                 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Chat Page Styles */
.chat-page {
    background: linear-gradient(135deg, #B8860B 0%, #FFD700 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.chat-container {
    flex: 1;
    background: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    margin-bottom: 80px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.message:hover {
    transform: scale(1.02);
}

.sender {
    align-self: flex-end;
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    border-bottom-right-radius: 5px;
    margin-left: auto;
    display: block;
}

.receiver {
    align-self: flex-start;
    background-color: #f1f3f4;
    color: #1A1A1A;
    border-bottom-left-radius: 5px;
}

.admin-message {
    background-color: white;
    padding: 12px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    margin-bottom: 8px;
    max-width: 85%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-message:hover {
    transform: scale(1.02);
}

.admin-meta {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 5px;
}

.header-gradient {
    background: linear-gradient(135deg, #B8860B 0%, #FFD700 100%);
}

/* Chat Layout */
.chat-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0;
    scroll-behavior: smooth;
    background: white;
    position: relative;
    padding-bottom: 120px;
}

/* Action buttons in chat area - positioned higher */
.chat-action-buttons {
    background: white;
    padding: 16px;
    margin: 8px 0;
    margin-bottom: 48px;
}

/* Chat input fixed at bottom */
.chat-input {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 12px;
    z-index: 30;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Connection Status */
.connection-status {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    z-index: 25;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideUpStatus 0.3s ease-out;
}

@keyframes slideUpStatus {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.profile-stack-small {
    display: flex;
    position: relative;
}

.profile-stack-small img {
    border: 2px solid white;
    margin-left: -6px;
}

.profile-stack-small img:first-child {
    margin-left: 0;
}

.message-input {
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}

.message-input:focus {
    border-color: #9C27B0;
    outline: none;
}

.send-button, .file-button, .mic-button {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    transition: transform 0.2s, background 0.3s;
}

.send-button:hover, .file-button:hover, .mic-button:hover {
    transform: scale(1.05);
}

.send-button.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.service-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
}

.button-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-btn {
    opacity: 0;
    animation: slideInFromLeft 0.4s ease-out forwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

/* Modern 3D Action Buttons */
.action-button {
    background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        8px 8px 16px rgba(163, 177, 198, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.5),
        inset 0 0 0 rgba(163, 177, 198, 0);
    font-size: 0.8rem !important;
    padding: 14px 18px !important;
    border-radius: 16px !important;
    text-align: center;
    color: #2962FF !important;
    font-weight: 600 !important;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: auto;
    min-width: fit-content;
    max-width: 180px;
    transform: translateZ(0);
    perspective: 1000px;
}

.action-button span {
    display: block;
    line-height: 1.3;
    font-size: 0.75rem;
    position: relative;
    z-index: 2;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(156, 39, 176, 0.1), rgba(123, 31, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.action-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        12px 12px 24px rgba(163, 177, 198, 0.7),
        -12px -12px 24px rgba(255, 255, 255, 0.6),
        inset 2px 2px 4px rgba(163, 177, 198, 0.2);
    background: linear-gradient(145deg, #9C27B0, #7B1FA2) !important;
    color: white !important;
}

.action-button:hover::before {
    opacity: 1;
}

.action-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        4px 4px 8px rgba(163, 177, 198, 0.6),
        -4px -4px 8px rgba(255, 255, 255, 0.5),
        inset 4px 4px 8px rgba(163, 177, 198, 0.3);
}

/* Customer Service Button - 3D Blue Style */
.action-button.customer-service {
    background: linear-gradient(145deg, #2962FF, #1E88E5) !important;
    color: white !important;
    border: none !important;
    box-shadow: 
        8px 8px 16px rgba(41, 98, 255, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.1),
        inset 0 0 0 rgba(41, 98, 255, 0);
    border-radius: 16px !important;
    width: 100%;
    padding: 18px 20px !important;
    font-size: 0.9rem !important;
    margin-top: 12px;
    max-width: none;
    transform: translateZ(0);
}

.action-button.customer-service:hover {
    box-shadow: 
        12px 12px 24px rgba(41, 98, 255, 0.5),
        -12px -12px 24px rgba(255, 255, 255, 0.2),
        inset 2px 2px 4px rgba(13, 71, 161, 0.3);
    background: linear-gradient(145deg, #1E88E5, #1565C0) !important;
    transform: translateY(-4px) scale(1.02);
}

.action-button.customer-service:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        4px 4px 8px rgba(41, 98, 255, 0.4),
        -4px -4px 8px rgba(255, 255, 255, 0.1),
        inset 4px 4px 8px rgba(13, 71, 161, 0.4);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.profile-stack {
    position: relative;
    display: flex;
}

.profile-stack img {
    border: 3px solid white;
    margin-left: -8px;
}

.profile-stack img:first-child {
    margin-left: 0;
    z-index: 3;
}

.profile-stack img:nth-child(2) {
    z-index: 2;
}

.profile-stack img:nth-child(3) {
    z-index: 1;
}

.back-button, .close-button {
    transition: all 0.3s;
}

.back-button:hover, .close-button:hover {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.media-message {
    background: white;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.media-message img, .media-message video {
    width: 100%;
    height: auto;
    display: block;
}

.recording {
    background: #ff4444 !important;
    animation: pulse 1s infinite;
}

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

.audio-message {
    background: white !important;
    padding: 12px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 280px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom-right-radius: 5px;
    border: none !important;
}

.audio-message audio {
    flex: 1;
    height: 32px;
}

.audio-icon {
    color: #9C27B0;
    font-size: 18px;
}

.audio-duration {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.hidden-input {
    display: none;
}

.file-preview {
    position: relative;
    display: inline-block;
}

.file-preview .remove-file {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.permission-alert {
    background: #fff3cd;
    border: 1px solid #ffd700;
    color: #856404;
    padding: 10px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 14px;
}

.recording-timer {
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
}

.mic-disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

.mic-disabled:hover {
    transform: none !important;
}

.hidden {
    display: none !important;
}

.timestamp-popup {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.timestamp-popup.show {
    opacity: 1;
}

.button-clicked {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.6), 0 0 25px rgba(156, 39, 176, 0.5) !important;
    transform: scale(1.05) !important;
}

.button-clicked.customer-service {
    background: linear-gradient(135deg, #1E88E5, #1565C0) !important;
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.6), 0 0 25px rgba(41, 98, 255, 0.5) !important;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1A1A1A;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item.active {
    color: #2962FF;
}

.nav-item:hover:not(.active) {
    color: #9C27B0;
}

/* Hide bottom nav in chat page */
.chat-page .bottom-nav {
    display: none;
}

/* Story Feature Styles */
.story-container {
    display: flex;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.story-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.story-item:hover {
    transform: scale(1.05);
}

.story-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #9C27B0;
    padding: 2px;
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
    margin-bottom: 5px;
    position: relative;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.story-avatar.add-story {
    border: 3px dashed #ccc;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-name {
    font-size: 12px;
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1A1A1A;
}

/* Story Modal */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.story-modal.active {
    opacity: 1;
    visibility: visible;
}

.story-content {
    max-width: 350px;
    width: 90%;
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.story-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Add Story Modal */
.add-story-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.add-story-modal.active {
    opacity: 1;
    visibility: visible;
}

.add-story-content {
    max-width: 400px;
    width: 90%;
    background: white;
    border-radius: 20px;
    padding: 25px;
    position: relative;
}

.verification-step {
    display: none;
}

.verification-step.active {
    display: block;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #9C27B0;
    background-color: #f8f9ff;
}

.upload-area.dragover {
    border-color: #9C27B0;
    background-color: #f0f4ff;
}

/* Page containers */
.page-container {
    display: none;
}

.page-container.active {
    display: block;
}

/* Homepage adjustments - Mobile optimized */
.homepage-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.slider-section {
    flex-shrink: 0;
}

.greeting-section {
    flex-shrink: 0;
    padding: 15px 20px 0 20px;
}

.buttons-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 8px 20px 20px 20px;
    padding-bottom: 90px;
}

/* Proxy Page Styles */
.proxy-page {
    min-height: calc(100vh - 70px);
    background: #fff;
    overflow-y: auto;
}

.proxy-header {
    background-color: #3f51b5;
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.url-bar {
    display: flex;
    align-items: center;
    margin: 0 10px;
    background-color: #5c6bc0;
    border-radius: 25px;
    padding: 5px 15px;
}

.home-icon {
    font-size: 24px;
    margin-right: 10px;
}

.url-text {
    flex-grow: 1;
    color: white;
    font-size: 18px;
}

.header-icons {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.header-icon {
    margin: 0 5px;
    font-size: 20px;
}

.proxy-content {
    margin-top: 85px;
    padding: 15px;
    margin-bottom: 70px;
}

.page-title {
    color: #3f51b5;
    font-size: 28px;
    margin-bottom: 20px;
}

.menu-toggle {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    font-size: 28px;
    cursor: pointer;
}

.category {
    margin-bottom: 30px;
}

.category-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
    color: #1A1A1A;
}

.link-item {
    margin-bottom: 10px;
}

.link-label {
    font-weight: normal;
    margin-bottom: 5px;
    color: #1A1A1A;
}

.proxy-link {
    color: #2962FF;
    text-decoration: none;
}

.portal-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 4px;
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #ccc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1A1A1A;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Message History Styles */
.message-history-page {
    min-height: calc(100vh - 70px);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.no-messages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.message-icon-container {
    position: relative;
    display: inline-block;
}

.message-icon {
    font-size: 80px;
    color: #1A1A1A;
}

.x-mark {
    position: absolute;
    top: -10px;
    right: -10px;
    color: #ff4444;
    font-size: 30px;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff4444;
}

.no-messages-button {
    background: #1A1A1A;
    color: #ff4444;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    animation: glow-red 2s ease-in-out infinite alternate;
    cursor: pointer;
    transition: all 0.3s ease;
}

@keyframes glow-red {
    from {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.8);
    }
}

.no-messages-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(255, 68, 68, 0.9);
}

.greeting-hi {
    color: #ff0000 !important;
}

.greeting-help {
    color: #1A1A1A !important;
}

/* Auto-scroll to new messages */
.new-message {
    animation: highlightNewMessage 1s ease-out;
}

@keyframes highlightNewMessage {
    0% {
        background-color: rgba(156, 39, 176, 0.1);
        transform: scale(1.02);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* Mobile responsive improvements */
@media (max-width: 480px) {
    /* Slider improvements */
    .modern-slider {
        height: 150px;
        margin: 10px 15px;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
    
    .slider-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .slider-prev {
        left: 8px;
    }
    
    .slider-next {
        right: 8px;
    }
    
    .slider-overlay {
        padding: 10px;
        font-size: 14px;
    }
    
    .slider-overlay h3 {
        font-size: 16px;
    }
    
    .slider-overlay p {
        font-size: 12px;
    }
    
    /* Homepage layout improvements */
    .homepage-content {
        height: 100vh;
        overflow: hidden;
    }
    
    .golden-extended-gradient {
        min-height: auto;
    }
    
    .greeting-section {
        padding: 10px 20px 0 20px;
    }
    
    .greeting-section .text-3xl {
        font-size: 1.5rem;
    }
    
    .greeting-section .text-2xl {
        font-size: 1.25rem;
    }
    
    .greeting-section .text-xl {
        font-size: 1.125rem;
    }
    
    .buttons-section {
        padding: 5px 20px 20px 20px;
        padding-bottom: 80px;
        gap: 0.5rem;
    }
    
    .buttons-section .space-y-4 > * + * {
        margin-top: 0.75rem;
    }
    
    .home-button {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Chat improvements */
    .chat-container {
        margin-bottom: 90px;
    }
    
    .chat-box {
        padding: 12px;
        padding-bottom: 100px;
    }
    
    .chat-action-buttons {
        padding: 12px;
        margin-bottom: 60px;
    }
    
    .service-buttons-grid {
        max-width: 100%;
        gap: 8px;
    }
    
    .button-row {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }
    
    .action-button {
        font-size: 0.65rem !important;
        padding: 8px 10px !important;
        min-width: fit-content;
        max-width: 140px;
        min-height: 40px;
    }
    
    .action-button span {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .action-button.customer-service {
        padding: 12px 16px !important;
        font-size: 0.75rem !important;
        margin-top: 8px;
    }
    
    /* Story improvements */
    .story-container {
        padding: 10px;
        gap: 8px;
    }
    
    .story-avatar {
        width: 55px;
        height: 55px;
    }
    
    .story-name {
        font-size: 10px;
        max-width: 55px;
    }
    
    /* Other mobile improvements */
    .proxy-button-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .message-icon {
        font-size: 60px;
    }
    
    .x-mark {
        font-size: 24px;
        width: 32px;
        height: 32px;
    }
    
    .no-messages-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Auto-scroll enhancement for mobile */
    .message, .admin-message {
        scroll-margin-bottom: 120px;
    }
}
