/* ==========================================================================
   Tabseet Tech — Ultra-Modern Swiss Editorial & Asymmetric Bento UI
   Palette: Warm Paper-White (#FAF9F6), Warm Dark (#111013), Burnt Clay (#C4552F)
   Zero Glassmorphism | Zero Neon | Pure Performance & Architectural Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=IBM+Plex+Arabic:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Light Mode (Warm Paper-White) */
    --bg-main: #FAF9F6;
    --bg-surface: #FFFFFF;
    --bg-subtle: #F2F0EB;
    --bg-hover: #EBE8E1;
    
    --border-color: rgba(17, 16, 19, 0.08);
    --border-strong: rgba(17, 16, 19, 0.16);
    --border-focus: #C4552F;
    
    --text-primary: #111013;
    --text-secondary: #5C5A5E;
    --text-muted: #8F8D91;
    
    /* Primary Accent: Burnt Clay / Industrial Rust */
    --accent: #C4552F;
    --accent-hover: #A84422;
    --accent-active: #8F381B;
    --accent-subtle: rgba(196, 85, 47, 0.08);
    --accent-light: rgba(196, 85, 47, 0.15);
    
    --error: #D9381E;
    --success: #2A8A4B;
    
    /* Typography Stack */
    --font-display: 'IBM Plex Arabic', 'Fraunces', serif;
    --font-sans: 'IBM Plex Arabic', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Functional Shadows (Subtle elevation only, no heavy drop-shadows) */
    --elevation-1: 0 1px 3px rgba(17, 16, 19, 0.03), 0 1px 2px rgba(17, 16, 19, 0.06);
    --elevation-2: 0 4px 12px rgba(17, 16, 19, 0.05), 0 1px 2px rgba(17, 16, 19, 0.04);
    
    /* Radii & Grid Spacing */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    /* Dark Mode (Near-black with warm undertone) */
    --bg-main: #111013;
    --bg-surface: #19181C;
    --bg-subtle: #232127;
    --bg-hover: #2E2B33;
    
    --border-color: rgba(250, 249, 246, 0.08);
    --border-strong: rgba(250, 249, 246, 0.16);
    
    --text-primary: #FAF9F6;
    --text-secondary: #A8A6AA;
    --text-muted: #6E6C70;
    
    --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.2);
    --elevation-2: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ==========================================================================
   Layout Wrapper (Mobile-First Responsive Container)
   ========================================================================== */
.site-wrapper {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .site-wrapper {
        padding: 0 var(--space-sm);
    }
}

/* ==========================================================================
   1. Header (Minimal Wordmark & Clean Nav)
   ========================================================================== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
}

/* Force LTR direction so "Tabseet Tech" never gets reversed in RTL pages */
.brand-wordmark {
    font-family: 'Fraunces', var(--font-sans);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

.brand-wordmark .accent-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-sm);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background-color: var(--bg-subtle);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background-color: var(--bg-subtle);
}

@media (max-width: 640px) {
    .nav-list { display: none; } /* Hide text nav on mobile to keep focus clean & lightning fast */
}

/* ==========================================================================
   2. Tool Section (Tool-First Asymmetric Hero)
   ========================================================================== */
.tool-section {
    margin-bottom: var(--space-xl);
}

.tool-header-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    max-width: 760px;
}

.editorial-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.editorial-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.6;
    max-width: 620px;
}

/* Tool Interface Bar */
.tool-interface-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    box-shadow: var(--elevation-2);
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.tool-interface-card:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-subtle), var(--elevation-2);
}

.url-input-group {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

@media (max-width: 520px) {
    .url-input-group {
        flex-direction: column;
        align-items: stretch;
    }
}

.url-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.url-input {
    width: 100%;
    height: 56px;
    padding-right: 48px;
    padding-left: 16px;
    font-size: 1.05rem;
    color: var(--text-primary);
    background: transparent;
}

.url-input::placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn-fetch {
    height: 56px;
    padding: 0 var(--space-lg);
    background-color: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    white-space: nowrap;
    box-shadow: 0 4px 12px var(--accent-light);
}

.btn-fetch:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 16px var(--accent-light);
}

.btn-fetch:active {
    background-color: var(--accent-active);
    transform: scale(0.98);
}

.btn-fetch:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Subtle Monochrome Platform Marks */
.platform-marks {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    padding: 0 var(--space-xs);
    flex-wrap: wrap;
}

.platform-marks-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
}

.mark-list {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.mark-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.mark-item:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* ==========================================================================
   3. Dynamic Interaction States & Asymmetric Bento Results
   ========================================================================== */
.interaction-area {
    min-height: 20px;
    margin-top: var(--space-md);
}

.state-panel {
    display: none;
    animation: fadeIn 0.3s var(--transition-smooth);
}
.state-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading Skeleton / Spinner State */
.loading-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--elevation-1);
}

.spinner-svg {
    animation: rotate 1s linear infinite;
    color: var(--accent);
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Error State */
.error-card {
    background: var(--bg-surface);
    border-right: 4px solid var(--error);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.error-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--error);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-retry {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 8px 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-xs);
    transition: background var(--transition-fast);
}
.btn-retry:hover { background: var(--bg-hover); }

/* Asymmetric Bento Results Grid */
.bento-results-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-sm);
}

@media (max-width: 820px) {
    .bento-results-grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Bento Block 1: Video Metadata (Span 7) */
.bento-block-meta {
    grid-column: span 7;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    display: flex;
    gap: var(--space-sm);
    box-shadow: var(--elevation-1);
}

@media (max-width: 820px) {
    .bento-block-meta { grid-column: span 1; }
}

@media (max-width: 480px) {
    .bento-block-meta { 
        flex-direction: column; 
        text-align: center;
        align-items: center;
    }
}

.thumb-wrapper {
    width: 140px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-subtle);
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .thumb-wrapper { width: 100%; height: 140px; }
}

.thumb-placeholder {
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.duration-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(17, 16, 19, 0.85);
    color: #FAF9F6;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    direction: ltr;
}

.meta-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.video-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.video-source-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    padding: 4px 12px;
    border-radius: 99px;
    align-self: flex-start;
}

@media (max-width: 480px) {
    .video-source-tag {
        align-self: center;
    }
}

/* Bento Block 2: Quality Segmented Control (Span 5) */
.bento-block-format {
    grid-column: span 5;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--elevation-1);
}

@media (max-width: 820px) {
    .bento-block-format { grid-column: span 1; }
}

.format-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg-subtle);
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
}

.segment-btn {
    padding: 10px 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--transition-fast);
}

.segment-btn:hover {
    color: var(--text-primary);
}

.segment-btn.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: var(--elevation-1);
}

/* Bento Block 3: Action & QR Handoff (Span 12) */
.bento-block-action {
    grid-column: span 12;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    box-shadow: var(--elevation-1);
}

@media (max-width: 640px) {
    .bento-block-action { flex-direction: column; align-items: stretch; }
}

.action-main {
    flex: 1;
}

.btn-download-primary {
    width: 100%;
    height: 56px;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px var(--accent-light);
}

.btn-download-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-light);
}

.btn-download-primary:active {
    transform: translateY(0);
}

.qr-handoff-box {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-right: var(--space-md);
    border-right: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .qr-handoff-box {
        border-right: none;
        border-top: 1px solid var(--border-color);
        padding-right: 0;
        padding-top: var(--space-sm);
        justify-content: center;
    }
}

.qr-code-svg {
    width: 48px;
    height: 48px;
    background: var(--bg-subtle);
    padding: 4px;
    border-radius: var(--radius-xs);
    color: var(--text-primary);
}

.qr-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 140px;
}

.qr-text strong {
    color: var(--text-primary);
    display: block;
    font-weight: 700;
}

/* ==========================================================================
   4. SEO & Features Section (Functional Asymmetric Editorial Grid)
   ========================================================================== */
.editorial-grid-section {
    margin-bottom: var(--space-xl);
}

.section-heading-minimal {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--text-primary);
    display: inline-block;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
}

@media (max-width: 820px) {
    .editorial-grid { grid-template-columns: 1fr; }
}

/* How It Works (Span 7) */
.seo-block-steps {
    grid-column: span 7;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

@media (max-width: 820px) {
    .seo-block-steps { grid-column: span 1; }
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.step-item {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    min-width: 32px;
    flex-shrink: 0;
    white-space: nowrap;
    direction: ltr;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Supported Platforms List (Span 5) */
.seo-block-platforms {
    grid-column: span 5;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
}

@media (max-width: 820px) {
    .seo-block-platforms { grid-column: span 1; }
}

.platform-detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.platform-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
}

.platform-detail-item:last-child {
    border-bottom: none;
}

.platform-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.platform-tag {
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

/* FAQ Accordion (Span 12) */
.seo-block-faq {
    grid-column: span 12;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    margin-top: var(--space-sm);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
    cursor: pointer;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    transition: transform var(--transition-smooth);
    color: var(--text-muted);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 250px;
    padding-bottom: var(--space-sm);
}

/* ==========================================================================
   5. Footer (4-Column Editorial Layout)
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--space-lg) 0;
    margin-top: auto;
    background: var(--bg-surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h3, .footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 520px) {
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ==========================================================================
   Performance / Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   PWA Smart Install Floating Banner (2026 Mobile-First Editorial)
   ========================================================================== */
.pwa-toast-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #0A0A0A;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 440px;
    width: calc(100% - 48px);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    pointer-events: none;
}

.pwa-toast-panel.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-toast-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pwa-toast-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.12);
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-toast-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pwa-toast-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F8FAFC;
}

.pwa-toast-text span {
    font-size: 0.8rem;
    color: #94A3B8;
    line-height: 1.35;
}

.pwa-toast-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-pwa-install {
    background: #10B981;
    color: #000000;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-pwa-install:hover {
    background: #059669;
    color: #FFFFFF;
}

.btn-pwa-install:active {
    transform: scale(0.97);
}

.btn-pwa-dismiss {
    background: transparent;
    color: #64748B;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.btn-pwa-dismiss:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 520px) {
    .pwa-toast-panel {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: calc(100% - 32px);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    
    .pwa-toast-actions {
        justify-content: flex-end;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 10px;
    }
}

