/* --- DESIGN SYSTEM (Standard & Clean) --- */
:root {
    --bg-light: #cee3f5;
    --text-main: #1a2a33;
    --accent: #2c3e50;
    --glass: rgba(255, 255, 255, 0.4);
    --user-msg-bg: #f5f5f5;
    --user-text: #333333;
    --bot-text-color: #1a2a33;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-light: #2B2E33;
    --text-main: #F5F6F7;
    --accent: #C1C4C8;
    --glass: rgba(255, 255, 255, 0.06);
    --user-msg-bg: #363a40;
    --user-text: #F5F6F7;
    --bot-text-color: #F5F6F7;
    --sidebar-bg: #2B2E33;
    --border-color: rgba(123, 127, 133, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Animated Background */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(209, 222, 231, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: drift 15s infinite alternate ease-in-out;
    transition: background 0.5s ease;
}

[data-theme="dark"] .bg-glow {
    background: radial-gradient(circle, rgba(123, 127, 133, 0.08) 0%, rgba(43, 46, 51, 0) 70%);
}

@keyframes drift {
    from {
        transform: translate(-50%, -55%) scale(1);
    }

    to {
        transform: translate(-45%, -45%) scale(1.1);
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1999;
    pointer-events: none;
    transition: background 0.4s ease;
}

.sidebar-overlay.active {
    background: rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -320px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-light);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    padding: 50px 25px;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.5s ease;
    transform: translateX(0);
}

[data-theme="dark"] .sidebar {
    background: #2B2E33;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.4);
}

@keyframes sidebarSlideIn {
    from {
        transform: translateX(-16px);
    }

    to {
        transform: translateX(0);
    }
}

.sidebar.active {
    left: 0;
    animation: sidebarSlideIn 0.35s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar.active {
        animation: none;
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.sidebar.active .sidebar-header {
    opacity: 1;
    transform: translateX(0);
}

.close-btn {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.sidebar-item {
    padding: 15px 0;
    font-size: 1.1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s, padding-left 0.2s ease, color 0.2s ease, border-color 0.5s ease;
}

[data-theme="dark"] .sidebar-item {
    border-bottom: 1px solid rgba(123, 127, 133, 0.2);
}

[data-theme="dark"] .sidebar-item:hover {
    color: #C1C4C8;
}

.sidebar.active .sidebar-item {
    opacity: 1;
    transform: translateX(0);
}

.sidebar.active .sidebar-item:nth-child(1) {
    transition-delay: 0.15s;
}

.sidebar.active .sidebar-item:nth-child(2) {
    transition-delay: 0.2s;
}

.sidebar.active .sidebar-item:nth-child(3) {
    transition-delay: 0.25s;
}

.sidebar.active .sidebar-item:nth-child(4) {
    transition-delay: 0.3s;
}

.sidebar.active .sidebar-item:nth-child(5) {
    transition-delay: 0.35s;
}

.sidebar.active .sidebar-item:nth-child(6) {
    transition-delay: 0.4s;
}

.sidebar.active .sidebar-item:nth-child(7) {
    transition-delay: 0.45s;
}

.sidebar.active .sidebar-item:nth-child(8) {
    transition-delay: 0.5s;
}

.sidebar.active .sidebar-item:nth-child(9) {
    transition-delay: 0.55s;
}

.sidebar.active .sidebar-item:nth-child(10) {
    transition-delay: 0.6s;
}

.sidebar.active .sidebar-item:nth-child(11) {
    transition-delay: 0.65s;
}

.sidebar.active .sidebar-item:nth-child(12) {
    transition-delay: 0.7s;
}

.sidebar.active .sidebar-item:nth-child(13) {
    transition-delay: 0.75s;
}

/* Nested sidebar items */
.sidebar-subitem {
    padding-left: 0px;
}

.sidebar.active .sidebar-item.sidebar-subitem {
    transition-delay: 0.4s;
}

.sidebar-item:hover {
    padding-left: 10px;
    color: #555;
}

.sidebar-item.sidebar-subitem:hover {
    padding-left: 10px;
}

.sidebar-item:active {
    transform: scale(0.97);
    opacity: 0.8;
}

.chat-only {
    display: none;
}

.home-only {
    display: none;
}

/* Offline Banner */
.offline-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

.offline-banner.show {
    display: block;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Landing Page */
#landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    z-index: 10;
    transition: opacity 0.8s ease;
    position: relative;
}

.landing-menu-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
    z-index: 20;
    opacity: 0;
    animation: fadeSlideDown 0.8s ease 0.2s forwards;
}

/* Orb Container with Rings */
.orb-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 40px;
}

.orb {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #a3b8c9);
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), inset -10px -10px 30px rgba(255, 255, 255, 0.5);
    transition: background 0.5s ease, box-shadow 0.5s ease;
    opacity: 0;
    animation: orbEntrance 1.2s ease 0.3s forwards, pulse 4s infinite ease-in-out 1.5s, orbFloat 6s ease-in-out infinite 1.5s;
    position: relative;
    overflow: hidden;
}

/* Earth continents overlay */
.orb::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        radial-gradient(ellipse 35% 20% at 25% 35%, rgba(200, 210, 220, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 25% 35% at 60% 25%, rgba(190, 200, 210, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 40% 25% at 75% 55%, rgba(180, 195, 210, 0.45) 0%, transparent 70%),
        radial-gradient(ellipse 20% 30% at 40% 70%, rgba(195, 205, 215, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 30% 20% at 85% 30%, rgba(185, 200, 215, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 25% 15% at 15% 60%, rgba(190, 205, 220, 0.4) 0%, transparent 70%);
    animation: earthRotate 30s linear infinite;
    pointer-events: none;
    transition: background 0.5s ease;
}

@keyframes earthRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: ringPulse 3s ease-in-out infinite;
    transition: border-color 0.5s ease;
}

.orb-ring:nth-child(2) {
    width: 300px;
    height: 300px;
    animation-delay: 0s;
}

.orb-ring:nth-child(3) {
    width: 350px;
    height: 350px;
    animation-delay: 0.5s;
}

.orb-ring:nth-child(4) {
    width: 400px;
    height: 400px;
    animation-delay: 1s;
}

[data-theme="dark"] .orb-ring {
    border-color: rgba(123, 127, 133, 0.2);
}

[data-theme="dark"] .orb {
    background: radial-gradient(circle at 30% 30%, #6F7278, #27292E);
    box-shadow: 0 20px 60px rgba(35, 38, 42, 0.6), inset -10px -10px 30px rgba(245, 246, 247, 0.03);
}

[data-theme="dark"] .orb::before {
    background:
        radial-gradient(ellipse 35% 20% at 25% 35%, rgba(170, 173, 177, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 25% 35% at 60% 25%, rgba(170, 173, 177, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 25% at 75% 55%, rgba(170, 173, 177, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 20% 30% at 40% 70%, rgba(170, 173, 177, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 30% 20% at 85% 30%, rgba(170, 173, 177, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 25% 15% at 15% 60%, rgba(170, 173, 177, 0.12) 0%, transparent 70%);
}

@keyframes orbEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

@keyframes ringPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title {
    font-family: 'Yatra One', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0;
    animation: fadeSlideUp 1s ease 0.6s forwards;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.8rem;
    }
}

.sub-title {
    font-size: 1.2rem;
    letter-spacing: 10px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeSlideUp 1s ease 0.8s forwards;
}

.sub-title span {
    display: inline-block;
    animation: letterWave 2s ease-in-out infinite;
}

@keyframes letterWave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.enter-btn {
    display: none;
    padding: 15px 40px;
    background: white;
    color: black;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}

.enter-btn.visible {
    display: block;
    animation: buttonEntrance 0.8s ease 1s forwards;
}

@keyframes buttonEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.enter-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .enter-btn {
    background: #F5F6F7;
    color: #2B2E33;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .enter-btn:hover {
    background: #C1C4C8;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

[data-theme="dark"] .particle {
    background: rgba(193, 196, 200, 0.2);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Chat Room */
#app {
    display: none;
    height: 100vh;
    flex-direction: column;
    opacity: 0;
    transition: opacity 1s;
}

.header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 100;
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Notifications indicator (red dot) */
.notice-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
    display: none;
}

[data-theme="dark"] .notice-dot {
    box-shadow: 0 0 0 2px rgba(43, 46, 51, 0.95);
}

/* Notifications list */
.notices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.notice-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 14px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .notice-item {
    background: rgba(43, 46, 51, 0.45);
}

.notice-message {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.95;
}

.notice-date {
    margin-top: 8px;
    font-size: 0.78rem;
    opacity: 0.65;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* Theme Toggle - Half Moon */
.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--text-main);
    transition: fill 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .theme-btn svg {
    transform: rotate(-20deg);
}

.chat-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.message {
    max-width: 85%;
    padding: 14px 22px;
    border-radius: 18px;
    line-height: 1.6;
    font-size: 1.05rem;
    animation: messageFade 0.5s ease;
    word-wrap: break-word;
}

@keyframes messageFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-msg {
    align-self: flex-start;
    background: transparent;
    color: var(--bot-text-color);
    border: none;
    text-align: justify;
    text-align-last: left;
    padding-left: 5px;
    font-size: 1.08rem;
    letter-spacing: 0.3px;
    position: relative;
    hyphens: auto;
}

.bot-msg::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 4px;
    height: calc(100% - 16px);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(56, 113, 193, 0.6), rgba(56, 113, 193, 0.1));
    opacity: 0.7;
}

[data-theme="light"] .bot-msg::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.05));
}

.user-msg {
    align-self: flex-end;
    background-color: var(--user-msg-bg);
    color: var(--user-text);
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .user-msg {
    background-color: #363a40;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.bot-msg b,
.bot-msg strong {
    font-weight: 600;
    color: var(--text-main);
}

.bot-msg em,
.bot-msg i {
    font-style: italic;
    opacity: 0.9;
}

.bot-msg p {
    margin-bottom: 10px;
}

.bot-msg p:last-child {
    margin-bottom: 0;
}

.welcome-msg {
    color: var(--text-main);
    animation: messageFade 0.5s ease;
}

.typing {
    font-style: italic;
    font-size: 0.9rem;
    margin: 10px 25px;
    color: var(--text-main);
    animation: slowBlink 2s ease-in-out infinite;
}

@keyframes slowBlink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.9;
    }
}

.input-area {
    padding: 20px;
    display: flex;
    gap: 12px;
    background: transparent;
}

input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--glass);
    color: var(--text-main);
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

[data-theme="dark"] input {
    border: 1px solid rgba(123, 127, 133, 0.4);
    background: rgba(54, 58, 64, 0.8);
}

[data-theme="dark"] input:focus {
    border-color: #7B7F85;
}

[data-theme="dark"] input::placeholder {
    color: #7B7F85;
}

.send-btn {
    background: var(--text-main);
    color: var(--bg-light);
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

[data-theme="dark"] .send-btn {
    background: #7B7F85;
    color: #F5F6F7;
}

[data-theme="dark"] .send-btn:hover {
    background: #C1C4C8;
    color: #2B2E33;
}

.send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.footer-credit {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-credit a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.footer-credit a:hover {
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Theme Toggle Button Hover */
.theme-btn:hover {
    opacity: 0.9;
}

/* About & Contact Pages */
.page-section {
    display: none;
    height: 100vh;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-section.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: translateX(-5px);
}

.page-title {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.page-content {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Login Modal Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-overlay.active {
    display: flex;
}

#termsPopupOverlay {
    z-index: 10001;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 400px;
    max-width: 90%;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.21), rgba(37, 99, 235, 0.16));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.42), 0 0 40px rgba(59, 130, 246, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    animation: loginCardAppear 0.3s ease;
}

@keyframes loginCardAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

[data-theme="dark"] .login-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.12));
    border-color: rgba(59, 130, 246, 0.25);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.login-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.login-title {
    color: #000000;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-shadow: none;
}

[data-theme="dark"] .login-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.login-input-group {
    margin-bottom: 25px;
}

.login-input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.login-input-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.login-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-input-group input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    cursor: pointer;
}

.login-remember input[type="checkbox"] {
    display: none;
}

.login-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.login-remember input[type="checkbox"]:checked+.login-checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.login-checkbox-custom::after {
    content: '\2713';
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.login-remember input[type="checkbox"]:checked+.login-checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.login-remember span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.login-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.login-forgot {
    text-align: center;
    margin-top: 25px;
}

.login-forgot a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-forgot a:hover {
    color: #ffffff;
}

.login-signup {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.login-signup a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.login-signup a:hover {
    color: #93c5fd;
}

.login-btn-landing {
    position: absolute;
    top: 20px;
    right: 80px;
    z-index: 20;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeSlideDown 0.8s ease 0.4s forwards;
}

.login-btn-landing:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

[data-theme="dark"] .login-btn-landing {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Light Mode Login Form Text Colors */
body:not([data-theme="dark"]) .login-input-group label {
    color: #031B1E;
}

body:not([data-theme="dark"]) .login-input-group input {
    color: #031B1E;
}

body:not([data-theme="dark"]) .login-input-group input::placeholder {
    color: #6B7280;
}

body:not([data-theme="dark"]) .login-forgot a {
    color: #031B1E;
}

body:not([data-theme="dark"]) .login-forgot a:hover {
    color: #1e40af;
}

body:not([data-theme="dark"]) .login-signup {
    color: #031B1E;
}

body:not([data-theme="dark"]) .login-signup a {
    color: #031B1E;
}

body:not([data-theme="dark"]) .login-signup a:hover {
    color: #1e40af;
}

body:not([data-theme="dark"]) .login-remember span {
    color: #031B1E;
}

/* Signup Card Unique Style */
.signup-card {
    position: relative;
    z-index: 1;
    width: 420px;
    max-width: 90%;
    padding: 45px 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.21), rgba(37, 99, 235, 0.16));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.42), 0 0 40px rgba(59, 130, 246, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    animation: loginCardAppear 0.3s ease;
}

.signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

[data-theme="dark"] .signup-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.12));
}

.signup-title {
    color: #000000;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
    text-shadow: none;
}

[data-theme="dark"] .signup-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.signup-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.signup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* Google Sign-in Button */
/* Light Mode Signup Form Text Colors */
body:not([data-theme="dark"]) .google-divider {
    color: #031B1E;
}

.google-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.google-divider::before,
.google-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.google-divider span {
    padding: 0 15px;
}

.google-btn {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.google-btn svg {
    width: 20px;
    height: 20px;
}

/* Password Match Validation */
.password-match-msg {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

.password-match-msg.error {
    color: #ef4444;
}

.password-match-msg.success {
    color: #22c55e;
}

/* Forgot Password Card Unique Style */
.forgot-card {
    position: relative;
    z-index: 1;
    width: 400px;
    max-width: 90%;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.21), rgba(37, 99, 235, 0.16));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.42), 0 0 40px rgba(59, 130, 246, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    animation: loginCardAppear 0.3s ease;
}

.forgot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

[data-theme="dark"] .forgot-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.12));
}

.forgot-title {
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: none;
}

[data-theme="dark"] .forgot-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.forgot-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.forgot-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.forgot-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.forgot-back {
    text-align: center;
    margin-top: 25px;
}

.forgot-back a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-back a:hover {
    color: #93c5fd;
}

/* Light Mode Forgot Password Form Text Colors */
body:not([data-theme="dark"]) .forgot-subtitle {
    color: #031B1E;
}

body:not([data-theme="dark"]) .forgot-back a {
    color: #031B1E;
}

body:not([data-theme="dark"]) .forgot-back a:hover {
    color: #1e40af;
}

.page-content h3 {
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

.page-content p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.page-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-content li {
    margin-bottom: 8px;
}

/* About Page Unique Styling */
.about-content {
    padding-bottom: 40px;
}

.about-hero {
    text-align: center;
    margin-bottom: 35px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.about-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-main), rgba(56, 113, 193, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-tagline {
    font-size: 1.1rem;
    opacity: 0.7;
    font-style: italic;
    letter-spacing: 1px;
}

.about-intro {
    background: linear-gradient(135deg, rgba(56, 113, 193, 0.08), rgba(56, 113, 193, 0.02));
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    border-left: 4px solid rgba(56, 113, 193, 0.5);
}

.about-intro p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 0;
}

.about-section-block {
    margin-bottom: 30px;
}

.about-section-block h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
    position: relative;
    padding-left: 15px;
}

.about-section-block h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: linear-gradient(180deg, rgba(56, 113, 193, 0.8), rgba(56, 113, 193, 0.3));
    border-radius: 3px;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-features li {
    padding: 15px 20px;
    margin-bottom: 12px;
    background: var(--glass);
    border-radius: 12px;
    line-height: 1.7;
    transition: transform 0.2s ease, background 0.3s ease;
}

.about-features li:hover {
    transform: translateX(5px);
}

[data-theme="dark"] .about-features li {
    background: rgba(123, 127, 133, 0.1);
}

.about-quote {
    text-align: center;
    padding: 30px 20px;
    margin: 35px 0;
    background: linear-gradient(135deg, rgba(56, 113, 193, 0.1), transparent);
    border-radius: 16px;
    position: relative;
}

.about-quote p {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.8;
    margin: 0;
    opacity: 0.9;
}

.about-quote::before,
.about-quote::after {
    content: '"';
    font-size: 3rem;
    opacity: 0.2;
    position: absolute;
    font-family: Georgia, serif;
}

.about-quote::before {
    top: 10px;
    left: 20px;
}

.about-quote::after {
    bottom: -10px;
    right: 20px;
}

.about-reasons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--glass);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.reason-item:hover {
    transform: translateX(5px);
}

[data-theme="dark"] .reason-item {
    background: rgba(123, 127, 133, 0.1);
}

.reason-icon {
    font-size: 1.5rem;
}

.about-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Contact Page Unique Styling */
.contact-content {
    padding-bottom: 40px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 35px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.contact-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-main), rgba(56, 113, 193, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-tagline {
    font-size: 1.1rem;
    opacity: 0.7;
    font-style: italic;
    letter-spacing: 1px;
}

.contact-intro {
    background: linear-gradient(135deg, rgba(56, 113, 193, 0.08), rgba(56, 113, 193, 0.02));
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    border-left: 4px solid rgba(56, 113, 193, 0.5);
}

.contact-intro p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 0;
}

.contact-section-block {
    margin-bottom: 30px;
}

.contact-section-block h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-main);
    position: relative;
    padding-left: 15px;
}

.contact-section-block h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: linear-gradient(180deg, rgba(56, 113, 193, 0.8), rgba(56, 113, 193, 0.3));
    border-radius: 3px;
}

/* Terms & Conditions Styles */
.terms-section {
    margin-bottom: 25px;
    padding: 20px 25px;
    background: var(--glass);
    border-radius: 16px;
}

[data-theme="dark"] .terms-section {
    background: rgba(43, 46, 51, 0.6);
    border: 1px solid rgba(123, 127, 133, 0.2);
}

.terms-section h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.terms-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 10px;
    opacity: 0.9;
}

.terms-section ul {
    margin: 10px 0;
    padding-left: 25px;
}

.terms-section li {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 6px;
    opacity: 0.85;
}

.terms-agreement {
    margin-top: 30px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(56, 113, 193, 0.1), rgba(56, 113, 193, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(56, 113, 193, 0.2);
    text-align: center;
}

.terms-agreement p {
    margin: 0;
    font-size: 1rem;
}

/* Changelog Styles */
.changelog-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.changelog-card {
    padding: 25px;
    border-radius: 16px;
    background: var(--glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.changelog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.changelog-card.current {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.changelog-card.upcoming {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .changelog-card.current {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15));
}

[data-theme="dark"] .changelog-card.upcoming {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.15));
}

.changelog-version {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
}

.changelog-date {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 15px;
}

.changelog-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.changelog-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 1.1rem;
}

.changelog-icon {
    filter: grayscale(1) brightness(0);
}

[data-theme="dark"] .changelog-icon {
    filter: grayscale(1) brightness(0) invert(1);
}

/* Terms Popup Styles */
.terms-popup-card {
    text-align: center;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
}

.terms-popup-content {
    padding: 0 0 8px 0;
}

.terms-popup-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: inherit;
}

.terms-popup-body {
    text-align: left;
    padding: 16px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 12px;
    max-height: 55vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.terms-popup-body::-webkit-scrollbar {
    display: none;
}

.terms-popup-body p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 8px;
    text-align: justify;
}

.terms-popup-body p:last-child {
    margin-bottom: 0;
}

.terms-ok-btn {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terms-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

@media (max-width: 480px) {
    .terms-popup-card {
        width: 92%;
        max-width: none;
        margin: 10px;
    }

    .terms-popup-body {
        max-height: 45vh;
        padding: 10px;
    }

    .terms-popup-title {
        font-size: 1.1rem;
    }

    .terms-popup-body p {
        font-size: 0.88rem;
    }
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: var(--glass);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(56, 113, 193, 0.1);
}

[data-theme="dark"] .contact-card {
    background: rgba(43, 46, 51, 0.8);
    border: 1px solid rgba(123, 127, 133, 0.2);
}

[data-theme="dark"] .contact-card:hover {
    box-shadow: 0 5px 25px rgba(123, 127, 133, 0.2);
}

.contact-card-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(56, 113, 193, 0.15), rgba(56, 113, 193, 0.05));
    border-radius: 12px;
}

.developer-photo {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #3871c1, #5a9bd4);
}

.developer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card-content strong {
    font-size: 1.1rem;
}

.contact-card-content a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.contact-card-content a:hover {
    color: rgba(56, 113, 193, 1);
}

.contact-card-content span {
    font-size: 0.85rem;
    opacity: 0.6;
}

.feedback-box {
    background: linear-gradient(135deg, rgba(56, 113, 193, 0.06), transparent);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
}

.feedback-box p {
    margin: 0;
    line-height: 1.8;
}

.contact-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
    opacity: 0.7;
    font-size: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    margin-bottom: 15px;
    background: var(--glass);
    border-radius: 12px;
    transition: background 0.3s ease;
}

[data-theme="dark"] .contact-item {
    background: rgba(43, 46, 51, 0.8);
    border: 1px solid rgba(123, 127, 133, 0.2);
}

.contact-item span {
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--text-main);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

[data-theme="dark"] .contact-item a {
    color: #C1C4C8;
}

[data-theme="dark"] .contact-item a:hover {
    color: #F5F6F7;
}

/* Privacy Policy Styles */
.privacy-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.privacy-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.privacy-popup-card {
    width: 550px;
    max-width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.privacy-popup-card::-webkit-scrollbar {
    display: none;
}

.privacy-popup-content {
    padding: 5px 0 15px 0;
}

.privacy-popup-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: inherit;
    text-align: center;
    font-weight: 700;
}

.privacy-popup-body {
    text-align: left;
    padding: 15px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 12px;
}

.privacy-popup-body h3 {
    font-size: 1rem;
    margin: 18px 0 8px 0;
    font-weight: 600;
    color: inherit;
}

.privacy-popup-body h3:first-child {
    margin-top: 0;
}

.privacy-popup-body p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 10px;
    opacity: 0.9;
}

.privacy-popup-body p:last-child {
    margin-bottom: 0;
}

/* FAQ Styles */
.faq-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.faq-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.faq-popup-card {
    width: 550px;
    max-width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.faq-popup-card::-webkit-scrollbar {
    display: none;
}

.faq-popup-content {
    padding: 5px 0 15px 0;
}

.faq-popup-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: inherit;
    text-align: center;
    font-weight: 700;
}

.faq-popup-body {
    text-align: left;
    padding: 15px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 12px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: inherit;
}

.faq-answer {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .faq-popup-card {
        width: 95%;
        margin: 10px;
    }

    .faq-popup-title {
        font-size: 1.1rem;
    }

    .faq-popup-body {
        padding: 12px;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    .faq-answer {
        font-size: 0.85rem;
    }
}

.privacy-popup-body strong {
    font-weight: 600;
}

@media (max-width: 480px) {
    .privacy-popup-card {
        width: 95%;
        margin: 10px;
    }

    .privacy-popup-title {
        font-size: 1.1rem;
    }

    .privacy-popup-body {
        padding: 12px;
    }

    .privacy-popup-body h3 {
        font-size: 0.95rem;
    }

    .privacy-popup-body p {
        font-size: 0.85rem;
    }
}

/* Developer Popup Styles */
.developer-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.developer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Patro header link - keep same baseline/weight as Developer/FAQ */
.patro-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-weight: 500;
}

.developer-popup-card {
    width: 450px;
    max-width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.developer-popup-card::-webkit-scrollbar {
    display: none;
}

.developer-popup-content {
    padding: 10px 0 15px 0;
    text-align: center;
}

.developer-photo {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.developer-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: inherit;
}

.developer-copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 20px;
}

.developer-message {
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 15px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 12px;
    text-align: center;
}

@media (max-width: 480px) {
    .developer-popup-card {
        width: 95%;
        margin: 10px;
    }

    .developer-photo {
        width: 160px;
        height: 160px;
    }

    .developer-name {
        font-size: 1.3rem;
    }

    .developer-message {
        font-size: 0.85rem;
        padding: 12px;
    }
}

/* Chat History Panel */
.history-panel {
    position: fixed;
    right: -350px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: var(--bg-light);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    padding: 20px;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.history-panel.active {
    right: 0;
}

[data-theme="dark"] .history-panel {
    background: #2B2E33;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .history-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-title {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.history-close {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.history-list {
    flex: 1;
    overflow-y: auto;
}

.history-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: var(--glass);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.history-item:hover {
    transform: translateX(-5px);
}

[data-theme="dark"] .history-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .history-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.history-item-content {
    flex: 1;
    overflow: hidden;
}

.history-item-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.history-item-date {
    font-size: 0.75rem;
    opacity: 0.6;
}

.history-item-delete {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.history-item-delete:hover {
    opacity: 1;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5;
}

.history-clear-all {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    position: sticky;
    bottom: 14px;
    z-index: 1;
}

.history-clear-all:hover {
    background: #c0392b;
}

.history-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1999;
    pointer-events: none;
    transition: background 0.4s ease;
}

.history-overlay.active {
    background: rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

/* Rashiphal Popup Styles (New) */
.rashiphal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.rashiphal-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rashiphal-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.rashiphal-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.rashiphal-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: inherit;
}

.rashiphal-prediction {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Mobile responsiveness for Rashiphal grid */
@media (max-width: 600px) {
    .rashiphal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}



/* Detail Popup Content Styles */
#detailRashiIcon {
    animation: fadeSlideDown 0.5s ease;
}

#detailRashiFull::-webkit-scrollbar {
    width: 6px;
}

#detailRashiFull::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.4);
    border-radius: 10px;
}

#detailRashiFull::-webkit-scrollbar-track {
    background: transparent;
}

/* Rashiphal Popup Specific Styles */
.rashiphal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.rashiphal-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 160px;
}

.rashiphal-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.rashiphal-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}

.rashiphal-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: inherit;
}

.rashiphal-prediction {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
    /* Elegant text truncation */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

[data-theme="dark"] .rashiphal-item {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .rashiphal-item:hover {
    background: rgba(255, 255, 255, 0.1);
}