/* Design System Variables */
:root {
    /* Colors */
    --primary-blue: #3E6DFF;
    --primary-blue-hover: #2955E0;
    --primary-blue-light: #F0F5FF;

    --accent-green: #00D084;
    --accent-yellow: #FFCF00;
    --accent-red: #FF4F4F;

    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #757575;

    --bg-white: #FFFFFF;
    --bg-light: #F7F9FC;
    --bg-footer: #2D3436;

    --border-light: #E0E6ED;

    /* Typography */
    --font-family: 'Inter', sans-serif;

    /* Spacing */
    --container-max-width: 1200px;
    --header-height: 80px;
    --section-padding: 80px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    margin-left: 16px;
}

.btn-secondary:hover {
    background-color: #E1E9FF;
}

.btn-text {
    color: var(--text-dark);
    background: transparent;
}

.btn-text:hover {
    color: var(--primary-blue);
}

/* Header */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 12px;
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-medium);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}



.hero-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align left */
    text-align: left;
    /* Align text left */
    max-width: 800px;
    margin: 0 auto;
    gap: 40px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-trust i {
    color: var(--accent-green);
    font-size: 1.1em;
}

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
}

.browser-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.browser-header {
    background: #f1f3f5;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e9ecef;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #FF5F57;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #28C840;
}

.browser-content {
    padding: 40px;
    height: 380px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #FAFBFC;
}

.ui-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ui-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.ui-card.active {
    border-color: var(--primary-blue);
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

.ui-card i {
    font-size: 24px;
    color: var(--primary-blue);
}

.ui-upload-area {
    margin-top: auto;
    height: 140px;
    border: 2px dashed #CBD5E0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #718096;
    gap: 12px;
    font-weight: 500;
}

.ui-upload-area i {
    font-size: 48px;
    color: #A0AEC0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.5;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-blue-light);
    top: -50px;
    right: -50px;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: #E6FFFA;
    /* Light teal */
    bottom: -30px;
    left: -30px;
}

/* Tools Grid Section */
.tools-section {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tool-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid transparent;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    /* Determine color logic in modifier classes or JS */
    color: white;
    background: var(--primary-blue);
}

.tool-name {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.tool-desc {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tool Colors */
.bg-red {
    background: #FF5F5F;
}

.bg-green {
    background: #00D084;
}

.bg-blue {
    background: #3E6DFF;
}

.bg-yellow {
    background: #FFCF00;
}

.bg-purple {
    background: #9F7AEA;
}

.bg-teal {
    background: #38B2AC;
}

.bg-orange {
    background: #ED8936;
}

.bg-pink {
    background: #ED64A6;
}

.bg-indigo {
    background: #667EEA;
}

.bg-gray {
    background: #718096;
}

/* Feature Highlight Section */
.features-section {
    padding: var(--section-padding) 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-block {
    display: flex;
    gap: 20px;
}

.feature-icon {
    min-width: 48px;
    height: 48px;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-content ul {
    list-style: none;
}

.feature-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-medium);
}

.feature-content li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Stats Section */
.stats-section {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
    text-align: center;
}

.stats-title {
    margin-bottom: 40px;
}

.logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    opacity: 0.6;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-name {
    font-size: 1rem;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.quote {
    color: var(--text-medium);
    font-style: italic;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    /* Removed redundant background-color since we have video + overlay */
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    /* High transparency for clear video */
    z-index: -1;
    backdrop-filter: blur(2px);
}



/* Steps Section */
.steps-section {
    padding: var(--section-padding) 0;
    background: white;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin-top: 16px;
    display: none;
    /* Hide on mobile by default */
}

@media(min-width: 768px) {
    .step-connector {
        display: block;
    }
}

/* Pricing Section */
.pricing-section {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 350px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 2px solid transparent;
}

.pricing-card.pro {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-align: center;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-medium);
}

.pricing-features i {
    color: var(--accent-green);
    font-size: 1.2rem;
}

.btn-full {
    width: 100%;
}

/* Security Band */
.security-section {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
}

.security-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 300px;
}

.security-item i {
    font-size: 32px;
    color: var(--accent-green);
}

.security-item h4 {
    color: white;
    margin-bottom: 4px;
}

.security-item p {
    color: #A0AEC0;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tool Workspace Overlay */
.tool-workspace {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-light);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.tool-workspace.hidden {
    display: none;
}

.workspace-header {
    height: 80px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.workspace-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: calc(100vh - 80px);
}

/* Upload Zone */
.upload-zone {
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: white;
    border: 2px dashed #CBD5E0;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: all 0.3s ease;
}

.upload-zone.drag-over {
    border-color: var(--primary-blue);
    background: var(--primary-blue-light);
}

.upload-icon {
    font-size: 80px;
    color: var(--primary-blue);
}

.upload-zone h3 {
    font-size: 2rem;
}

.upload-zone p {
    color: var(--text-medium);
    margin-bottom: 16px;
}

/* Processing Zone */
.processing-zone {
    width: 100%;
    max-width: 800px;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.file-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-light);
}

.file-item i {
    font-size: 40px;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.file-name {
    font-size: 0.9rem;
    word-break: break-word;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.remove-file {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-red);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.action-area {
    text-align: center;
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

#status-text {
    margin-top: 16px;
    color: var(--text-light);
}

/* Result Zone */
.result-zone {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: var(--accent-green);
    margin-bottom: 24px;
}

.result-zone h3 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.download-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .workspace-header {
        padding: 0 16px;
    }

    .workspace-content {
        padding: 24px;
    }

    .upload-zone {
        height: 300px;
    }

    .file-list {
        grid-template-columns: repeat(2, 1fr);
    }
}





@media (max-width: 768px) {

    .nav-links,
    .header-actions .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .security-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .security-item {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Authentication System (SmallPDF Replica) --- */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.auth-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darker overlay */
    backdrop-filter: blur(4px);
}

.auth-card {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    background: var(--bg-white);
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    z-index: 2001;
    display: flex;
    overflow: hidden;
    animation: modalSlideFromRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalSlideFromRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: transparent;
    color: #fff;
    /* White on the sidebar side usually, but check layout */
    /* Wait, if it's on the right (sidebar), it should be white. on mobile, dark. */
    /* Let's put it top right of the whole card. Since right side is Blue, make it white. */
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-modal:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Left Side: Main Form */
.auth-main {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Right Side: Pro Sidebar */
.auth-sidebar {
    flex: 0.8;
    background: #001E3C;
    /* Deep Navy Blue like SmallPDF Pro */
    color: white;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: linear-gradient(135deg, #001E3C 0%, #003366 100%);
}

.sidebar-content h3 {
    font-size: 24px;
    margin-bottom: 24px;
    font-weight: 700;
}

.sidebar-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    line-height: 1.4;
}

.sidebar-features li i {
    color: #00D084;
    /* Green checks */
    font-size: 20px;
    flex-shrink: 0;
}

.trust-badges {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 32px;
}

/* Typography & Elements */
.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-align: left;
    /* Left align title in split view */
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.auth-subtitle a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-subtitle a:hover {
    text-decoration: underline;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E6ED;
    border-radius: 4px;
    /* Slightly sharper */
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
    /* Bolder text */
    font-size: 16px;
    cursor: pointer;
    transition: background 0.1s;
}

.btn-social:hover {
    background: #F7F9FC;
    border-color: #C0C8D0;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E0E6ED;
}

.auth-divider span {
    position: relative;
    background: var(--bg-white);
    padding: 0 16px;
    color: #757575;
    font-size: 14px;
    font-weight: 500;
}

/* Inputs */
.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {

    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 1px solid #E0E6ED;
    border-radius: 4px;
    font-size: 16px;
    color: var(--text-dark);
    height: 48px;
    /* Taller inputs */
}

.input-wrapper input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(62, 109, 255, 0.2);
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
    pointer-events: none;
    z-index: 5;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    z-index: 5;
}

.btn-auth {
    margin-top: 24px;
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
}

/* Mobile Styling */
@media (max-width: 768px) {
    .auth-card {
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        flex-direction: column;
    }

    .auth-sidebar {
        display: none;
        /* Hide Pro sidebar on mobile */
    }

    .close-modal {
        color: var(--text-dark);
        /* Dark X on white bg */
        top: 16px;
        right: 16px;
    }

    .auth-main {
        padding: 24px;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .auth-title {
        font-size: 24px;
    }
}

/* --- User Menu (Authenticated State) --- */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-menu.hidden,
#login-btn.hidden,
#trial-btn.hidden {
    display: none;
}

/* Tool Card Click Animation */
.tool-card.click-animate {
    animation: clickBounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes clickBounce {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* Tool Workspace Modal */
.tool-workspace-modal {
    width: 90%;
    max-width: 800px;
    height: auto;
    min-height: 500px;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: modalZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tool-header {
    margin-bottom: 40px;
}

.tool-header .icon-box {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.tool-header h2 {
    font-size: 32px;
    color: var(--text-dark);
}

.tool-body {
    width: 100%;
    display: flex;
    justify-content: center;
}

.upload-area {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border: 2px dashed #E0E6ED;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FAFBFC;
    transition: 0.2s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #F0F4FF;
}

.upload-area i {
    font-size: 64px;
    color: #BDC3C7;
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.upload-area p {
    color: #666;
    margin-bottom: 24px;
}

/* Generic Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: -1;
}

/* Process Area */
.process-area {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #F0F4FF;
    border-radius: 8px;
    margin-bottom: 24px;
    color: var(--text-dark);
    font-weight: 500;
}

.file-info i {
    color: var(--primary-color);
    font-size: 24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for Original Workspace */
.tool-workspace {
    animation: modalZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* SEO Tags */
.seo-tag {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.2s;
}

.seo-tag:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: var(--primary-blue-light);
}

/* --- Mobile Responsiveness Polish (Comprehensive) --- */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
        /* Reduce padding globally */
    }

    /* Typography Fixes */
    .hero-title {
        font-size: 2.25rem !important;
        /* Force smaller size */
        line-height: 1.2;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Layout Alignments */
    .hero-container {
        align-items: center !important;
        /* Center align everything in hero */
        text-align: center !important;
        padding: 0 20px;
    }

    .hero-content {
        align-items: center !important;
        text-align: center !important;
        width: 100%;
    }

    .hero-actions {
        justify-content: center !important;
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .hero-actions .btn {
        width: 100%;
        /* Full width buttons on mobile */
        margin: 0 !important;
    }

    .hero-trust {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Grid Fixes */
    .tools-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 16px;
    }

    .pricing-grid {
        gap: 24px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Ensure no horizontal scroll */
    body,
    html {
        overflow-x: hidden;
    }

    .container {
        padding: 0 20px;
    }
}

/* ---/* Smallpdf Pricing Replica Styles */
.pricing-section-smallpdf {
    max-width: 900px;
    margin: 0 auto;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #1a1a1a;
    border-bottom: 2px solid #00CC44;
}

.pricing-content.hidden {
    display: none;
}

.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.toggle-option {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    padding: 4px 0;
}

.toggle-option.active {
    color: #1A1A1A;
    font-weight: 600;
    border-bottom: 2px solid #1A1A1A;
}

.save-badge {
    background: #e6f8ea;
    color: #008a2e;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.pricing-grid-smallpdf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .pricing-grid-smallpdf {
        grid-template-columns: 1fr;
    }
}

.sp-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px;
    position: relative;
    transition: transform 0.2s;
}

.sp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.sp-card.pro {
    border: 1px solid #00CC44;
    /* Green border for Pro */
    box-shadow: 0 4px 12px rgba(0, 204, 68, 0.15);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #00CC44;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.plan-desc {
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
    min-height: 44px;
    /* Align heights */
}

.price-container {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 40px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1;
}

.price-period {
    color: #666;
    font-size: 14px;
}

.billing-text {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.btn-sp-primary {
    width: 100%;
    padding: 14px;
    background: #0066cc;
    /* Brand Blue */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-sp-primary:hover {
    background: #0052a3;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
}

.feature-check {
    color: #00CC44;
    font-size: 18px;
}

/* Pricing Layout Flex (Left CTA + Right Cards) */
.pricing-layout-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.pricing-left-cta {
    width: 250px;
    flex-shrink: 0;
    padding-top: 60px;
    /* Align visually with cards */
}

.pricing-right-content {
    flex-grow: 1;
}

@media (max-width: 900px) {
    .pricing-layout-flex {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .pricing-left-cta {
        width: 100%;
        text-align: center;
        padding-top: 0;
    }

    .pricing-toggle-container {
        justify-content: center !important;
        margin-right: 0 !important;
    }
}

/* --- Coffee Widget & Modal --- */
.coffee-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #FFDD00;
    /* BMC Yellow */
    color: #000;
    padding: 12px 24px 12px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
    /* Smallpdf font match */
    font-weight: 600;
    font-size: 16px;
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.coffee-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.coffee-fab .coffee-icon-wrapper {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal */
.coffee-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.coffee-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.coffee-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.coffee-modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.coffee-modal.active .coffee-modal-content {
    transform: scale(1);
}

.close-coffee-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.coffee-header h3 {
    margin: 16px 0 8px;
    font-size: 22px;
}

.coffee-header p {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.coffee-logo {
    width: 60px;
    height: 60px;
    background: #FFF8E1;
    color: #FFB300;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 28px;
}

.qr-container {
    margin: 24px 0;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #ddd;
}

.qr-label {
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.coffee-actions {
    display: flex;
    gap: 12px;
}

.pricing-section-smallpdf {
    font-family: 'Source Sans 3', sans-serif;
    max-width: 900px;
    margin: 0 auto;
}

/* Toggle Switch */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    background: #f1f3f4;
    padding: 6px;
    border-radius: 99px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle-option {
    padding: 8px 16px;
    border-radius: 99px;
    cursor: pointer;
    font-weight: 600;
    color: #475467;
    transition: all 0.3s;
}

.toggle-option.active {
    background: white;
    color: #101828;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.save-badge {
    background: #e6f4ea;
    color: #1e8e3e;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 4px;
}

/* Pricing Grid */
.pricing-grid-smallpdf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Card Styles */
.sp-card {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.sp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.sp-card.pro {
    border-color: #00CC44;
    /* Green Highlight */
    border-top-width: 8px;
}

.popular-badge {
    background: #00CC44;
    color: white;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    font-size: 13px;
    font-weight: 700;
    position: absolute;
    top: -8px;
    /* Correct offset for border-top */
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #101828;
}

.plan-desc {
    color: #667085;
    font-size: 15px;
    margin-bottom: 24px;
    height: 48px;
    /* Fixed height for alignment */
}

.price-container {
    margin-bottom: 32px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

.price-period {
    color: #667085;
    font-size: 16px;
}

.billing-text {
    font-size: 13px;
    color: #667085;
    margin-top: 4px;
}

/* Features List */
.features-list {
    margin-bottom: 32px;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #344054;
}

.feature-check {
    color: #00CC44;
    font-size: 20px;
    margin-top: -2px;
}

/* Buttons */
.btn-sp-primary {
    background: #0066cc;
    /* Keep brand blue but style like SP */
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-sp-primary:hover {
    background: #0052a3;
}

.seo-tag {
    border-radius: 20px;
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.seo-tag:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Profile Page Styles --- */
/* (Migrated from profile.html to allow media query overrides) */

/* Profile Body */
body.profile-page {
    background-color: #f7f9fc;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.profile-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #e0e6ed;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 32px;
    padding-left: 12px;
}

.sidebar-nav {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #475467;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: #f0f4f8;
    color: #101828;
}

.nav-item.active {
    background-color: #eff8ff;
    color: #0066cc;
}

.nav-item i {
    margin-right: 12px;
    font-size: 20px;
}

.user-mini-profile {
    margin-top: auto;
    border-top: 1px solid #e0e6ed;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Main Content */
.profile-main {
    margin-left: 280px;
    flex: 1;
    padding: 40px 60px;
    max-width: 1000px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #101828;
}

/* Forms & Cards */
.settings-card {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #101828;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #344054;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.btn-save {
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 24px;
}

.btn-save:hover {
    background: #0052a3;
}

/* Referral Card */
.referral-card {
    background: #e6f4ea;
    border: 1px solid #ceead6;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 32px;
}

.referral-title {
    color: #1e8e3e;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.referral-text {
    color: #137333;
    margin-bottom: 16px;
}

.referral-link-box {
    background: white;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #bdc3c7;
    max-width: 400px;
    margin: 0 auto;
}

.referral-link-box code {
    font-family: monospace;
    color: #333;
}

.copy-btn {
    background: none;
    border: none;
    color: #0066cc;
    font-weight: 600;
    cursor: pointer;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 4px;
}

.stat-label {
    color: #667085;
    font-size: 14px;
}


/* --- Mobile Layout Fixes --- */
@media (max-width: 768px) {

    /* Header Fixes */
    .header .container {
        padding: 0 16px;
    }

    /* Hide Navigation Links on Mobile to prevent crowding */
    .nav-links {
        display: none !important;
    }

    /* Ensure User Menu is visible (flex) when logged in */
    .user-menu {
        display: flex !important;
        margin-left: auto;
    }

    #admin-link-btn {
        display: none !important;
        /* Hide Admin Panel button on mobile */
    }

    .user-menu {
        margin-left: auto;
        /* Push to right */
    }

    .user-menu .avatar-initials {
        width: 32px;
        height: 32px;
        font-size: 14px;
        line-height: 32px;
    }

    .logo-text {
        font-size: 1.25rem;
        /* Shrink logo slightly */
    }

    /* Hero Fixes */
    .hero-container {
        padding-top: 2rem;
        gap: 24px;
        text-align: center;
        align-items: center;
    }

    .hero-title {
        font-size: 2.25rem;
        /* Smaller title */
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Pricing Card Spacing Fix */
    .pricing-grid-smallpdf {
        grid-template-columns: 1fr;
        /* Stack cards */
        gap: 32px;
    }

    /* Fix "Free" card height issue by allowing auto height */
    .sp-card {
        padding: 24px;
        min-height: auto;
    }

    .plan-desc {
        height: auto;
        /* Allow text to wrap naturally without fixed height gap */
        margin-bottom: 16px;
    }

    /* Sidebar / Account Fixes (if visible) */
    .sidebar {
        position: static;
        width: 100%;
        margin-bottom: 32px;
        box-shadow: none;
        border: 1px solid var(--border-light);
    }

    /* Sidebar Text (Hide on very small screens if needed, or stack) */
    .sidebar-menu-text {
        display: inline-block;
        /* Keep visible but maybe adjust size */
        font-size: 14px;
    }

    /* Profile Grid on Mobile */
    .profile-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Fixes */
    .footer-content {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Coffee FAB Mobile Position */
    .coffee-fab {
        bottom: 80px;
        /* Raise above bottom bar if any */
        right: 16px;
        padding: 10px 16px;
        font-size: 14px;
    }

    /* --- Advanced Mobile Fixes (User Request) --- */

    /* 1. Hide Background Video on Mobile */
    video.hero-bg-video {
        display: none !important;
    }

    .hero-visual {
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        /* Fallback gradient */
        min-height: 200px;
    }

    /* 2. Header: Remove Hamburger, Show Upgrade Button */
    .mobile-menu-toggle {
        display: none !important;
        /* Force hide hamburger */
    }

    #trial-btn,
    #login-btn {
        display: inline-flex !important;
        /* Force show Upgrade/Login buttons */
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    /* CRITICAL FIX: Allow JS to hide the login button on mobile */
    #login-btn.hidden {
        display: none !important;
    }

    /* 3. Profile Page Sidebar Fix */
    body.profile-page {
        flex-direction: column !important;
    }

    .profile-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e6ed;
        padding: 12px;
        z-index: 10;
        margin-bottom: 0px;
    }

    .profile-main {
        margin-left: 0;
        padding: 24px 16px;
        width: 100%;
    }

    .sidebar-header {
        display: none;
        /* Hide logo in sidebar on mobile since main header exists? Or keep simple */
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item {
        margin-bottom: 0;
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
        border: 1px solid #eee;
    }

    .nav-item i {
        font-size: 16px;
        margin-right: 6px;
    }

    .user-mini-profile {
        display: none;
        /* Hide mini profile in sidebar on mobile to save space */
    }

    /* 4. Fix Upgrade Button & Login Text */
    #trial-btn {
        border-radius: 50px !important;
        /* Make it Round/Gol */
        padding: 6px 16px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
        display: inline-flex !important;
        align-items: center;
        height: 32px;
    }

    #login-btn,
    .btn-text {
        white-space: nowrap !important;
        /* Prevent "Log \n in" */
        font-size: 0.85rem !important;
    }

    /* 5. Fix Mobile Login Visibility (Avatar) */
    .user-menu {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .user-menu.hidden {
        display: none !important;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Ensure admin link is hidden on mobile to save space */
    #admin-link-btn {
        display: none !important;
    }
}