/* 
   Birmarket Bot Landing Page
   Theme: Dark mode with Vibrant Birmarket Red accents
*/

:root {
    /* Color Palette */
    --primary: #E4002B;
    /* Birmarket Red */
    --primary-hover: #c90025;
    --primary-light: rgba(228, 0, 43, 0.15);

    --bg-dark: #0b0f19;
    --bg-darker: #05070c;
    --bg-card: rgba(255, 255, 255, 0.03);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --border-color: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E4002B 0%, #ff4d6d 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(228, 0, 43, 0.2) 0%, transparent 60%);

    /* Box shadows & Glassmorphism */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(15, 23, 42, 0.6);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Glass Card Component */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(228, 0, 43, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(228, 0, 43, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: monospace;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(228, 0, 43, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 146, 188, 0.05) 0%, transparent 40%);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 900px;
    background: var(--gradient-glow);
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: #ffb3c1;
    border: 1px solid rgba(228, 0, 43, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual / Bot Interface Mockup */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.mockup-container {
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
    transform-style: preserve-3d;
}

.bot-interface {
    width: 100%;
    max-width: 380px;
    height: 500px;
    margin: 0 auto;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(20, 25, 40, 0.8) 0%, rgba(10, 15, 25, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bot-info {
    display: flex;
    flex-direction: column;
}

.bot-info span {
    font-size: 0.75rem;
    color: var(--primary);
}

.bot-messages {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.msg-in {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-out {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.highlight-msg {
    border: 1px solid var(--primary);
    background: rgba(228, 0, 43, 0.1);
}

.bot-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
}

.send-btn {
    color: var(--primary);
    cursor: pointer;
}

/* Typing animation */
.typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 1rem !important;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

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

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

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Floating Elements */
.floating-badge {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.badge-1 {
    top: 20%;
    left: -10%;
}

.badge-2 {
    bottom: 25%;
    right: -5%;
}

/* Animations */
.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float-anim-delayed {
    animation: float 7s ease-in-out infinite 2s;
}

.float-anim-alt {
    animation: floatAlt 5s ease-in-out infinite 1s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatAlt {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(228, 0, 43, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(228, 0, 43, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.feature-card p {
    color: var(--text-muted);
}

/* How It Works Section */
.how-it-works {
    padding: 8rem 0;
}

.how-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    width: 2px;
    height: calc(100% - 30px);
    background: var(--border-color);
}

.step-number {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 0 15px rgba(228, 0, 43, 0.4);
}

.step-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.step-info p {
    color: var(--text-muted);
}

/* Code Window */
.code-window {
    border-radius: 12px;
    overflow: hidden;
}

.window-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.window-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: none;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.window-body {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-x: auto;
}

.comment {
    color: #6a9955;
}

.keyword {
    color: #c586c0;
    font-weight: bold;
}

.function {
    color: #dcdcaa;
}

.string {
    color: #ce9178;
}

/* CTA Section */
.cta {
    padding: 5rem 0 8rem;
}

.cta-card {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(228, 0, 43, 0.1) 100%);
    border: 1px solid rgba(228, 0, 43, 0.2);
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    justify-content: space-around;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.link-group ul li {
    margin-bottom: 0.75rem;
}

.link-group ul li a {
    color: var(--text-muted);
}

.link-group ul li a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-container,
    .how-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .stats-row {
        justify-content: center;
    }

    .step::after {
        display: none;
    }

    .step {
        text-align: left;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5, 7, 12, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1000;
    }

    .mobile-menu-btn.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .mobile-menu-btn.toggle span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }

    .hero {
        padding: 5rem 0 10rem;
    }

    .badge {
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
        padding: 0 1rem;
        line-height: 1.2;
    }

    .hero-title .text-gradient {
        display: inline-block;
        font-size: 1.2rem;
        font-weight: 400;
        margin-top: 0.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 1rem;
        color: rgba(156, 163, 175, 0.9);
    }

    .hero-cta {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .stats-row {
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .stat-num {
        font-size: 1.1rem;
    }

    .stat-text {
        font-size: 0.65rem;
    }

    .stat-divider {
        display: none;
    }

    .cta-actions {
        flex-direction: column;
    }
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-base);
    animation: bounceWA 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

.wa-icon {
    width: 35px;
    height: 35px;
}

@keyframes bounceWA {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ------------------------------------ */
/* Spreadsheet Interface Premium UI     */
/* ------------------------------------ */

.spreadsheet-ui {
    width: 100%;
    max-width: 480px;
    /* Increased width by ~10% */
    height: 380px;
    /* Shorter height for 5-6 rows + blur */
    margin: 0 auto;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: rgba(15, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    font-size: 0.8rem;
    font-family: inherit;
}

.sheet-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sheet-tabs {
    display: flex;
    gap: 1rem;
}

.sheet-tab {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

.sheet-tab.active {
    color: var(--primary);
    position: relative;
}

.sheet-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.sheet-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #4CAF50;
    font-weight: 500;
}

.sheet-status .dot {
    width: 6px;
    height: 6px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.sheet-table {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sheet-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr 1.2fr;
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Fine divider */
    align-items: center;
    transition: background 0.3s;
}

/* Faint alternating rows */
.sheet-row:not(.sheet-head):nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.sheet-row.sheet-head {
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    /* Bold headers */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sheet-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
    transition: color 0.4s ease, background 0.4s ease;
    border-radius: 4px;
    padding: 2px 4px;
}

.sheet-cell:not(:first-child) {
    text-align: right;
}

.price-competitor.highlight-red {
    background: rgba(255, 76, 76, 0.15);
    color: #ff4c4c;
    box-shadow: 0 0 8px rgba(255, 76, 76, 0.2);
}

.price-current.highlight-green {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.2);
}

/* Stronger blur and gradient for bottom fade out */
.sheet-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    /* Bigger height for gradual vanish */
    background: linear-gradient(to top, rgba(15, 20, 30, 1) 15%, rgba(15, 20, 30, 0.8) 40%, rgba(15, 20, 30, 0) 100%);
    backdrop-filter: blur(4px);
    /* Blur effect on lower rows */
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 5;
}

/* ------------------------------------ */
/* Floating Telegram Overlay            */
/* ------------------------------------ */

.telegram-overlay {
    position: absolute;
    right: -20px;
    /* Slightly closer to card */
    bottom: -20px;
    /* Safely within hero bounds */
    width: 240px;
    /* Slightly smaller for balance */
    background: rgba(25, 30, 40, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.8rem;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    /* Reduced shadow to not overshadow Sheets */
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.tg-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tg-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.tg-header .tg-icon {
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.tg-header .tg-icon::before {
    content: '✈️';
    /* Telegram-style icon mock */
    font-size: 0.9rem;
}

.tg-msg {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    line-height: 1.4;
    border-left: 3px solid transparent;
}

.tg-msg strong {
    color: white;
}

.tg-msg.warning {
    border-left-color: #ff4c4c;
}

.tg-msg.success {
    border-left-color: #4CAF50;
}

.tg-msg.info {
    border-left-color: #2196F3;
}

/* Match Notification Tooltip inside Grid */
.tooltip-match {
    position: absolute;
    top: 35%;
    /* Moved higher to align near animated AirPods row and avoid overlap */
    left: 50%;
    transform: translate(-50%, -10px);
    background: white;
    color: black;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 15;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.tooltip-match.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Telegram Overlay Mobile Adjustments */
@media (max-width: 768px) {
    .spreadsheet-ui {
        transform: scale(0.85);
        transform-origin: top center;
        margin-bottom: -60px;
        /* Offset the scale gap */
    }

    .telegram-overlay {
        transform: scale(0.7);
        /* Reduce by 30% */
        transform-origin: bottom right;
        right: 0px;
        bottom: -20px;
        /* Kept safely inside hero bounds */
        z-index: 6;
        /* Keep it above the fade outline but lower prominence */
    }
}