:root {
    /* Color Palette - Vercel: True Black, White, Blue */
    --primary: #ffffff;
    --primary-hover: #ededed;
    --primary-rgb: 255, 255, 255;
    --secondary: #111111;
    --bg-dark: #000000;
    --bg-darker: #000000;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ededed;
    --text-muted: #888888;
    --accent: #ffffff;
    --accent-blue: #ffffff;
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

img, svg, video, canvas, .step-visual, .step-visual img, .card-visual, .card-visual img, .flag-icon {
    max-width: 100%;
    filter: grayscale(100%) !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 80px;
    /* Space for fixed navbar */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Background Blobs */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
}

.blob-1 {
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation: move 20s infinite alternate;
}

/* State-based UI Toggling */
body.in-dashboard .container,
.dashboard-wide-container {
    max-width: 96vw !important;
    width: 96% !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

.dashboard-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.in-dashboard #homepage-content,
body.in-dashboard #gdpr-section,
body.in-dashboard #use-cases-section {
    display: none !important;
}

body.in-dashboard #dashboard {
    display: block !important;
}

body.in-dashboard .hero-actions {
    display: none !important;
}

body.user-logged-in #nav-dashboard,
body.user-logged-in #user-menu,
body.in-dashboard #nav-dashboard,
body.in-dashboard #user-menu {
    display: flex !important; /* Force visibility on all pages when logged in */
}

body.user-logged-in #login-btn,
body.user-logged-in #signup-btn,
body.in-dashboard #login-btn,
body.in-dashboard #signup-btn {
    display: none !important;
}

.blob-2 {
    background: #ffffff;
    bottom: -10%;
    right: -10%;
    animation: move 25s infinite alternate-reverse;
}

.blob-3 {
    background: var(--accent);
    top: 40%;
    left: 50%;
    width: 200px;
    height: 200px;
    animation: move 15s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.1);
    }
}

/* Nav */
nav {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap between image and text */
}

.logo-text {
    color: white;
}

.logo-text span {
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Removed legacy .logo span rule */

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

a {
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Custom Language Switcher */
.lang-switcher-container {
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.lang-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Increased space */
    background: var(--glass);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 150px;
    /* Width check */
    user-select: none;
}

.lang-selected:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.lang-selected img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lang-selected span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    flex-grow: 1;
}

.lang-selected i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.lang-switcher-container.open .lang-selected i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 170px;
    display: none;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.lang-switcher-container.open .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: all 0.2s;
    cursor: pointer;
    color: var(--text-main);
}

.lang-option:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.lang-option img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-option span {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-upgrade-btn {
    background: var(--primary);
    color: #000000 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-upgrade-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #000000;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Auth Modal & Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

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

.auth-toggle {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-toggle span {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

#user-menu {
    display: none;
    position: relative;
    align-items: center;
}

.profile-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-icon-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
}

.profile-dropdown,
#user-profile-dropdown,
.profile-dropdown:not(.show) {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    display: none !important;
    visibility: hidden !important;
    flex-direction: column;
    gap: 4px;
    z-index: 1100;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-dropdown.show,
#user-profile-dropdown.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.profile-dropdown .dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-bottom: 4px;
}

.profile-dropdown .dropdown-email {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
    word-break: break-all;
}

.profile-dropdown .dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 4px 0;
}

.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-muted);
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.profile-dropdown .dropdown-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.profile-dropdown .dropdown-item-logout {
    color: #d4d4d8;
}

.profile-dropdown .dropdown-item-logout:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fca5a5;
}

.error-message {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
    padding: 0.8rem;
    border-radius: 8px;
    display: none;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.dashboard-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.link-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.2s;
}

.link-item:hover,
.link-item.active {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
}

.link-item-code {
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
}

.link-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.chart-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    height: 350px;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.action-btns {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.delete-btn:hover {
    color: #e4e4e7;
}

.chart-mini {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    height: 300px;
}

.short-code-preview {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease-out;
}

/* Advanced Options */
.advanced-toggle {
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    user-select: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.advanced-toggle.highlight-advanced {
    font-weight: 800;
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.1);
}

.advanced-toggle:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.advanced-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.4s ease-out;
}

.advanced-options-grid input,
.advanced-options-grid select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    width: 100%;
}

.advanced-options-grid input:focus,
.advanced-options-grid select:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
    .advanced-options-grid {
        grid-template-columns: 1fr;
    }
}

/* Usage Progress Bars */
.usage-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 1rem 0 0.5rem;
    overflow: hidden;
}

.usage-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.5s ease-out;
}

.usage-bar.warning {
    background: #ffffff;
}

.usage-bar.danger {
    background: #e4e4e7;
}

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

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Pricing Toggle */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    user-select: none;
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    cursor: pointer;
}

.toggle-label.active,
.toggle-label:hover {
    color: #ffffff;
    font-weight: 700;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.4);
}

.pricing-toggle-container.annual .toggle-switch::after {
    left: 30px;
}

.pricing-toggle-container.annual .toggle-switch {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.save-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 0.5rem;
}

.pricing-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
    border-radius: 24px;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.popular-tag {
    position: absolute;
    top: -15px;
    background: var(--primary);
    color: #000000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem;
    line-height: 1.1;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.seat-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.seat-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.seat-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.seat-count {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.seat-label {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-left: 0.2rem;
    color: var(--text-muted);
}

.seat-total {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.features-list {
    list-style: none;
    width: 100%;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.features-list li i {
    color: var(--primary);
    margin-right: 10px;
}

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

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

/* Form Builder Styles */
.form-builder-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.builder-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    align-items: end;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

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

.builder-field-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.builder-field-group input,
.builder-field-group select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: white;
    outline: none;
}

.builder-field-group input:focus,
.builder-field-group select:focus {
    border-color: var(--primary);
}

.btn-remove {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.builder-controls {
    display: flex;
    justify-content: flex-start;
}

.btn-add-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px dashed var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
    font-weight: 600;
}

/* Card Glass effect for Admin sections */
.card-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card-glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-add-field:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
    max-width: 900px;
    margin: 3rem auto 4rem;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(1.4rem, 2.2vw, 2.15rem);
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -0.8px;
    text-align: center;
}

.hero h1 span {
    display: block;
    text-align: center;
}

.hero-actions {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Tour Styles */
.tour-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s;
}

.tour-popover {
    position: absolute;
    width: 320px;
    padding: 1.5rem;
    border-radius: 16px;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tour-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0;
}

.tour-progress {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tour-popover p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-nav {
    display: flex;
    gap: 0.5rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

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

.tour-highlight {
    position: relative;
    z-index: 9999 !important;
    pointer-events: none; /* Prevent interaction during tour */
    box-shadow: 0 0 0 4px var(--primary), 0 0 20px rgba(var(--primary-rgb), 0.5) !important;
}

.tour-pulse {
    animation: tourPulse 1.5s ease-out;
}

@keyframes tourPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}


.hero h1 span {
    color: inherit;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto 2.2rem;
    line-height: 1.6;
}

.hero-tab-btn {
    transition: all 0.3s ease;
}

.hero-tab-btn:hover {
    color: #ffffff !important;
}

/* Shorten Input */
.shorten-container {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.input-group {
    display: flex;
    gap: 1rem;
}

.input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
}

.options-row {
    margin-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Checkbox Style */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features Section & Carousel */
.features-section {
    max-width: 1250px;
    margin: 0 auto 6rem;
    padding: 0 1.5rem;
}

.features-header {
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.features-grid .feature-card,
.feature-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    height: 100% !important;
    flex: none !important;
    background: var(--glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    padding: 2rem 1.75rem;
    border-radius: 24px;
    text-align: left;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(var(--primary-rgb), 0.5);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.15);
}

.feature-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.feature-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important;
    transition: all 0.3s ease;
}

.feature-card:hover .icon {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.feature-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Carousel Buttons & Dots */
.carousel-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.carousel-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.carousel-dots-container {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

/* Static multi-row grid layout (use-cases page): show all cards at once instead of a carousel */
body.no-carousel .features-carousel-wrapper {
    display: block;
}

body.no-carousel .features-carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    overflow: visible;
    padding: 1rem 0 0.5rem;
    scroll-behavior: auto;
}

body.no-carousel .features-carousel-track .feature-card {
    min-width: 0;
    flex: 1;
}

body.no-carousel .carousel-nav-btn,
body.no-carousel .carousel-dots-container {
    display: none;
}

.feature-card.coming-soon {
    position: relative;
    opacity: 0.8;
    cursor: default;
}

.feature-card.coming-soon:hover {
    transform: none;
    background: var(--glass);
    border-color: var(--glass-border);
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #ededed 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active,
.modal.show {
    display: flex !important;
}

.modal-content.glass {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    /* Increased from 500px */
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.large-textarea {
    width: 100%;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 1.5rem;
    outline: none;
}

.large-textarea:focus {
    border-color: var(--primary);
}

#modal-body h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

#modal-body input,
#modal-body select,
#modal-body textarea {
    width: 100%;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    outline: none;
    font-size: 1rem;
}

#modal-body input:focus,
#modal-body select:focus,
#modal-body textarea:focus {
    border-color: var(--primary);
}

#modal-body input[type="checkbox"] {
    width: auto;
    margin-bottom: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: none;
    height: auto;
}

/* Password Toggle Styles */
.auth-input-group {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
    z-index: 10;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary);
}

.auth-input-group label ~ .password-toggle {
    top: calc(50% + 0.8rem); /* Adjust for label height */
}

.auth-input-group label + input {
    padding-right: 3rem !important;
}


.close-modal,
.close-modal-btn,
.close-auth {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    background: transparent;
    border: none;
    line-height: 1;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    z-index: 10;
}
.close-modal:hover,
.close-modal-btn:hover,
.close-auth:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Single Source of Truth Global Footer */
footer#site-footer,
footer.global-footer,
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3.5rem 1.5rem 3rem;
    margin-top: 5rem;
    text-align: center;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    width: 100%;
    flex-shrink: 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 1.75rem;
    display: flex;
    gap: 1.75rem;
    justify-content: center;
    font-size: 0.95rem;
    flex-wrap: wrap;
    font-weight: 500;
}

.footer-links a {
    color: #a1a1aa !important;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-links a:hover,
.footer-links a.active {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

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

    .input-group {
        flex-direction: column;
    }
}

/* Result Card */
.result-card {
    text-align: center;
}

.result-card .btn-primary {
    margin-top: 2.5rem;
}

#qr-container img {
    max-width: 200px;
    margin: 2rem 0;
    border-radius: 12px;
    background: white;
    padding: 10px;
}

.copy-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

#copy-btn,
.copy-icon-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

#copy-btn:hover,
.copy-icon-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    transform: scale(1.1);
}

.copy-success {
    color: var(--accent) !important;
    animation: success-bounce 0.4s ease;
}

@keyframes success-bounce {

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

    50% {
        transform: scale(1.3);
    }
}

.short-code-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

/* GDPR / EU Trust Section */
.gdpr-trust-section {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.gdpr-trust-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.gdpr-trust-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.gdpr-trust-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gdpr-flag {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.gdpr-trust-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.gdpr-trust-header p {
    color: #ffffff;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.gdpr-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.gdpr-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    cursor: default;
}

.gdpr-badge:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.07);
}

.gdpr-badge-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.gdpr-badge-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.4rem;
}

.gdpr-badge-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* -- UX Polish & Trust Signals -- */
.trust-signals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.trust-tag {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.trust-tag i {
    color: var(--accent);
}

.trust-tag.divider {
    height: 12px;
    width: 1px;
    background: var(--glass-border);
}

/* Recent Links */
.recent-link-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.4s ease-out backwards;
}

.recent-link-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
    border-color: var(--primary);
}

.recent-link-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: hidden;
}

.recent-link-short {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.recent-link-original {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-link-copy {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.recent-link-copy:hover {
    background: var(--primary);
    border-color: var(--primary);
}

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

/* Loading States */
.btn-loading {
    position: relative !important;
    pointer-events: none !important;
    opacity: 0.8;
}

.btn-loading * {
    visibility: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    visibility: visible !important;
}

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

/* Enhanced Copy Animation */
.copy-success {
    background: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
    transform: scale(1.05);
}

.copy-success i {
    animation: bounce 0.4s ease-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Input Focus Polish */
#long-url:focus {
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary);
}

@media (max-width: 640px) {
    .trust-signals {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    .trust-tag.divider {
        display: none;
    }
}

/* ==========================================================================
   PDF Tools Suite Styles
   ========================================================================== */
.tools-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tools-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tools-page-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.tools-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.tools-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0.4rem auto 0;
    border-radius: 2px;
}

.tools-page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tools Controls & Search Bar */
.tools-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.tools-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 550px;
}

.tools-search-wrapper .search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.tools-search-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    background: rgba(18, 21, 24, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.tools-search-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.tools-count-tag {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}

/* Category Navigation Tabs */
.tools-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.tool-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-cat-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.tool-cat-tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* PDF Tools Grid & Cards */
.pdf-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

.pdf-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.pdf-tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.tool-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-card-badge.popular {
    background: rgba(255, 255, 255, 0.15);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tool-card-badge.ai {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tool-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important;
    transition: all 0.3s ease;
}

.pdf-tool-card:hover .tool-card-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.tool-card-content {
    flex: 1;
}

.tool-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.tool-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.tool-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-card-action i {
    transition: transform 0.2s ease;
}

.pdf-tool-card:hover .tool-card-action i {
    transform: translateX(4px);
}

/* Tool Execution Modal & Dropzone */
.modal-tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-tool-header h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.modal-tool-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tool-dropzone {
    border: 2px dashed rgba(var(--primary-rgb), 0.3);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.tool-dropzone:hover, .tool-dropzone.drag-over {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.tool-dropzone .drop-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.tool-dropzone .drop-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.tool-dropzone .drop-text span {
    color: var(--primary);
    text-decoration: underline;
}

.tool-dropzone .drop-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tool-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 180px;
    overflow-y: auto;
}

.tool-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.tool-file-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.tool-file-item .file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-file-item .file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

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

.remove-file-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.2s ease;
}

.remove-file-btn:hover {
    color: #e4e4e7;
}

.tool-option-group {
    margin-bottom: 1rem;
}

.tool-option-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.tool-option-group .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(18, 21, 24, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
}

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

.tool-option-group .radio-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.status-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.tool-result-container {
    text-align: center;
    padding: 1.5rem 0;
}

.success-icon {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.success-message h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.success-message p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.tool-share-result {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.share-result-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.share-link-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
}

.share-link-row input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    text-align: center;
}

.share-link-row .btn-primary {
    white-space: nowrap;
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
}

.no-tools-message {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 20px;
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-close-bottom-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-bottom-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #e4e4e7;
}

/* Suite Section Headers */
.suite-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.suite-section-title i {
    font-size: 1.6rem;
}

.suite-section-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.suite-section-count {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

/* Suite Tab Switcher (Side-by-side Top Navigation) */
.suite-tab-switcher {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.75rem auto;
    padding: 0.6rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    max-width: 980px;
    flex-wrap: wrap;
}

.suite-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.suite-tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.suite-tab-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.suite-count-badge {
    font-size: 0.8rem;
    padding: 0.15rem 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Category & Filter Tab Buttons */
.tab-btn {
    transition: all 0.25s ease;
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.tab-btn.active {
    background: var(--primary) !important;
    color: #000000 !important;
}

/* Modal & Confirmation Window Normalization */
.modal .btn-primary,
.modal-content .btn-primary,
.modal-actions .btn-primary {
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.modal .btn-primary:hover,
.modal-content .btn-primary:hover,
.modal-actions .btn-primary:hover {
    background: #ededed !important;
    color: #000000 !important;
    transform: none !important;
}

.modal .btn-secondary,
.modal-content .btn-secondary,
.modal-actions .btn-secondary,
.modal-close-bottom-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    font-weight: 600 !important;
}

.modal .btn-secondary:hover,
.modal-content .btn-secondary:hover,
.modal-actions .btn-secondary:hover,
.modal-close-bottom-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* 4-Step Workflow Grid (Balanced 1400px Desktop Container) */
.steps-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    text-align: left;
}

.step-flow-card {
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.step-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.step-flow-img-box {
    padding: 0;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    height: 160px;
    max-height: 160px;
    flex-shrink: 0;
    width: 100%;
}

.step-flow-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 160px !important;
    max-height: 160px !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.step-flow-body {
    padding: 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991px) {
    .steps-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 580px) {
    .steps-grid-container {
        grid-template-columns: 1fr;
    }
}

.sidebar-tab {
    font-size: 1.15rem;
    transition: color 0.2s;
}

/* SpurShare Custom Styles */
.status-pulse-yellow {
    animation: status-pulse-y 1.5s infinite ease-in-out;
}
@keyframes status-pulse-y {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 8px #fbbf24; }
    100% { transform: scale(0.95); opacity: 0.6; }
}

.status-pulse-green {
    animation: status-pulse-g 1.5s infinite ease-in-out;
}
@keyframes status-pulse-g {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 8px #10b981; }
    100% { transform: scale(0.95); opacity: 0.6; }
}

.dropzone-disabled {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08) !important;
    cursor: not-allowed;
    opacity: 0.5;
}

.dropzone-active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary) !important;
    cursor: pointer;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.dropzone-active:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Navigation Dropdowns */
.nav-dropdown-container {
    position: relative;
    display: inline-block;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-dropdown-trigger:hover, .nav-dropdown-container:hover .nav-dropdown-trigger {
    color: white;
}

.nav-dropdown-menu {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 0;
    transform: translateY(8px);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.18s; /* Grace period when mouse leaves */
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.nav-dropdown-menu a {
    display: block !important;
    padding: 0.6rem 1.2rem !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    border-bottom: none !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary) !important;
    padding-left: 1.5rem !important;
}

.nav-dropdown-container:hover .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s; /* Show instantly on hover */
}

/* ==========================================================================
   DOCUMENT LIFECYCLE PLATFORM STYLES (Phases 1, 2, 3)
   ========================================================================== */

/* Dashboard Layout Grid - Generous Width for Document Lifecycle */
.standard-dashboard-view,
#standard-dashboard-view {
    display: grid;
    grid-template-columns: minmax(420px, 480px) 1fr;
    gap: 2.5rem;
    align-items: start;
    width: 100%;
}

@media (min-width: 1800px) {
    .standard-dashboard-view,
    #standard-dashboard-view {
        grid-template-columns: minmax(480px, 540px) 1fr;
        gap: 3rem;
    }
}

@media (max-width: 1100px) {
    .standard-dashboard-view,
    #standard-dashboard-view {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

#standard-dashboard-view.view-hidden,
.standard-dashboard-view.view-hidden,
#standard-dashboard-view[style*="display: none"] {
    display: none !important;
}

/* Pipeline Stage Filter Tabs - Sleek Sub-Navigation Styled Consistently with Main Tabs */
.lifecycle-pipeline-tabs {
    display: flex !important;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    width: 100%;
    box-sizing: border-box;
}

.lifecycle-pipeline-tabs.pipeline-hidden {
    display: none !important;
}

.pipeline-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

.lifecycle-filter-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 8px !important;
    color: var(--text-muted) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: color 0.2s, background-color 0.2s !important;
    font-family: inherit !important;
    box-shadow: none !important;
    transform: none !important;
}

.lifecycle-filter-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
    transform: none !important;
}

.lifecycle-filter-tab.active {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.08) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.lifecycle-filter-tab i {
    font-size: 1.05rem;
    margin-right: 0.25rem;
}

.pipeline-tab-title {
    letter-spacing: -0.01em;
}

.lifecycle-filter-tab .count-pill {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.35rem;
    transition: all 0.2s ease;
}

.lifecycle-filter-tab:hover .count-pill {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.15);
}

.lifecycle-filter-tab.active .count-pill {
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35) !important;
}

@media (max-width: 1024px) {
    .lifecycle-pipeline-tabs:not(.pipeline-hidden) {
        display: flex !important;
        overflow-x: auto;
        gap: 0.75rem !important;
        padding-bottom: 0.5rem !important;
        scrollbar-width: thin;
    }
    .lifecycle-filter-tab {
        flex: 0 0 auto !important;
        font-size: 1rem !important;
    }
}


/* Document Lifecycle Stage Badges */
.badge-lifecycle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.badge-lifecycle-draft {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.badge-lifecycle-signing {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.12);
}

.badge-lifecycle-tracking {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.12);
}

.badge-lifecycle-completed {
    background: rgba(52, 211, 153, 0.14);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.12);
}

.badge-lifecycle-archived {
    background: rgba(113, 113, 122, 0.14);
    color: #a1a1aa;
    border: 1px solid rgba(113, 113, 122, 0.25);
}

/* Detail View Switcher Tabs */
.detail-view-tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.45rem 0.95rem;
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-view-tab:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.detail-view-tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Universal Document Lifecycle Hub */
.lifecycle-hub-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.lifecycle-hub-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.lifecycle-hub-meta {
    font-size: 0.8rem;
    color: #a1a1aa;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lifecycle-stage-select {
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.lifecycle-stage-select:hover, .lifecycle-stage-select:focus {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.6);
}

/* Visual Stepper / Progress Bar */
.lifecycle-stepper-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.2rem 1rem;
    margin-bottom: 1.5rem;
}

.lifecycle-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.lifecycle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    flex: 1;
}

.lifecycle-step-node {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(18, 21, 24, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #71717a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lifecycle-step.completed .lifecycle-step-node {
    background: rgba(52, 211, 153, 0.15);
    border-color: #34d399;
    color: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.25);
}

.lifecycle-step.active .lifecycle-step-node {
    background: #ffffff;
    border-color: #ffffff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.lifecycle-step-label {
    font-size: 0.72rem;
    color: #71717a;
    font-weight: 500;
    text-align: center;
    transition: color 0.2s ease;
}

.lifecycle-step.active .lifecycle-step-label,
.lifecycle-step.completed .lifecycle-step-label {
    color: #ffffff;
    font-weight: 600;
}

.lifecycle-stepper-line {
    position: absolute;
    top: 19px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.lifecycle-stepper-progress {
    height: 100%;
    background: linear-gradient(90deg, #34d399, #38bdf8, #ffffff);
    transition: width 0.4s ease;
}

/* Lifecycle Stage Cards */
.lifecycle-stage-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.4rem;
    margin-bottom: 1.25rem;
    transition: all 0.25s ease;
}

.lifecycle-stage-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.035);
}

.lifecycle-stage-card.highlighted {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lifecycle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.lifecycle-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.lifecycle-card-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-weight: 600;
}

.lifecycle-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.lifecycle-action-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lifecycle-action-tile:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lifecycle-action-tile i {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.lifecycle-action-tile strong {
    font-size: 0.86rem;
    font-weight: 600;
    color: #ffffff;
}

.lifecycle-action-tile span {
    font-size: 0.74rem;
    color: #a1a1aa;
    line-height: 1.3;
}

/* Security Gating Switches */
.docsend-switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.docsend-switch-row:last-child {
    border-bottom: none;
}

.docsend-switch-info strong {
    display: block;
    font-size: 0.86rem;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.docsend-switch-info span {
    font-size: 0.74rem;
    color: #a1a1aa;
}

/* Certificate Download Call-To-Action */
.certificate-cta-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(52, 211, 153, 0.08) 100%);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.certificate-cta-info {
    flex: 1;
    min-width: 240px;
}

.certificate-cta-info h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certificate-cta-info p {
    color: #a1a1aa;
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.4;
}

.btn-certificate-download {
    background: #34d399;
    color: #064e3b;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.3);
}

.btn-certificate-download:hover {
    background: #6ee7b7;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 211, 153, 0.4);
}

/* ==========================================================================
   Paperspur Tools Suite Expansion: Text Diff, SEO & Deal Calculators
   ========================================================================== */

/* Diff Viewer & Expanded Modals */
.modal-expand-btn {
    position: absolute;
    top: 1.5rem;
    right: 4rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
}
.modal-expand-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-content.modal-fullscreen {
    width: 98vw !important;
    max-width: 98vw !important;
    height: 96vh !important;
    max-height: 96vh !important;
    border-radius: 18px !important;
    padding: 1.5rem 2rem !important;
    display: flex !important;
    flex-direction: column !important;
}
.modal-content.modal-fullscreen .diff-pane {
    max-height: calc(96vh - 360px) !important;
    min-height: 480px !important;
}
.modal-content.modal-fullscreen #diff-original,
.modal-content.modal-fullscreen #diff-revised {
    min-height: 340px !important;
}

.diff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
    text-align: left;
}
@media (max-width: 768px) {
    .diff-container {
        grid-template-columns: 1fr;
    }
}
.diff-pane {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace, sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #f8fafc;
    text-align: left;
    min-height: 380px;
    max-height: 520px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
    scroll-behavior: smooth;
}
.diff-pane.font-large {
    font-size: 1.1rem;
    line-height: 1.9;
}
.diff-pane-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.diff-del {
    background: rgba(239, 68, 68, 0.28);
    color: #fca5a5;
    text-decoration: line-through;
    padding: 2px 6px;
    border-radius: 4px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.45);
}
.diff-ins {
    background: rgba(34, 197, 94, 0.28);
    color: #86efac;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.45);
}
.diff-metrics-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 1rem;
}
.diff-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}
.diff-badge-ins { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.diff-badge-del { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.diff-badge-sim { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }

/* Calculator UI */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
    text-align: left;
}
.calc-input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
}
.calc-input-group input,
.calc-input-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.calc-input-group input:focus,
.calc-input-group select:focus {
    border-color: var(--primary);
}
.calc-kpi-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin: 1.2rem 0;
}
.calc-kpi-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.85rem;
    text-align: center;
}
.calc-kpi-card.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.18));
    border-color: rgba(168, 85, 247, 0.4);
}
.calc-kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.calc-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}
.calc-kpi-card.highlight .calc-kpi-value {
    color: #38bdf8;
}

/* Social Previews (Open Graph & Twitter) */
.social-preview-wrap {
    margin-top: 1rem;
    text-align: left;
}
.og-card-preview {
    background: #242526;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.og-card-image {
    width: 100%;
    height: 220px;
    background: #18191a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676b;
}
.og-card-body {
    padding: 0.85rem 1rem;
    background: #242526;
}
.og-card-domain {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #b0b3b8;
    letter-spacing: 0.04em;
}
.og-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #e4e6eb;
    margin: 0.25rem 0;
    line-height: 1.3;
}
.og-card-desc {
    font-size: 0.82rem;
    color: #b0b3b8;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twitter-card-preview {
    background: #000000;
    border: 1px solid #2f3336;
    border-radius: 16px;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.twitter-card-image {
    width: 100%;
    height: 220px;
    background: #16181c;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71767b;
}
.twitter-card-body {
    padding: 0.75rem 1rem;
    background: #000000;
}
.twitter-card-domain {
    font-size: 0.75rem;
    color: #71767b;
    display: flex;
    align-items: center;
    gap: 4px;
}
.twitter-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e7e9ea;
    margin: 0.2rem 0;
    line-height: 1.3;
}
.twitter-card-desc {
    font-size: 0.82rem;
    color: #71767b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Markdown Split Editor */
.markdown-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
    margin-top: 0.75rem;
}
@media (max-width: 680px) {
    .markdown-editor-grid {
        grid-template-columns: 1fr;
    }
}
.markdown-preview-pane {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    max-height: 340px;
    overflow-y: auto;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
}
.markdown-preview-pane h1,
.markdown-preview-pane h2,
.markdown-preview-pane h3 {
    color: #ffffff;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
}
.markdown-preview-pane code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
}
.markdown-preview-pane pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem;
    border-radius: 6px;
    overflow-x: auto;
}
.markdown-preview-pane blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 0.75rem;
    margin-left: 0;
    color: #94a3b8;
    font-style: italic;
}
.markdown-preview-pane table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
}
.markdown-preview-pane th,
.markdown-preview-pane td {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 10px;
    font-size: 0.82rem;
}
.markdown-preview-pane th {
    background: rgba(255, 255, 255, 0.05);
}

