:root {
    /* Color Palette */
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #0066cc;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --bg-gradient: linear-gradient(135deg, #ffffff, #f8f9fa, #f0f2f5);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition-speed: 0.3s;
}

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

html,
body {
    width: 100%;
    overflow-x: hidden !important;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to top, #000000, #ffffff);
    /* background: var(--bg-gradient); */
    background-size: 400% 400%;
    /* animation: gradientBG 15s ease infinite; */
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    /* Base font size for better touch/readability */
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        /* Slightly smaller for mobile */
    }
}

/* Background Animation */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform var(--transition-speed), background var(--transition-speed), box-shadow var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.12);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-speed), opacity var(--transition-speed);
}

a:hover {
    opacity: 0.7;
}


.loginbutton {
    outline: none;
    cursor: pointer;
    border: none;
    padding: 0.9rem 2rem;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    position: relative;
    display: inline-block;
    letter-spacing: 0.05rem;
    font-weight: 700;
    font-size: 17px;
    border-radius: 500px;
    overflow: hidden;
    background: #000000;
    color: #ffffff;
}

.loginbutton span {
    position: relative;
    z-index: 10;
    transition: color 0.4s;
}

.loginbutton:hover span {
    color: #ffffff;
}

.loginbutton::before,
.loginbutton::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.loginbutton::before {
    content: "";
    background: #333333;
    width: 120%;
    left: -10%;
    transform: skew(30deg);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.loginbutton:hover::before {
    transform: translate3d(100%, 0, 0);
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 2px solid transparent;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #333333;
}

.btn-outline {
    background: transparent;
    border: 2px solid #000000;
    color: #000000;
}

.btn-outline:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-control::placeholder {
    color: #999999;
}

.form-control:focus {
    background: #ffffff;
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}


.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000000;
}



/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* Floating Shapes Animation */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.15;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: #e0e0e0;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #d0d0d0;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #e8e8e8;
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(20deg);
    }
}

/* Features Section */
.features {
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #000000;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

.sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
    /* Enable scrolling */
}

.sidebar-menu {
    list-style: none;
    margin-top: 3rem;
}

.sidebar-item {
    margin-bottom: 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 12px;
    transition: all var(--transition-speed);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Utility Classes */
.text-gradient {
    color: #000000;
    font-weight: 800;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

/* Mobile Dropdown Toggle */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #000000;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.menu-toggle.active i {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 5%;
        left: auto;
        width: 200px;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 8px;
        gap: 6px;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 999;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        border-radius: 16px;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1rem;
        width: 100%;
        padding: 10px 12px;
        text-align: left;
        border-radius: 10px;
        background: transparent;
    }

    .loginbutton {
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .hero-image {
        display: none !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Desktop view - ensure nav links are always visible */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        height: auto;
        width: auto;
        max-width: none;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        box-shadow: none;
    }

    .menu-toggle {
        display: none !important;
    }

    .loginbutton {
        width: auto;
    }
}

@media (max-width: 768px) {
    .hero p {
        font-size: 1rem;
    }

    .hero {
        padding: 0 5%;
    }

    .features {
        padding: 3rem 5%;
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 44px;
    }

    .form-control {
        min-height: 44px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .dashboard-container {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    .glass-panel {
        padding: 2rem !important;
        max-width: 100% !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .navbar {
        padding: 0.75rem 4%;
    }

    .features {
        padding: 1.5rem 4%;
    }

    .btn {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .glass-panel {
        padding: 1.25rem !important;
        /* Tighter padding for mobile */
    }

    .glass-card {
        padding: 15px !important;
    }

    .form-group {
        margin-bottom: 1rem;
        /* Less space between groups */
    }

    .dashboard-layout {
        padding: 10px;
    }
}

/* Mobile Priority Utilities */
@media (max-width: 768px) {
    .mobile-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .mobile-text-sm {
        font-size: 0.85rem !important;
    }

    .mobile-compact {
        padding: 10px !important;
        margin: 5px 0 !important;
    }
}

/* =========================================
   Redesign Styles
   ========================================= */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Centered Navbar */
.navbar-new {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    border-radius: 50px;
    padding: 10px 30px;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Two Column Hero */
.hero-two-column {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-width: 0;
}

.hero-info {
    text-align: left;
    min-width: 0;
}

.hero-info h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-features-list {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-color);
}

.feature-item i {
    color: #000000;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #000, #333);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Right Side Image */
.hero-image {
    position: relative;
    animation: float-slow 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

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

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

/* Features Section Redesign */
.features-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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


/* New Responsive Styles */
@media (max-width: 992px) {
    .navbar-new {
        width: 95%;
        padding: 10px 20px;
    }

    .hero-info h1 {
        font-size: 3rem;
    }

    .hero-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-new {
        top: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--card-border);
        padding: 1rem 5%;
        left: 0;
        transform: none;
    }

    .navbar-container {
        justify-content: space-between;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-two-column {
        padding-top: 120px;
        min-height: auto;
    }

    .hero-info {
        text-align: center;
        order: 1;
    }

    .hero-info h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features-list {
        align-items: center;
    }

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

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-image {
        order: 0;
        /* Image on top on mobile */
        max-width: 400px;
        margin: 0 auto;
    }

    .logo {
        position: relative;
        z-index: 1002;
    }

    /* Reuse existing hamburger logic but adjust styles */
    .nav-links {
        top: calc(100% + 8px);
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .hero-info h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding-top: 16px;
    }

    .hero-stats .stat-item h3 {
        font-size: 1.1rem;
    }

    .hero-stats .stat-item p {
        font-size: 0.7rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-large {
        width: 100%;
    }
}

/* =========================================
   Dashboard Redesign Styles
   ========================================= */

.navbar-dashboard {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin-top: 1rem;
    /* margin-bottom: 2rem; */
    border-radius: 30px 30px 30px 30px;
    padding: 15px 30px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.dashboard-nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-nav-link:hover,
.dashboard-nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.05);
}

.dashboard-nav-link i {
    font-size: 1.1rem;
}

/* Mobile-only elements hidden by default */
.mobile-only {
    display: none;
}

/* User Profile in Nav */
.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Dashboard Single Column Layout */
.dashboard-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 40px 20px;
    margin-top: 20px;
}

.welcome-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #000, #333);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Updated Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card-new {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Recent Uploads Table Style */
.uploads-table-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.upload-item-new {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 20px;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
    transition: background 0.2s ease;
    border-radius: 12px;
}

.upload-item-new:hover {
    background: rgba(255, 255, 255, 0.5);
}

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

.file-icon-new {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Dashboard Responsive */
@media (max-width: 992px) {
    .dashboard-nav-links span {
        display: none;
        /* Hide text, show icons only on tablet */
    }
}

@media (max-width: 768px) {
    .navbar-dashboard {
        padding: 12px 15px;
    }

    .dashboard-nav-container {
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-nav-container .logo {
        align-self: center;
    }

    .dashboard-nav-links {
        order: 2;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dashboard-nav-link {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.03);
    }

    .dashboard-nav-link.active,
    .dashboard-nav-link:hover {
        background: rgba(0, 0, 0, 0.08);
    }

    .dashboard-nav-links span {
        display: inline;
        /* Show text on mobile */
    }

    .user-profile-nav {
        display: none;
    }

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

    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .upload-item-new {
        grid-template-columns: auto 1fr;
        gap: 10px;
    }

    .upload-meta {
        grid-column: 2;
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform var(--transition-speed), background var(--transition-speed), box-shadow var(--transition-speed);
}

/* Mobile Stack Utility */
@media (max-width: 768px) {
    .mobile-stack {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .mobile-stack .form-group {
        margin-bottom: 1rem !important;
    }
}

/* File Cards */
.file-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.6);
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 9999;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    animation: slideInToast 0.3s ease forwards;
    color: var(--text-color);
    min-width: 300px;
}

.toast-success {
    border-left: 4px solid #10b981;
    /* Green */
}

.toast-error {
    border-left: 4px solid #ff6b81;
    /* Red */
}

.toast-warning {
    border-left: 4px solid #f59e0b;
    /* Amber/Orange */
}

.toast-info {
    border-left: 4px solid #3b82f6;
    /* Blue */
}

@keyframes slideInToast {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

/* =========================================
   Converter Pages ??? Shared Styles
   (pdf-to-jpg, image-to-pdf, compress-pdf)
   ========================================= */

/* Page body override for converter dark gradient */
body.converter-page {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 50%, #f5f3ff 100%);
}

/* Navigation */
.convert-nav {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-radius: 30px;
    width: 90%;
    margin-left: 4.5rem;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.convert-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.convert-nav .nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #57575c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.convert-nav .nav-logo img {
    height: 32px;
    width: auto;
}

.convert-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.convert-nav .nav-menu a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.convert-nav .nav-menu a:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.convert-nav .nav-menu .nav-icon {
    font-size: 0.85rem;
}

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

.convert-nav .nav-links a {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.convert-nav .nav-links .btn-ghost {
    color: #64748b;
}

.convert-nav .nav-links .btn-ghost:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.convert-nav .nav-links .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.convert-nav .nav-links .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #1e293b;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.convert-nav.menu-open .mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.convert-nav.menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.convert-nav.menu-open .mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
.convert-main {
    padding: 6rem 1.5rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.1rem;
    color: #64748b;
}

/* Upload Card */
.upload-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.upload-zone {
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    margin: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #6366f1;
    background: #f8f7ff;
}

.upload-zone.dragover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.upload-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.upload-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.upload-zone h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Converter-specific button overrides */
.converter-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.converter-page .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: none;
}

.converter-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.converter-page .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.converter-page .btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.converter-page .btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: transparent;
}

/* Progress Bar */
.upload-progress {
    padding: 2rem;
    display: none;
}

.upload-progress.show {
    display: block;
}

.progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0%;
    animation: progressPulse 1.5s infinite;
}

@keyframes progressPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.progress-text {
    text-align: center;
    color: #64748b;
}

/* Convert Panel */
.convert-panel {
    display: none;
    padding: 2rem;
}

.convert-panel.show {
    display: block;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
}

.file-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    background: #e2e8f0;
}

.file-info {
    flex: 1;
}

.file-info h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.file-expiry {
    color: #f59e0b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fee2e2;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: #fecaca;
}

.options-section h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.options-section h4 i {
    color: #6366f1;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.option-group select {
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.option-group select:focus {
    outline: none;
    border-color: #6366f1;
}

.convert-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
}

/* Benefits Banner */
.benefits-banner {
    margin-top: 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f4f8 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.benefits-banner i {
    font-size: 2rem;
    color: #6366f1;
}

.benefits-banner .text {
    flex: 1;
    min-width: 200px;
}

.benefits-banner strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.benefits-banner p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.warning {
    background: #f59e0b;
}

/* Converter Features Grid */
.converter-page .features-section {
    margin-top: 3rem;
    color: #1e293b;
    padding: 0;
}

.converter-page .features-section h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

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

.features-grid .feature-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06);
}

.features-grid .feature-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: #6366f1;
}

.features-grid .feature-item h4 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.features-grid .feature-item p {
    color: #64748b;
    font-size: 0.9rem;
    opacity: 1;
}

/* Ad Container */
.ad-container {
    max-width: 800px;
    margin: 1rem auto 2rem;
    padding: 0 1rem;
    text-align: center;
}

.ad-container .ad-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.ad-unit {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Converter Responsive */
@media (max-width: 768px) {
    .convert-nav {
        width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
        padding: 0.75rem 1rem;
        border-radius: 20px;
    }

    .convert-nav .nav-container {
        gap: 0.5rem;
    }

    .convert-nav .nav-logo {
        font-size: 1.25rem;
    }

    .convert-nav .nav-logo img {
        height: 26px;
    }

    .convert-nav .nav-menu {
        display: none;
    }

    .convert-nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .convert-nav.menu-open {
        border-radius: 20px 20px 0 0;
    }

    .convert-nav.menu-open .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .convert-nav .nav-links a {
        background: #f8fafc;
        text-align: center;
        padding: 1rem;
        width: 100%;
        border-radius: 12px;
    }

    .convert-nav .nav-links .btn-ghost {
        display: block;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .file-preview {
        flex-direction: column;
        text-align: center;
    }

    .btn-remove {
        top: 0.5rem;
        right: 0.5rem;
    }

    .benefits-banner {
        flex-direction: column;
        text-align: center;
    }

    .convert-main {
        padding: 5rem 1rem 2rem;
    }

    .upload-zone {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .upload-icon {
        width: 70px;
        height: 70px;
    }

    .upload-icon i {
        font-size: 1.8rem;
    }

    .upload-zone h2 {
        font-size: 1.2rem;
    }
}


/* =========================================
   Convert Tool Page ??? css/main.css section
   (convert.html ??? dark theme multi-tool UI)
   ========================================= */

/* Convert page light glassy body override */
body.convert-tool-page {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 50%, #f5f3ff 100%);
    min-height: 100vh;
    color: #1e293b;
}

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

body {
    font-family: 'Inter', sans-serif;
}

/* Navigation — inherited from converter shared styles above */

/* Nav container, logo, links — inherited from converter shared styles above */

/* Main Content */
.convert-main {
    padding: 6rem 1.5rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Page header — inherited from converter shared styles above */

/* Upload Card — light glassy */
body.convert-tool-page .upload-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
    overflow: hidden;
}

body.convert-tool-page .upload-zone {
    border: 2px dashed #cbd5e1;
}

body.convert-tool-page .upload-zone:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
}

body.convert-tool-page .upload-zone h2 {
    color: #1e293b;
}

body.convert-tool-page .upload-zone p {
    color: #64748b;
}

body.convert-tool-page .upload-hint {
    color: #64748b;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* Progress Bar */
.upload-progress {
    padding: 2rem;
    display: none;
}

.upload-progress.show {
    display: block;
}

.progress-bar {
    background: rgba(99, 102, 241, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0%;
    animation: progressPulse 1.5s infinite;
}

@keyframes progressPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.progress-text {
    text-align: center;
    color: #64748b;
}

/* Convert Panel */
.convert-panel {
    display: none;
    padding: 2rem;
}

.convert-panel.show {
    display: block;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
}

.file-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    background: #f1f5f9;
}

.file-info {
    flex: 1;
}

.file-info h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.file-expiry {
    color: #f59e0b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

.options-section h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.options-section h4 i {
    color: #6366f1;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.option-group select {
    padding: 0.85rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
}

.option-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.option-group select option {
    background: #fff;
    color: #1e293b;
}

.convert-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
}

/* Benefits Banner */
.benefits-banner {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06);
}

.benefits-banner i {
    font-size: 2rem;
    color: #6366f1;
}

.benefits-banner .text {
    flex: 1;
    min-width: 200px;
}

.benefits-banner strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.benefits-banner p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.warning {
    background: #f59e0b;
}

/* Features Grid — light glassy */
body.convert-tool-page .features-section {
    margin-top: 3rem;
    color: #1e293b;
}

body.convert-tool-page .features-section h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

body.convert-tool-page .feature-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06);
}

body.convert-tool-page .feature-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: #6366f1;
}

body.convert-tool-page .feature-item h4 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

body.convert-tool-page .feature-item p {
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .convert-nav {
        width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
        padding: 0.75rem 1rem;
        border-radius: 20px;
    }

    .nav-container {
        gap: 0.5rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        margin-top: 10px;

        /* Override main.css hidden state */
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .convert-nav.menu-open {
        border-radius: 20px 20px 0 0;
    }

    .convert-nav.menu-open .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links a {
        background: rgba(241, 245, 249, 0.8);
        text-align: center;
        padding: 1rem;
        width: 100%;
        border-radius: 12px;
    }

    .nav-links .btn-ghost {
        display: block;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .file-preview {
        flex-direction: column;
        text-align: center;
    }

    .btn-remove {
        top: 0.5rem;
        right: 0.5rem;
    }

    .benefits-banner {
        flex-direction: column;
        text-align: center;
    }

    .convert-main {
        padding: 5rem 1rem 2rem;
    }

    .upload-zone {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .upload-icon {
        width: 70px;
        height: 70px;
    }

    .upload-icon i {
        font-size: 1.8rem;
    }

    .upload-zone h2 {
        font-size: 1.2rem;
    }
}

.hidden {
    display: none !important;
}

/* Ad Styles */
.ad-container {
    max-width: 800px;
    margin: 1rem auto 2rem;
    /* Increased bottom margin for safety */
    padding: 0 1rem;
    text-align: center;
}

.ad-container .ad-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.ad-unit {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   Passport Photo Tool Page
   (passport-photo.html - light glassy theme)
   ========================================= */

body.passport-page {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 50%, #f5f3ff 100%);
    min-height: 100vh;
    color: #1e293b;
}

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

body {
    font-family: 'Inter', sans-serif;
}

/* Navigation - overridden by .convert-nav above for converter pages */

/* Nav container, logo, links — inherited from converter shared styles above */

/* Main */
.app-main {
    padding: 6rem 1.5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

body.passport-page .page-header {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

body.passport-page .page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.passport-page .page-header p {
    color: #64748b;
    font-size: 1.05rem;
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}

.preview-panel {
    position: sticky;
    top: 6rem;
}

/* Upload Zone — passport page overrides to match light theme */
body.passport-page .upload-zone {
    border: 2px dashed #cbd5e1;
}

body.passport-page .upload-zone:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
}

body.passport-page .upload-zone.dragover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

body.passport-page .upload-zone h2 {
    color: #1e293b;
}

body.passport-page .upload-zone p {
    color: #64748b;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

/* Preview */
.preview-container {
    display: none;
}

.preview-container.show {
    display: block;
}

.preview-img-wrapper {
    text-align: center;
    margin-bottom: 1rem;
}

.preview-img-wrapper img {
    max-width: 100%;
    max-height: 420px;
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.15);
    object-fit: contain;
    background: #f8fafc;
}

/* Crop button row */
.crop-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-crop {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-crop:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.btn-crop.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
}

/* Crop overlay */
.crop-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 30, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    flex-direction: column;
}

.crop-overlay.show {
    display: flex;
}

.crop-container {
    max-width: 700px;
    max-height: 70vh;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
}

.crop-container img {
    display: block;
    max-width: 100%;
}

.crop-toolbar {
    display: flex;
    gap: 0.75rem;
}

.crop-toolbar .btn {
    padding: 0.7rem 1.5rem;
}

/* Service Mode Tabs */
.service-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 4px;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.service-tab {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.service-tab:hover {
    color: #4f46e5;
}

.service-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.service-tab i {
    font-size: 0.9rem;
}

.preview-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

.btn-remove-file {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-remove-file:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Size info strip below preview */
.size-info-strip {
    display: none;
    margin-top: 0.75rem;
    padding: 0.65rem 1rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 10px;
    font-size: 0.78rem;
    color: #6366f1;
    text-align: center;
    line-height: 1.6;
}

.size-info-strip.show {
    display: block;
}

.size-info-strip strong {
    color: #4f46e5;
}

/* Result Popup Modal */
.result-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.result-modal-overlay.show {
    display: flex;
}

.result-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 24px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2), 0 0 60px rgba(99, 102, 241, 0.08);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }

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

.result-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: rgba(241, 245, 249, 0.8);
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1;
}

.result-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.result-modal h3 {
    color: #4f46e5;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-modal h3 i {
    color: #10b981;
}

.result-modal-img {
    text-align: center;
    margin-bottom: 1.25rem;
}

.result-modal-img img {
    max-width: 100%;
    max-height: 420px;
    border-radius: 14px;
    border: 2px solid rgba(99, 102, 241, 0.15);
    object-fit: contain;
    background: #f8fafc;
}

.result-modal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.result-modal-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Tool Sections */
.tool-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.tool-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tool-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tool-section-header i {
    color: #6366f1;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.tool-section-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.tool-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.tool-row.triple {
    grid-template-columns: 1fr 1fr 1fr;
}

.tool-field label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.35rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-field input,
.tool-field select,
.tool-field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.tool-field input:focus,
.tool-field select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.tool-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
}

.tool-field select option {
    background: #fff;
    color: #1e293b;
}

.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preset-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.6);
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.preset-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
}

/* Range slider */
.range-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.range-wrapper input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(99, 102, 241, 0.2);
    outline: none;
    border: none;
    padding: 0;
}

.range-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.range-value {
    min-width: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #4f46e5;
    font-weight: 600;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
}

.checkbox-field span {
    font-size: 0.9rem;
    color: #475569;
}

.color-swatches {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.color-swatch.c-none {
    background: linear-gradient(135deg, #334155, #475569);
}

.color-swatch.c-white {
    background: #fff;
}

.color-swatch.c-white.active::after {
    color: #333;
    text-shadow: none;
}

.color-swatch.c-blue {
    background: #0070c0;
}

.color-swatch.c-light-blue {
    background: #add8e6;
}

.color-swatch.c-red {
    background: #dc3545;
}

.color-swatch.c-grey {
    background: #c8c8c8;
}

/* Process / Download buttons */
.action-btn {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: all 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

/* Processing */
.processing-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.processing-overlay.show {
    display: flex;
}

.processing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.processing-card h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.processing-card p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #1e293b;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.toast.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #6366f1;
}

/* Date row */
.date-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.date-input-row .tool-field {
    flex: 1;
}

.date-input-row .tool-field:first-child {
    flex: 0 0 120px;
}

@media (max-width: 900px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        position: static;
    }

    .convert-nav {
        width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
        padding: 0.75rem 1rem;
        border-radius: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    .convert-nav.menu-open .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .tool-row {
        grid-template-columns: 1fr;
    }

    .tool-row.triple {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================
   Combine Files Tool Page
   (combine.html)
   ========================================= */

.combine-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.mode-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.mode-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.mode-card.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.mode-card i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.mode-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.mode-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dropzone {
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    min-height: 150px;
}

.dropzone.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.files-list {
    margin-top: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: grab;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 1);
}

.file-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.file-item .drag-handle {
    color: var(--text-muted);
    cursor: grab;
}

.file-item .file-icon {
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.file-item .file-info {
    flex: 1;
    min-width: 0;
}

.file-item .file-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-item .remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.file-item .remove-btn:hover {
    opacity: 1;
}

.options-panel {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.options-panel h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.option-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.option-item label {
    font-size: 0.9rem;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--primary-color);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

.size-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.size-option {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.5);
}

.size-option:hover {
    background: rgba(255, 255, 255, 0.8);
}

.size-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.progress-section {
    margin-top: 1.5rem;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.status-message {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-section {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
}

.result-section i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.result-section h3 {
    margin: 0 0 0.5rem 0;
}

.result-section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .mode-selector {
        grid-template-columns: 1fr;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Also Try ??? Internal Cross-Link Section
   (shared across all tool pages)
   ========================================= */

.also-try-section {
    margin: 2.5rem auto 1rem;
    max-width: 800px;
    text-align: center;
    padding: 0 1rem;
}

.also-try-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.also-try-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.also-try-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.06);
    color: #a5b4fc;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.22s ease;
}

.also-try-card:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: #6366f1;
    color: #c7d2fe;
    transform: translateY(-2px);
    opacity: 1;
}

.also-try-card i {
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .also-try-grid {
        flex-direction: column;
        align-items: center;
    }

    .also-try-card {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
}