/* =============== CHATBOT STYLES =============== */
.chatbot-list {
    padding-left: 20px;
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
}
.chatbot-list li {
    margin-bottom: 4px;
}
.chatbot-list ol {
    list-style-type: decimal;
}
body.app-active .chatbot-toggle {
    display: flex;
}
/* Dark mode support */
body.dark-mode .chatbot-list {
    color: var(--text);
}
.chatbot-toggle {
    position: fixed;
    bottom: 10px;
    right: 35px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(22, 200, 155, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.chatbot-toggle:hover {
    transform: scale(1.1);
}
.chatbot-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 340px;
    max-height: 80vh;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid var(--border);
}
.chatbot-header {
    padding: 12px 16px;
    background-color: var(--primary);
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot-header-buttons {
    display: flex;
    gap: 0px; 
    align-items: center;
}
.chatbot-header-btns {
    display: flex;
    align-items: center;
}
.chatbot-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}
.chatbot-minimize {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: none;
}
.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: none;
}
.chatbot-messages {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bot-message, .user-message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 0.9rem;
}
.bot-message {
    background-color: #f0f9f6;
    color: var(--text);
    align-self: flex-start;
    border: 1px solid #e0f0ea;
}
.user-message {
    background-color: var(--accent);
    color: white;
    align-self: flex-end;
}
.chatbot-input-area {
    display: flex;
    padding: 10px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.chatbot-input-area input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    background-color: var(--card-bg);
    color: var(--text);
}
.chatbot-input-area button {
    width: 36px;
    height: 36px;
    margin-left: 8px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Dark mode support */
body.dark-mode .bot-message {
    background-color: #1a2b3a;
    border-color: #2d4458;
}
body.dark-mode .chatbot-modal {
    background-color: var(--card-bg);
}
body.dark-mode .chatbot-input-area input {
    background-color: #1a2b3a;
    color: var(--text);
    border-color: var(--border);
}
/* =============== END CHATBOT STYLES =============== */


:root {
    --primary: #0A324F;
    --accent: #16C89B;
    --light-bg: #FDFCFB;
    --card-bg: #FFFFFF;
    --text: #333;
    --border: #E0EAE0;
    --shadow: 0 4px 12px rgba(10, 50, 79, 0.1);
    --shadow-hover: 0 8px 20px rgba(10, 50, 79, 0.15);
    --plan-text: #333;
    --plan-desc: #6B7280;
    --footer-bg: #f5f5f5;
    --footer-text: #333;
}

body.dark-mode {
    --primary: #0A324F;
    --accent: #16C89B;
    --light-bg: #0D1B2A;
    --card-bg: #121F2E;
    --text: #E0E0E0;
    --border: #2D4458;
    --plan-text: #E0E0E0;
    --plan-desc: #E0E0E0;
    --footer-bg: #1a1a1a;
    --footer-text: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.5;
}

@media print, print-preview {
    @page {
        size: landscape;
        margin: 0.5cm;
    }
    #table0,
    #table1,
    #table2,
    #table3,
    #table4,
    #table5 {
        table-layout: fixed;
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
    }
    #table0 th:first-child,
    #table0 td:first-child,
    #table1 th:first-child,
    #table1 td:first-child {
        width: 80px !important;
        white-space: nowrap;
        text-align: left;
    }
    #table0 th:not(:first-child),
    #table0 td:not(:first-child),
    #table1 th:not(:first-child),
    #table1 td:not(:first-child) {
        width: 45px !important;
        text-align: center;
        word-wrap: break-word;
        overflow: hidden;
    }
    #table0-header-positions,
    #table0-header-digits,
    #table0-header-status,
    #table1-header-positions,
    #table1-header-pairs,
    #table1-header-status {
        display: table-row;
        page-break-inside: avoid;
    }
    #table0,
    #table1,
    #table2,
    #table3,
    #table4,
    #table5 {
        page-break-inside: avoid;
    }
    #tableDContainer,
    #darkModeToggle,
    #hideBtn,
    #logoutBtn,
    #chartBtn,
    .resize-handle,
    #customizeBtn,
    #generatePdfBtn,
    #generateGoodNumbersBtn,
    #printBtn,  
    .contact-modal,
    .filter-modal,
    .customizeModal,
    #contactModal,
    #filterModal,
    #customizeModal,
    #goodNumbersModal,
    #chartContainer,
    .whatsapp-btn,
    .email-btn {
        display: none !important;
    }
    .container {
        width: 100% !important;
        padding: 10px;
        box-sizing: border-box;
    }
    body {
        margin: 0;
        padding: 0;
        font-size: 10pt;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
        font-size: 12pt;
    }
}

@media print {
    body,
    .app-container,
    .main-app,
    .container {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        background: white;
        -webkit-print-color-adjust: exact;
        color-adjust: exact; 
    }
    @page {
        size: landscape;
        margin: 0.5cm;
    }
    .input-section,
    .pdf-button-container,
    .footer-container,
    .table-group,
    .repetitive-tables,
    .outlined-container,
    .header-container,
    table,
    .logo-container {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .header-container {
        display: flex;
        break-after: avoid;
    }
    .table-group {
        overflow: visible !important;
        display: block !important;
    }
    table {
        width: 100% !important;
        table-layout: auto;
        font-size: 12px;
        break-inside: avoid;
    }
    th, td {
        padding: 6px;
        font-size: 12px;
        word-wrap: break-word;
        white-space: normal;
    }
    .logo-container {
        position: static !important;
        transform: none !important;
        text-align: center;
    }
    #companyLogo2 {
        max-width: 160px;
        height: auto;
    }
    .logo-caption {
        font-size: 12px;
        margin-top: 4px;
    }
    #darkModeToggle,
    #hideBtn,
    #logoutBtn,
    #chartBtn,
    .resize-handle,
    #customizeBtn,
    #generatePdfBtn,
    #generateGoodNumbersBtn,
    #printBtn,
    .contact-modal,
    .filter-modal,
    .customizeModal,
    #contactModal,
    #filterModal,
    #customizeModal,
    #goodNumbersModal {
        display: none !important;
    }
    .container {
        margin: 0;
        padding: 10px;
        box-sizing: border-box;
    }
    body {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
        font-size: 12pt;
    }
    img {
        max-width: 100% !important;
        height: auto;
    }
}

.app-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
}

.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.left-column {
    flex: 1;
    padding: 16px 10px;
    display: flex;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
}

.container-row {
    margin-top: 0;
    display: flex;
    gap: 14px;
    width: 100%;
    max-width: 1320px;
    justify-content: center;
}

.login-container,
.plan-container {
    height: 540px;
    background-color: var(--card-bg);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 20px;
    flex: 1;
    min-width: 264px;
    max-width: 374px;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover,
.plan-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background-color:   ;
}

.right-column {
    width: 30%;
    min-width: 200px;
    background: var(--primary);
    color: white;
    position: relative;
    padding: 26px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow: auto;
    border-radius: 14px;
    z-index: 1;
}

.brand-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 10;
}

.logo {
    height: 42px;
    width: auto;
    border-radius: 4px;
    background: white;
    padding: 0px 0px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dark-mode .logo {
    background: #333;
}

.tagline {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    text-align: right;
    max-width: 180px;
    line-height: 1.3;
}

.profile-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 1px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    padding: 10px;
    border-radius: 10px;
    max-width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.profile-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.profile-info {
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.3;
}

.profile-info h3 {
    font-size: 0.92rem;
    margin: 0;
    font-weight: 600;
    color: var(--accent);
}

.profile-title {
    margin: 2px 0;
    font-size: 0.72rem;
    color: #BBF7D0;
    font-weight: 500;
}

.profile-desc {
    margin: 0;
    color: #d1fae5;
    font-size: 0.7rem;
    line-height: 1.3;
    font-style: italic;
}

.right-column h2 {
    font-size: 1.65rem;
    margin-bottom: 12px;
    color: var(--accent);
    font-weight: 600;
}

.right-column p {
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: #E0E0E0;
}

.right-column .btn {
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 116px;
    height: 35px;
    line-height: 35px;
    padding: 0 16px;
    font-size: 0.73rem;
    border-radius: 4px;
    background-color: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 16px;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--plan-text);
    letter-spacing: -0.5px;
}

.login-tabs {
    display: flex;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.tab-btn {
    padding: 8px 12px;
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--plan-desc);
    position: relative;
    font-weight: 500;
    z-index: 2;
}

.dark-mode .tab-btn {
    color: #E0E0E0;
}

.tab-btn.active {
    color: var(--accent);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
}

.tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
}

.tab-content.active {
    display: flex;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: var(--card-bg);
    color: var(--text);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(22, 200, 155, 0.1);
}

.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9CA3AF;
    font-size: 0.9rem;
    z-index: 10;
}

.dark-mode .eye-icon {
    color: #D1D5DB;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: var(--plan-desc);
    font-weight: 500;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 0.8rem;
    color: var(--plan-desc);
}

.forgot-password {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    margin-left: auto;
    cursor: pointer;
}

.login-buttons {
    display: flex;
    gap: 10px;
    margin: 12px 0 8px;
}

.btn {
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-secondary {
    background-color: #F0FDF9;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-login {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    text-align: center;
}

.social-login span {
    font-size: 0.82rem;
    color: var(--plan-desc);
    display: block;
    margin-bottom: 8px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.social-icon.google { background-color: #DB4437; color: white; }
.social-icon.facebook { background-color: #4267B2; color: white; }
.social-icon.twitter { background-color: #1DA1F2; color: white; }

.otp-group {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.otp-input {
    width: 16.66%;
    text-align: center;
    font-size: 1.2rem;
    padding: 10px;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

.otp-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Apply to all labels in form groups in dark mode */
body.dark-theme .form-group label,
body.dark-theme .form-group .form-label,
body.dark-theme .input-group label,
body.dark-theme .section-title {
    color: var(--text) !important;
}

.plan-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--plan-text);
    text-align: center;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin-bottom: 8px;
}

.plan-description {
    font-size: 0.88rem;
    text-align: center;
    color: var(--plan-desc);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.plan-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--plan-desc);
}

.plan-feature i {
    color: var(--accent);
    margin-right: 8px;
    font-size: 0.9rem;
}

.plan-button {
    width: 100%;
    padding: 10px;
    background-color: #F0FDF9;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.plan-button:hover {
    background-color: var(--accent);
    color: white;
    transform: scale(1.03);
}

.qr-code {
    width: 100%;
    max-width: 0px;
    height: auto;
    margin: 10px auto;
    display: block;
    border: 1.5px solid var(--accent);
    border-radius: 8px;
    background: white;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.signup-title {
    font-size: 1.25rem;
    margin-bottom: 6px;
    text-align: center;
    color: var(--plan-text);
    font-weight: 600;
}

.signup-subtitle {
    font-size: 0.85rem;
    color: var(--plan-desc);
    text-align: center;
    margin-bottom: 10px;
}

.error-message {
    font-size: 0.8rem;
    color: #DC2626;
    margin: 6px 0;
    text-align: center;
    min-height: 1.3em;
}

.login-footer {
    text-align: center;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--plan-desc);
}

.login-footer a {
    color: var(--accent);
    text-decoration: underline    
}

.footer-bar {
    background-color: none;
    padding: 6px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--plan-desc);
    line-height: 1.0;
}

.footer-bar a {     
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

#darkModeToggle {
    position: fixed;
    bottom: 4px;
    left: 20px;
    background: var(--primary);
    color: var(--accent);
    border: 2px solid var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#darkModeToggle:hover {
    transform: scale(1.1);
}

#darkModeToggle svg {
    width: 1rem;
    height: 1rem;
}

/* Main Application Styles */
.main-app {
    display: none;
    width: 100%;
    height: 100vh;
    overflow: auto;
}

/* Numerology App Styles */
:root {
    --bg-color: #ffffff;
    --container-bg: #fffbe6;
    --text-color: #333333;
    --border-color: #d4a017;
    --logo-caption-color: #333;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    min-height: calc(100vh - 100px);
    overflow-y: auto;
}

body.dark-theme {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #e0e0e0;
    --border-color: #555;
    --logo-caption-color: #ffffff;
}

/* Ensure all text uses the light color in dark mode */
body.dark-theme,
body.dark-theme .container,
body.dark-theme .input-section,
body.dark-theme .settings-container,
body.dark-theme .tableA-container,
body.dark-theme .tableB-container,
body.dark-theme .input-group label,
body.dark-theme .form-label {
    color: var(--text-color) !important;
}

body.warm-theme {
    --bg-color: #fffbe6;
    --container-bg: #fff8e1;
    --text-color: #333;
    --border-color: #d4a017;
    --logo-caption-color: #333;
}

/* Font Families */
body.font-arial { font-family: Arial, sans-serif; }
body.font-times { font-family: "Times New Roman", serif; }
body.font-monospace { font-family: monospace, courier; }
body.font-comic {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
}

/* Text Color Classes */
body.text-color-black { --text-color: #333; color: #333; }
body.text-color-blue { --text-color: #0000FF; color: #0000FF; }
body.text-color-red { --text-color: #FF0000; color: #FF0000; }
body.text-color-green { --text-color: #008000; color: #008000; }
body.text-color-white { --text-color: #FFFFFF; color: #FFFFFF; }

.container {
    max-width: 1270px;
    margin: 0px auto;
    background-color: var(--container-bg);
    padding: 15px;
    border-radius: 0px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.header-container {
    border: 1px solid #8B4513; /* SaddleBrown */
    border-radius: 0px;
    padding: 10px 14px;
    margin: 0px auto;
    background-color: var(--container-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 0px;
    margin-left: 0px;
}

.header-title {
    flex: 1;
    text-align: center;
    color: var(--text-color);
    font-size: 20px;
    margin: 0;
    font-family: Verdana, sans-serif !important;
}

.logo-container {
    text-align: center;
    width: 140px;
    min-width: 80px;
    user-select: none;
    z-index: 5;
}

.logo-container img {
    width: 100%;
    height: 40px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #f9f9f9;
}

.logo-caption {
    margin-top: -4px;
    font-size: 12px;
    color: var(--logo-caption-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resize-handle {
    width: 10px;
    height: 10px;
    background: rgba(0, 123, 255, 0.6);
    border-radius: 50%;
    position: absolute;
    bottom: -5px;
    left: -5px;
    cursor: nwse-resize;
    border: 1px solid #007bff;
    z-index: 10;
}

@media (max-width: 600px) {
    .logo-container {
        position: static;
        margin: 10px 0;
        transform: none;
        top: auto;
        right: auto;
    }
    .resize-handle {
        display: none;
    }
}

.input-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
    width: 100%;
}

@media (max-width: 600px) {
    .input-section {
        flex-wrap: wrap;
    }
}

.tableA-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 5px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    flex: 0 0 auto;
    min-height: 69px;
    height: 75px;
    width: 604px;
}

.tableB-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 5px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    flex: 0 0 auto;
    min-height: 69px;
    width: 590px;
}

.settings-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px;
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.outlined-container {
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-group label, .input-group .section-title {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 12px;
    color: #333;
}

.input-group .section-title {
    color: #444;
    font-size: 14px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

input[type="text"] {
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 120px;
    height: 31px;
    box-sizing: border-box;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    font-size: 12px;
}

button {
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    font-size: 12px;
    height: 31px;
    width: 120px;
    box-sizing: border-box;
}

.settings-container button, .tableB-container button {
    width: 96px;
}

button:hover {
    background-color: #0056b3;
}

.settings-container input[type="file"] {
    padding: 6px;
    height: 31px;
    width: 120px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

.button-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.pdf-button-container {
    clear: both;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 11px;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 2px;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #fff9e6;
}

.table-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    width: 100%;
    overflow-x: auto;
    margin-bottom: 15px;
}

#table0-container, #table1-container, #table2-container, .repetitive-table {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 15px;
    background-color: var(--container-bg);
}

#table0-container, #table1-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

#table2-container {
    min-height: 198px;
    display: flex;
    flex-direction: column;
}

#table0, #table1, #table2 {
    flex-grow: 1;
    min-width: 300px;
}

#table0 th, #table0 td,
#table1 th, #table1 td {
    height: 20px;
    line-height: 20px;
    padding: 2px;
    font-size: 11px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

#table0 th:not(:first-child), #table0 td:not(:first-child),
#table1 th:not(:first-child), #table1 td:not(:first-child) {
    width: 45px;
}

#table2 {
    table-layout: fixed;
    width: 100%;
}

#table2 th, #table2 td {
    padding: 2px;
    font-size: 11px;
}

#table2 th:nth-child(1), #table2 td:nth-child(1),
#table2 th:nth-child(2), #table2 td:nth-child(2),
#table2 th:nth-child(3), #table2 td:nth-child(3) {
    width: 80px;
}

#table2 th:nth-child(4), #table2 td:nth-child(4) {
    width: auto;
    text-align: left;
}

.repetitive-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.repetitive-table {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.repetitive-table table {
    flex-grow: 1;
}

.section-title {
    margin-top: 10px;
    margin-bottom: 5px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border-color);
    color: #444;
    font-size: 14px;
}

.bottom-section {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
    gap: 15px;
    flex-wrap: nowrap;
    width: 100%;
}

#tableCContainer {
    width: 700px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#tableDContainer {
    width: 300px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .bottom-section {
        flex-wrap: wrap;
    }
    #tableCContainer, #tableDContainer {
        width: 100%;
    }
}

#chartContainer {
    width: 100%;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: none;
    position: relative;
    background-color: var(--container-bg);
}

.chart-header {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

.chart-bar-container {
    margin: 10px 0;
    width: 100%;
}

.chart-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.chart-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.status-summary {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.status-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.average-weather {
    font-weight: bold;
    padding: 2px;
    border-radius: 4px;
    text-align: center;
    margin: 10px 0;
}

.chart-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 30%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.chart-close-btn:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

.chart-close-btn i {
    pointer-events: none;
}
@media print {
    .footer-container {
        background-color: var(--container-bg); !important;
        color: var(--text-color);
    }
}

@page {
    size: landscape;
    margin: 1cm;
}

@media print, print-preview {
    .container {
        margin: 0;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .input-section,
    .pdf-button-container,
    .footer-container {
        page-break-inside: avoid;
    }
    .table-group,
    .repetitive-tables {
        page-break-inside: avoid;
        display: flex !important;
        overflow-x: visible !important;
        break-inside: avoid;
    }
}

#table0-container,
#table1-container {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.outlined-container {
    border: 1px solid var(--border-color) !important;
    page-break-inside: avoid;
}

table {
    page-break-inside: avoid;
    width: 100% !important;
}

th, td {
    padding: 4px;
    font-size: 10px;
}

.section-title {
    page-break-after: avoid;
}

.logo-container {
    position: static !important;
    transform: none !important;
    top: auto !important;
    right: auto !important;
}

.resize-handle {
    display: none;
}

.cell-box {
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    height: 31px;
    line-height: 19px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
}

.cell-box.count-cell {
    min-width: 116px;
}

#table0, #table1 {
    width: 100%;
    table-layout: fixed;
}

body {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    font-size: 12pt;
}

img {
    max-width: 100% !important;
    height: auto;
}

#table3 th:nth-child(3), #table4 th:nth-child(3), #table5 th:nth-child(3) {
    width: 30%;
}

.input-group input[readonly] {
    background-color: #e9ecef;
    font-weight: bold;
    border: 1px solid var(--border-color);
}

/* WhatsApp and Email button styles */
.whatsapp-btn {
    background-color: #25D366 !important;
    width: 120px !important;
}

.whatsapp-btn:hover {
    background-color: #128C7E !important;
}

.email-btn {
    background-color: #EA4335 !important;
    width: 120px !important;
}

.email-btn:hover {
    background-color: #D93025 !important;
}

/* Contact info modal */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.contact-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 320px;
    max-width: 90%;
    font-family: Arial, sans-serif;
}

.contact-modal h3 {
    margin-top: 0;
    color: #333;
}

.contact-modal input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.contact-modal-buttons button {
    width: auto !important;
    padding: 5px 10px !important;
}

.close-contact-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ccc;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

/* Status color styling for Tables 3, 4, and 5 */
.status-good {
    color: #2e8b57 !important;
    font-weight: normal !important;
}

.status-neutral {
    color: #d4a017 !important;
    font-weight: normal !important;
}

.status-bad {
    color: #dc3545 !important;
    font-weight: normal !important;
}

/* Ensure proper styling for status cells in all repetitive tables */
#table3 td:nth-child(3), #table4 td:nth-child(3), #table5 td:nth-child(3),
#table3 td:nth-child(4), #table4 td:nth-child(4), #table5 td:nth-child(4) {
    font-weight: normal;
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-family: Arial, sans-serif;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Advanced Filter Modal */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 40px 20px;
}

.filter-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 20px;
}

.filter-modal h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.form-group select, .form-group input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    width: auto;
    padding: 6px 12px;
    font-size: 12px;
}

.close-filter-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ccc;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
}

/* Results Modal */
#goodNumbersModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 40px 20px;
}

#goodNumbersModal .modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}

#goodNumbersModal h3 {
    margin: 0;
    color: #333;
}

#goodNumbersModal p {
    margin: 10px 0 0 0;
    color: #555;
    font-size: 14px;
}

#goodNumbersModal ul {
    list-style: decimal;
    margin-left: 20px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #000 !important;
}

#goodNumbersModal .actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

#goodNumbersModal button {
    padding: 6px 12px;
    font-size: 12px;
}

#goodNumbersModal #noResults {
    color: #999;
    text-align: center;
    display: none;
}

#goodNumbersModal .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ccc;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
}

/* Dark Theme Table Adjustments */
body.dark-theme th,
body.dark-theme .input-group label,
body.dark-theme .section-title {
    background-color: #3a3a3a;
    color: #fff;
}

body.dark-theme tr:nth-child(even) {
    background-color: #383838;
}

body.dark-theme .status-summary {
    background-color: #333;
}

body.dark-theme .cell-box {
    background-color: #3a3a3a;
}

body.dark-theme input[type="text"],
body.dark-theme .settings-container input[type="file"] {
    background-color: #444;
    color: #fff;
    border-color: #555;
}

/* Specifically target labels and section titles again for good measure */
body.dark-theme label,
body.dark-theme .form-label,
body.dark-theme .section-title {
    color: var(--text-color) !important;
}

/* Target plain text in table containers */
body.dark-theme .tableA-container div,
body.dark-theme .tableB-container div {
    color: var(--text-color);
}

/* Footer */
.footer-container {
    background-color: var(--footer-bg);
    background-color: Black;
    color: var(--footer-color);
    text-align: center;
    margin-top: 0px;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    width: 100%;
    border-bottom: 0px solid var(--border-color);
    background-color: var(--container-bg);
}

/* Signup Modal */
.signup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.signup-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 320px;
    max-width: 90%;
    font-family: Arial, sans-serif;
}

.signup-modal h3 {
    margin-top: 0;
    color: #333;
}

.signup-modal input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.signup-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.signup-modal-buttons button {
    width: auto !important;
    padding: 5px 10px !important;
}

.close-signup-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ccc;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

/* Force white background and black text in Filter Modal for Dark Mode */
body.dark-theme #filterModal .filter-modal-content,
body.dark-theme #filterModal .filter-modal-content * {
    background-color: white !important;
    color: black !important;
    border-color: #ccc !important;
}

body.dark-theme #filterModal .filter-modal-content input,
body.dark-theme #filterModal .filter-modal-content select,
body.dark-theme #filterModal .filter-modal-content textarea {
    background-color: white !important;
    color: black !important;
    border-color: #ccc !important;
}

body.dark-theme #filterModal .filter-modal-content label {
    color: black !important;
}

/* Force white background and black text in Contact Modal for Dark Mode */
body.dark-theme #contactModal .contact-modal-content,
body.dark-theme #contactModal .contact-modal-content * {
    background-color: white !important;
    color: black !important;
    border-color: #ccc !important;
}

body.dark-theme #contactModal .contact-modal-content input {
    background-color: white !important;
    color: black !important;
    border-color: #ccc !important;
}

body.dark-theme #contactModal .contact-modal-content label {
    color: black !important;
}

/* =============== LOGIN PAGE THEMES =============== */
.login-page.dark-mode {
    --primary: #0A324F;
    --accent: #16C89B;
    --light-bg: #0D1B2A;
    --card-bg: #121F2E;
    --text: #E0E0E0;
    --border: #2D4458;
    --plan-text: #E0E0E0;
    --plan-desc: #E0E0E0;
    --footer-bg: #1a1a1a;
    --footer-text: #e0e0e0;
}

.login-page.light-mode {
    --primary: #0A324F;
    --accent: #16C89B;
    --light-bg: #FDFCFB;
    --card-bg: #FFFFFF;
    --text: #333;
    --border: #E0EAE0;
    --plan-text: #333;
    --plan-desc: #6B7280;
    --footer-bg: #f5f5f5;
    --footer-text: #333;
}

/* =============== MAIN APP THEMES =============== */
.main-app.light-theme {
    --bg-color: #ffffff;
    --container-bg: #fffbe6;
    --text-color: #333333;
    --border-color: #d4a017;
    --logo-caption-color: #333;
}

.main-app.dark-theme {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #e0e0e0;
    --border-color: #555;
    --logo-caption-color: #ffffff;
}

.main-app.warm-theme {
    --bg-color: #fffbe6;
    --container-bg: #fff8e1;
    --text-color: #333;
    --border-color: #d4a017;
    --logo-caption-color: #333;
}

/* Add to your CSS */
.text-color-option.recommended {
    font-weight: bold;
    background-color: #e8f5e8;
}

.text-color-option.not-recommended {
    opacity: 0.6;
    color: #999;
}


.mobile-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-code {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  padding: 0 12px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-color);
  user-select: none;
  min-width: 50px;
  text-align: center;
}

.mobile-number-input {
  flex: 1;
  min-width: 0;
}

.otp-group {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.otp-input {
  text-align: center;
  font-size: 18px;
  width: 40px;
  height: 50px;
}

.otp-resend-container {
  text-align: center;
  margin: 8px 0;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-color, #16C89B);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
}

.btn-link:hover {
  opacity: 0.8;
}

.btn-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}


/* Hide Mobile OTP and Admin tabs */
.tab-btn[data-tab=""],
.tab-btn[data-tab="admin"] {
    display: none !important;
}

/* Hide all social login icons */
.social-icons,
.social-login .social-icon,
.google,
.facebook,
.twitter {
    display: none !important;
}
/* Optional: Hide entire social login section if needed */
.social-login {
    display: none !important;
}
.forgot-password {
    display: none !important;
}

/* Hide Standard TRX Payment Button */
#tronPaymentBtnStandard {
    display: none !important;
}

/* Hide Standard TRX Payment Button */
#tronPaymentBtnPremium {
    display: none !important;
}


/* Main App Frame - Square Brown Outline */
.main-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #fff;
}

.header-container,
.footer-container,
.main-frame {
  width: 100%;
}

/* Create a unified frame with brown border */
.main-frame {
  flex: 1;
  border-left: 1px solid #8B4513;   /* SaddleBrown */
  border-right: 1px solid #8B4513;
  border-top: 0px solid #8B4513;
  border-bottom: 1px solid #8B4513;
  box-sizing: border-box;
  padding: 0px;
}

/* Optional: Adjust header to sit *inside* the frame instead of above */
.header-container {
  display: normal; /* Remove old header if you want full square */
}

/* Ultra-small clock → 50% larger = ~25% of original */
.clock-container {
    text-align: center;
    border: 2px solid #ff0000;              /* 1.33px × 1.5 */
    border-radius: 5px;                     /* 3.33px × 1.5 */
    background-color: #1a0000;
    padding: 1.66px 3.33px;
    display: inline-block;
    box-shadow:
        0 0 7.5px rgba(255, 0, 0, 0.8),     /* 5px × 1.5 */
        inset 0 0 0.5px rgba(255, 0, 0, 0.4); /* 0.33px × 1.5 */
    font-family: 'Segoe UI', Tahoma, sans-serif;
    /* No padding, no margin */
}

.date {
    font-size: 1.0rem;                    /* 0.416rem × 1.5 */
    font-weight: bold;
    color: #ff3333;
    text-shadow:
        0 0 2.49px #ff0000,                 /* 1.66px × 1.5 */
        0 0 5px #ff0000;                    /* 3.33px × 1.5 */
    letter-spacing: 0.75px;                 /* 0.5px × 1.5 */
    line-height: 1;
    display: block;
    /* No margin */
}

.time {
    font-size: 1.0rem;                      /* 1rem × 1.5 */
    font-weight: bold;
    color: #ff0000;
    text-shadow:
        0 0 3.75px #ff0000,                 /* 2.5px × 1.5 */
        0 0 7.5px #ff0000,                  /* 5px × 1.5 */
        0 0 11.25px #ff0000;                /* 7.5px × 1.5 */
    letter-spacing: 1.245px;                /* 0.83px × 1.5 */
    line-height: 1;
    display: block;
    /* No margin */
}

.micro-clock-wrapper {
    display: inline-block;
    transform: scale(0.5); /* Now 8.325% of original! */
    transform-origin: top left;
}


/* Excel-Style Hover Tooltip for Table 0 */
.table0-tooltip {
    position: absolute;
    background-color: #FFFFCC; /* Classic Excel yellow */
    border: 1px solid #000;
    padding: 6px 8px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    color: #000;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    border-radius: 0;
    white-space: nowrap;
    max-width: 300px;
    text-align: left;
}

/* Excel-style hover tooltip for Table 0 */
.table0-excel-tooltip {
    position: absolute;
    background-color: #FFFFCC; /* Classic Excel yellow */
    border: 1px solid #000;
    padding: 6px 8px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    color: #000;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    border-radius: 0;
    white-space: pre-line;
    max-width: 300px;
    display: none;
}



/* ====== TRON RATE DISPLAY STYLING (IMPROVED) ====== */

.tron-info::before {
    content: "Coingecko";
    font-weight: bold;
    color: #007bff;
}

.tron-info a {
    color: #007bff;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.7rem;
    margin-left: 2px;
}

.tron-info a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* ====== TRON PAYMENT BUTTON STYLING ====== */
.plan-button[onclick*="initiateTronPayment"] {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: 0.85rem;
}

.plan-button[onclick*="initiateTronPayment"]:hover {
    background: linear-gradient(135deg, #FF5252, #FF6B6B);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.plan-button[onclick*="initiateTronPayment"]:active {
    transform: translateY(0);
}

.tron-info .fa-sync-alt {
    animation: spin 2s linear infinite;
    opacity: 0.6;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}





