body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e5ddd5;
    margin: 0;
    padding: 20px;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background-color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #075e54;
    margin: 0;
    font-size: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Card Styling */
.session-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    transition: transform 0.2s;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.owner-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #128c7e;
}

.delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1rem;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-connected {
    background-color: #28a745;
}

.status-disconnected {
    background-color: #dc3545;
}

.status-connecting {
    background-color: #ffc107;
}

/* QR Code */
.qr-container {
    text-align: center;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.qr-container img {
    width: 280px;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.qr-instructions {
    background-color: #f0f4f8;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: right;
    direction: rtl;
    /* Aligned right for Hebrew */
    font-size: 0.75rem;
    color: #334155;
    width: 280px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    /* Centered block */
}

.qr-instructions p {
    margin: 5px 0;
    line-height: 1.4;
}

.qr-instructions strong {
    font-weight: 600;
    color: #128c7e;
}

/* Messages */
.message-preview {
    background-color: #dcf8c6;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.msg-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 5px;
}

/* Analysis */
.analysis-result {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #ccc;
    font-size: 0.85rem;
}

/* Buttons */
.btn-primary {
    background-color: #128c7e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-success {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* Use fixed height for mobile keyboard stability */
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalSlideIn 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #94a3b8;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #64748b;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

input[type="text"]:focus {
    border-color: #25d366;
}

.modal-content h2 {
    margin-top: 0;
    color: #075e54;
    font-size: 1.5rem;
}

#confirm-add-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    margin-top: 10px;
}

/* Login Styles */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
}

.login-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.auth-input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: #128c7e;
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: #128c7e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-btn:hover {
    background-color: #075e54;
}

.brand-title {
    color: #075e54;
    margin-bottom: 20px;
}

.error-msg {
    color: #333;
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.phone-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#country-code {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 10px auto;
    padding-right: 25px;
    height: 46px;
    /* Match input height */
}

/* Landing Page Styles */
.landing-body {
    background-color: #f8fafc;
    /* Slightly off-white for better card contrast */
    background-image:
        radial-gradient(at 0% 0%, hsla(168, 65%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 50% 0%, hsla(190, 50%, 92%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(210, 50%, 94%, 1) 0px, transparent 50%);
    font-family: 'Rubik', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    direction: rtl;
    /* Ensure RTL */
    color: #0f172a;
    /* Darker default text */
    min-height: 100vh;
}

.landing-nav {
    display: flex;
    justify-content: flex-end;
    /* Keep Login button at the end (Left in RTL) */
    align-items: center;
    padding: 30px 40px;
    background: transparent;
    position: absolute;
    /* Make absolute so it doesn't push hero down */
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.nav-btn {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-section {
    text-align: center;
    min-height: 85vh;
    /* Reduced from 100vh */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    padding: 220px 20px 80px;
    box-sizing: border-box;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.cta-btn {
    display: inline-block;
    padding: 24px 56px;
    background: linear-gradient(135deg, #0d5f4e 0%, #075e54 100%);
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 12px 40px rgba(7, 94, 84, 0.4),
        0 0 0 0 rgba(7, 94, 84, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.cta-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow:
        0 20px 60px rgba(7, 94, 84, 0.5),
        0 0 30px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #0f6f5c 0%, #128c7e 100%);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow:
            0 12px 40px rgba(7, 94, 84, 0.4),
            0 0 0 0 rgba(7, 94, 84, 0.3);
    }

    50% {
        box-shadow:
            0 12px 40px rgba(7, 94, 84, 0.4),
            0 0 20px 8px rgba(37, 211, 102, 0.2);
    }
}

.notification-stage {
    position: absolute;
    /* Changed from fixed to scroll with page */
    top: 40px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    z-index: 2000;
}

.landing-notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 16px;
    width: 380px;
    max-width: 90vw;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 40px -4px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    direction: rtl;
    pointer-events: auto;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.landing-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.landing-notification.exiting {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    margin-top: -90px;
    /* Collapse gap */
}

.landing-notif-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.landing-notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-notif-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.landing-notif-title {
    font-weight: 700;
    color: #0f172a;
}

.landing-notif-body {
    font-size: 1rem;
    color: #334155;
    line-height: 1.4;
    text-align: right;
    font-weight: 400;
}

.landing-footer {
    padding: 20px 20px 60px;
    /* Reduced top padding since it's now after the privacy section */
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    z-index: 10;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: transparent;
    box-sizing: border-box;
}

.landing-footer a {
    pointer-events: auto;
    color: #4CAF50;
    text-decoration: none;
    padding: 8px 16px;
    display: inline-block;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.landing-footer a:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-1px);
}

@keyframes notifSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
    margin-top: -50px;
    /* Slight overlap with hero for smoothness */
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 80px;
    color: #0f172a;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.step-item {
    background: #ffffff;
    /* Solid white for maximum contrast */
    padding: 60px 40px 40px;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    border: 1px solid rgba(226, 232, 240, 1);
    position: relative;
}

.step-num {
    position: absolute;
    top: -25px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
    transform: rotate(5deg);
}

.step-icon-box {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.step-item h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
}

.step-item p {
    font-size: 1.15rem;
    color: #1e293b;
    /* Darker text */
    line-height: 1.7;
    font-weight: 400;
}

/* Privacy Note Section */
.privacy-note-section {
    padding: 60px 20px;
    position: relative;
    z-index: 5;
}

.privacy-note-container {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.privacy-icon {
    font-size: 2.5rem;
    color: #128c7e;
    margin-bottom: 20px;
}

.privacy-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #0f172a;
}

.privacy-card p {
    font-size: 1.1rem;
    color: #1e293b;
    /* Darker text */
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.privacy-card strong {
    color: #128c7e;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
    z-index: 5;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 1);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.faq-item[open] {
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Sharper focus on open */
}

.faq-question {
    padding: 24px 30px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #128c7e;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
    content: '+';
}

.faq-answer {
    padding: 0 30px 24px;
    font-size: 1.1rem;
    color: #1e293b;
    /* Darker text */
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Consolidated Mobile Refinements */
@media (max-width: 768px) {
    .notification-stage {
        top: 20px;
    }

    .hero-section {
        min-height: 80vh;
        padding: 180px 20px 60px;
        /* Adjusted for mobile */
        justify-content: center;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 24px;
        padding: 0 10px;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .step-item {
        padding: 50px 30px 30px;
    }

    .how-it-works-section {
        padding: 60px 20px;
        margin-top: 0;
    }

    .cta-btn {
        padding: 18px 40px;
        font-size: 1.1rem;
    }
}


/* --- Dashboard Mobile & Responsive Styles --- */

/* Helper Classes */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Mobile Menu Button */
.menu-toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #075e54;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.menu-toggle-btn:active {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
    position: absolute;
    top: 70px;
    left: 20px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #efefef;
    animation: slideInDown 0.2s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-dropdown a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.mobile-dropdown a:last-child {
    border-bottom: none;
}

.mobile-dropdown a:hover {
    background-color: #f5f5f5;
}

.mobile-dropdown .logout-text {
    color: #dc3545 !important;
    font-weight: 500;
}

.mobile-dropdown i {
    width: 20px;
    margin-right: 8px;
    color: #128c7e;
    text-align: center;
}


/* Empty State Card */
.empty-state-card {
    border: 2px dashed #cbd5e1;
    background-color: #f8fafc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    text-align: center;
    padding: 20px;
}

.empty-state-card:hover {
    border-color: #128c7e;
    background-color: #f0fdf4;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.limit-reached-card {
    border: 2px dashed #f87171;
    background-color: #fef2f2;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #991b1b;
    text-align: center;
    padding: 20px;
}

.limit-reached-card:hover {
    border-color: #ef4444;
    background-color: #fee2e2;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.1);
}

.limit-reached-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: inherit;
}

.limit-reached-card p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.limit-reached-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fca5a5;
    transition: color 0.3s ease;
}

.limit-reached-card:hover i {
    color: #ef4444;
}

.empty-state-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.empty-state-card:hover i {
    color: #128c7e;
}

.empty-state-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: inherit;
}

.empty-state-card p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {

    /* Layout Basics */
    body {
        padding: 0;
        background-color: #f0f2f5;
        /* WhatsApp-like background */
    }

    .app-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Header Updates */
    header {
        border-radius: 0;
        margin-bottom: 1rem;
        padding: 15px 20px;
        position: relative;
        /* For dropdown positioning */
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    /* Title Sizing */
    h1.dashboard-title {
        font-size: 1.3rem;
        line-height: 1.2;
        max-width: 80%;
        /* Prevent overlap with menu button */
    }

    /* Toggle Visibility */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Grid Adjustment */
    .dashboard-grid {
        grid-template-columns: 1fr;
        /* Single column flow */
        gap: 15px;
        padding: 0 15px 20px 15px;
        /* Add side padding to grid */
    }

    /* Card Tweaks for Mobile */
    .session-card {
        padding: 15px;
        border-radius: 8px;
    }

    .card-header {
        margin-bottom: 10px;
    }

    /* Ensure specific elements don't cause overflow */
    .message-preview {
        word-break: break-word;
        /* Prevent long text overflow */
    }
}

/* Pairing Loader */
.pairing-loader-container {
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pairing-loader {
    width: 60px;
    height: 60px;
    border: 6px solid #f0f2f5;
    border-top: 6px solid #128c7e;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pairing-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #128c7e;
    margin-bottom: 8px;
}

.pairing-subtext {
    font-size: 0.9rem;
    color: #8696a0;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Radar Monitoring Animation */
.monitoring-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #28a745;
    background: rgba(40, 167, 69, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 12px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.05);
}

.monitoring-badge.limit-reached {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.monitoring-badge.limit-reached .radar-ping {
    background-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.monitoring-badge.limit-reached .radar-ping::after {
    border-color: #dc3545;
    animation: none;
    /* Stop pulsing when limit reached */
}

.radar-ping {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.radar-ping::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #28a745;
    animation: radar-ripple 2s infinite cubic-bezier(0, 0, 0.2, 1);
}

@keyframes radar-ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
        border-width: 1px;
    }

    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
        border-width: 0;
    }
}

/* Pricing Page Overrides */
/* Ensure buttons don't overflow due to padding */
.tier-btn {
    box-sizing: border-box;
}

/* Make footer relative on pricing page (which has scroll) so it doesn't overlap */
body.pricing-mode .landing-footer {
    position: relative;
    bottom: auto;
    margin-top: 40px;
    padding-bottom: 20px;
    opacity: 1;
    /* Ensure visibility */
    pointer-events: auto;
}

/* Ensure body handles vertical flex to push footer down */
body.pricing-mode {
    display: flex;
    flex-direction: column;
}

body.pricing-mode .pricing-page {
    flex: 1;
    min-height: auto;
    /* Let flex handle it */
    padding-bottom: 0;
    /* Let footer margin handle spacing */
    height: auto;
}

/* Pricing Page Styles */
.pricing-page {
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 60px;
}

.pricing-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
    margin-top: 40px;
    box-sizing: border-box;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 60px 24px 24px 24px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card.recommended {
    border: 2px solid #128c7e;
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-8px);
}

.recommended-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #128c7e;
    color: white;
    padding: 10px 24px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 18px;
    /* Slightly less than card radius to fit inside border */
    font-size: 0.9rem;
    font-weight: 600;
}

.tier-name {
    font-size: 1.5rem;
    color: #0f172a;
    margin: 0 0 16px 0;
    font-weight: 800;
}

.price {
    font-size: 2.5rem;
    color: #128c7e;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
}

.period {
    font-size: 1rem;
    color: #64748b;
    margin-right: 6px;
    font-weight: 400;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.features li {
    margin-bottom: 12px;
    color: #334155;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features li i {
    color: #25d366;
    font-size: 1.1rem;
}

.tier-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.tier-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #128c7e 0%, #0d5f4e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(18, 140, 126, 0.3);
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #16a596 0%, #107560 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(18, 140, 126, 0.4);
}

/* Mobile Pricing */
@media (max-width: 768px) {
    .landing-nav {
        padding: 20px 20px;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
    }

    .pricing-card {
        width: 100%;
        max-width: 400px;
        padding: 60px 24px 24px 24px;
    }

    .pricing-card.recommended {
        transform: scale(1);
    }

    .pricing-card.recommended:hover {
        transform: translateY(-8px);
    }

    .pricing-title {
        font-size: 2.2rem;
    }
}

/* Hero Secondary Actions */
.hero-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    z-index: 10;
}

.secondary-btn {
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border: 2px solid rgba(100, 116, 139, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    display: inline-block;
}

.secondary-btn:hover {
    background: #ffffff;
    color: #128c7e;
    border-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Page Loader Overlay */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.main-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #128c7e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-content p {
    color: #075e54;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0;
}

/* How it Works Button & Modal */
.how-it-works-btn {
    background: white;
    color: #128c7e;
    border: 1px solid #128c7e;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.how-it-works-btn:hover {
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-modal {
    width: 90% !important;
    max-width: 450px !important;
    padding: 30px !important;
    position: relative;
    box-sizing: border-box;
}

.info-modal-header {
    margin-bottom: 25px;
}

.info-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #e6f7ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #128c7e;
    font-size: 1.8rem;
}

.info-modal h2 {
    color: #075e54;
    font-size: 1.4rem;
    margin: 0;
}

.info-steps {
    text-align: right;
    margin-bottom: 25px;
}

.info-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    background: #128c7e;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text strong {
    display: block;
    color: #334155;
    font-size: 1rem;
    margin-bottom: 4px;
}

.step-text p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.close-info-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.close-info-btn {
    width: 100%;
    padding: 12px !important;
    font-weight: 600;
}

@media (max-width: 480px) {
    .info-modal {
        padding: 20px !important;
        margin: 10% auto !important;
    }

    .info-modal h2 {
        font-size: 1.2rem;
    }

    .info-step {
        margin-bottom: 15px;
    }

    .step-text p {
        font-size: 0.85rem;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.info-modal {
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    #how-it-works-container {
        text-align: center !important;
        margin-bottom: 15px !important;
    }
}