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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--aicp-text-color, #334155);
    background: var(--aicp-background-color, #ffffff);
}

/* ========================================
   CSS Variables - Customizable via Theme Customizer
   ======================================== */

:root {
    --aicp-primary-color: #2563eb;
    --aicp-primary-hover: #1d4ed8;
    --aicp-secondary-color: #64748b;
    --aicp-background-color: #ffffff;
    --aicp-text-color: #334155;
    --aicp-heading-color: #1e293b;
    --aicp-border-color: #e2e8f0;
    --aicp-success-color: #10b981;
    --aicp-warning-color: #f59e0b;
    --aicp-danger-color: #dc2626;
    --aicp-container-width: 1280px;
    --aicp-header-height: 80px;
    --aicp-border-radius: 8px;
    --aicp-border-radius-lg: 16px;
    --aicp-transition: all 0.2s ease;
}

/* ========================================
   Layout and Container
   ======================================== */

.container {
    max-width: var(--aicp-container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.wp-block-group.container {
    max-width: var(--aicp-container-width);
}

/* ========================================
   Header Styles
   ======================================== */

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--aicp-border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--aicp-header-height);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo-icon {
    background: var(--aicp-primary-color);
    padding: 8px;
    border-radius: var(--aicp-border-radius);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--aicp-heading-color);
    margin: 0;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    color: var(--aicp-secondary-color);
    font-size: 0.875rem;
    margin: 0;
    display: none;
}

/* ========================================
   Navigation Styles
   ======================================== */

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.primary-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.primary-navigation li {
    margin: 0;
}

.primary-navigation a {
    color: var(--aicp-secondary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--aicp-transition);
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
    color: var(--aicp-heading-color);
}

/* Sub-menu dropdown */
.primary-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: var(--aicp-border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--aicp-transition);
    padding: 0.5rem 0;
}

.primary-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-navigation .sub-menu li {
    display: block;
}

.primary-navigation .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
}

/* ========================================
   Button Styles
   ======================================== */

.btn,
.wp-block-button__link {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--aicp-border-radius);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--aicp-transition);
    text-decoration: none;
}

.btn-primary,
.wp-block-button__link {
    background: var(--aicp-primary-color);
    color: white;
}

.btn-primary:hover,
.wp-block-button__link:hover {
    background: var(--aicp-primary-hover);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* ========================================
   Mobile Menu
   ======================================== */

.mobile-menu-toggle {
    display: none; /* Hidden by default (desktop) */
    background: none;
    border: none;
    color: var(--aicp-secondary-color);
    cursor: pointer;
    padding: 8px;
}

.mobile-navigation {
    display: none;
    background: white;
    border-top: 1px solid var(--aicp-border-color);
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mobile-navigation.active {
    display: block;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation li {
    margin-bottom: 0.5rem;
}

.mobile-navigation a {
    display: block;
    padding: 0.5rem;
    color: var(--aicp-secondary-color);
    text-decoration: none;
    font-weight: 500;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
    padding: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-content {
    text-align: center;
    max-width: 1024px;
    margin: 0 auto;
    padding: clamp(0.75rem, 1.5vh, 1.5rem) 1rem clamp(0.5rem, 1vh, 1rem);
    width: 100%;
}

.hero-title {
    font-size: clamp(1.5rem, calc(1.25rem + 2vw), 2.75rem);
    font-weight: bold;
    color: var(--aicp-heading-color);
    margin-bottom: clamp(0.5rem, 1vh, 0.875rem);
    line-height: 1.2;
}

.hero-highlight {
    color: var(--aicp-primary-color);
    font-size: inherit;
}

.hero-subtitle {
    font-size: clamp(0.875rem, calc(0.85rem + 0.5vw), 1.125rem);
    color: var(--aicp-secondary-color);
    margin-bottom: clamp(0.25rem, 0.5vh, 0.5rem);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Mobile-specific Hero adjustments */
@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding: 1.25rem 0 0.75rem;
        display: block;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .hero-content {
        padding: 0.5rem 1rem 0.25rem;
    }
}

/* Tablet Hero adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content {
        padding: 1rem 1rem 0.75rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Desktop Hero adjustments */
@media (min-width: 1025px) {
    .hero-section {
        padding: 1.5rem 0 1rem;
    }

    .hero-content {
        padding: 1.25rem 1rem 0.75rem;
    }
}

/* Large screens - even more compact */
@media (min-width: 1441px) {
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.625rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }
}

/* ========================================
   Stats Grid
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.75rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.stat-number {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: bold;
    color: var(--aicp-primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--aicp-secondary-color);
    font-weight: 500;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

/* ========================================
   Tool Card (for shortcode area)
   ======================================== */

.tool-container {
    max-width: min(90vw, 1024px);
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.tool-card {
    background: white;
    border-radius: clamp(16px, 2vw, 24px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--aicp-border-color);
    padding: clamp(1rem, 2vw, 1.5rem);
}

/* Mobile-specific Tool Card adjustments */
@media (max-width: 767px) {
    .tool-container {
        margin-top: 0;
    }
}

.ai-tool-shortcode-wrapper {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fafc;
    border: 2px dashed var(--aicp-border-color);
    border-radius: var(--aicp-border-radius-lg);
    text-align: center;
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--aicp-heading-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--aicp-secondary-color);
    max-width: 768px;
    margin: 0 auto;
}

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

.feature-card {
    background: #f8fafc;
    border-radius: var(--aicp-border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--aicp-transition);
}

.feature-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background: #dbeafe;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--aicp-primary-color);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--aicp-heading-color);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--aicp-secondary-color);
    line-height: 1.6;
}

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.step-card {
    background: white;
    border-radius: var(--aicp-border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: var(--aicp-transition);
}

.step-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: var(--aicp-primary-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.step-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--aicp-heading-color);
    margin: 1rem 0;
}

.step-description {
    color: var(--aicp-secondary-color);
    line-height: 1.6;
}

/* ========================================
   Pricing Section
   ======================================== */

.pricing-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--aicp-border-radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    border: 1px solid var(--aicp-border-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--aicp-primary-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--aicp-primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--aicp-heading-color);
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--aicp-heading-color);
    margin-bottom: 1.5rem;
}

.plan-period {
    font-size: 1.125rem;
    color: var(--aicp-secondary-color);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    padding: 0;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.check-icon {
    color: var(--aicp-success-color);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Note: Sidebar widgets are displayed in the footer area to match the design mockup */

/* ========================================
   Results Section (for demo/plugin output)
   ======================================== */

.results-section {
    padding: 3rem 0;
    background: white;
}

.result-card {
    background: white;
    border-radius: var(--aicp-border-radius-lg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--aicp-border-color);
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.percentage-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--aicp-danger-color);
    margin-bottom: 0.5rem;
}

.percentage-label {
    font-size: 1.25rem;
    font-weight: 500;
    color: #475569;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--aicp-border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    transition: width 1s ease-out;
}

.progress-ai {
    background: var(--aicp-danger-color);
}

.progress-human {
    background: var(--aicp-success-color);
}

/* ========================================
   Footer Styles
   ======================================== */

.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 3rem 0;
    margin-top: auto;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }

    .footer-column-1 {
        grid-column: span 1;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-column {
    color: #94a3b8;
}

/* Footer Branding */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

/* Footer logo styles moved to later in file for proper structure */

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.footer-description {
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Footer Section Styling */
.footer-section {
    color: #94a3b8;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    font-size: 1rem;
}

.footer-section h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.footer-links ul,
.footer-links-column-1,
.footer-links-column-2,
.footer-links-single {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-links-column-1 li,
.footer-links-column-2 li,
.footer-links-single li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-links-single a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.875rem;
}

.footer-links a:hover,
.footer-links-single a:hover {
    color: white;
}

/* Footer Widget Styling */
.footer-column .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.footer-column .widget-title,
.footer-column .widget .wp-block-heading {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

/* Widget Lists in Two Columns */
.footer-column-2 .widget ul,
.footer-column-3 .widget ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column .widget li {
    margin-bottom: 0.75rem;
    padding: 0;
    border: none;
}

.footer-column .widget a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.875rem;
}

.footer-column .widget a:hover {
    color: white;
}

/* Specific styling for Recent Posts/Comments */
.footer-column .wp-block-latest-posts__post-title,
.footer-column .wp-block-latest-comments__comment-author {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-column .wp-block-latest-posts__post-date,
.footer-column .wp-block-latest-comments__comment-link {
    display: none; /* Hide dates in footer for cleaner look */
}

.footer-column .wp-block-latest-comments__comment-meta {
    font-size: 0.875rem;
}

/* Archives and Categories in Footer */
.footer-column .wp-block-archives-list,
.footer-column .wp-block-categories-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
}

.footer-column .cat-item,
.footer-column .wp-block-archives li {
    display: block;
    margin-bottom: 0;

    /* Footer Search Widget */

    .footer-column .wp-block-search {
        margin-bottom: 1rem;
    }

    .footer-column .wp-block-search__label {
        color: white;
        font-weight: 600;
        margin-bottom: 0.75rem;
        display: block;
    }

    .footer-column .wp-block-search__inside-wrapper {
        display: flex;
        gap: 0.5rem;
    }

    .footer-column .wp-block-search__input {
        flex: 1;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--aicp-border-radius);
        font-size: 0.875rem;
        color: white;
        transition: var(--aicp-transition);
    }

    .footer-column .wp-block-search__input::placeholder {
        color: #94a3b8;
    }

    .footer-column .wp-block-search__input:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--aicp-primary-color);
    }

    .footer-column .wp-block-search__button {
        padding: 0.5rem 1.25rem;
        background: var(--aicp-primary-color);
        color: white;
        border: none;
        border-radius: var(--aicp-border-radius);
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: var(--aicp-transition);
    }

    .footer-column .wp-block-search__button:hover {
        background: var(--aicp-primary-hover);
    }

    /* Footer Bottom */

    .footer-bottom {
        border-top: 1px solid #334155;
        padding-top: 2rem;
        text-align: center;
        color: #94a3b8;
        font-size: 0.875rem;
    }

    .footer-copyright {
        margin-bottom: 0.5rem;
    }

    .theme-credit {
        font-size: 0.75rem;
        opacity: 0.8;
    }

    .theme-credit a {
        color: #94a3b8;
        text-decoration: none;
    }

    .theme-credit a:hover {
        color: white;
    }

    .footer-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 1.5rem;
    }

    /* Footer logo container - default for SVG icon */

    .footer-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Only apply background/sizing to empty logo container (SVG icon) */

    .footer-logo:not(.has-logo) {
        background: var(--aicp-primary-color);
        padding: 8px;
        border-radius: var(--aicp-border-radius);
        color: white;
        width: 40px;
        height: 40px;
    }

    /* Remove constraints when logo image is present */

    .footer-logo.has-logo,
    .footer-logo:has(.footer-logo-img) {
        background: transparent;
        padding: 0;
        width: auto;
        height: auto;
    }

    /* Logo image styling */

    .footer-logo-img {
        width: auto;
        height: 50px; /* Fixed height to prevent squishing */
        max-width: 200px;
        object-fit: contain;
        display: block;
    }

    .footer-brand-name {
        font-size: 1.125rem;
        font-weight: 600;
        color: white;
        white-space: nowrap;
    }

    .footer-widget h4 {
        font-weight: 600;
        margin-bottom: 1rem;
        color: white;
    }

    .footer-widget ul {
        list-style: none;
        padding: 0;
    }

    .footer-widget li {
        margin-bottom: 0.75rem;
    }

    .footer-widget a {
        color: #94a3b8;
        text-decoration: none;
        transition: var(--aicp-transition);
    }

    .footer-widget a:hover {
        color: white;
    }

    .footer-bottom {
        border-top: 1px solid #334155;
        padding-top: 2rem;
        text-align: center;
        color: #94a3b8;
    }

    /* ========================================
       WordPress Core Support
       ======================================== */

    /* Alignments */

    .alignleft {
        float: left;
        margin-right: 1.5rem;
    }

    .alignright {
        float: right;
        margin-left: 1.5rem;
    }

    .aligncenter {
        clear: both;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* Screen Reader Text */

    .screen-reader-text {
        clip: rect(1px, 1px, 1px, 1px);
        position: absolute !important;
        height: 1px;
        width: 1px;
        overflow: hidden;
    }

    .screen-reader-text:focus {
        background-color: #f1f1f1;
        border-radius: 3px;
        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
        clip: auto !important;
        color: #21759b;
        display: block;
        font-size: 14px;
        font-weight: bold;
        height: auto;
        left: 5px;
        line-height: normal;
        padding: 15px 23px 14px;
        text-decoration: none;
        top: 5px;
        width: auto;
        z-index: 100000;
    }

    /* Comments */

    .comment-list {
        list-style: none;
        padding: 0;
    }

    .comment {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        background: #f8fafc;
        border-radius: var(--aicp-border-radius);
    }

    .comment-author {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .comment-author img {
        border-radius: 50%;
    }

    .comment-content {
        margin: 1rem 0;
    }

    .comment-reply-link {
        color: var(--aicp-primary-color);
        font-weight: 500;
    }

    /* ========================================
       Responsive Design
       ======================================== */

    @media (min-width: 768px) {
        .stats-grid {
            grid-template-columns: repeat(4, 1fr);
            margin-bottom: 3rem;
        }

        .site-description {
            display: block;
        }
    }

    @media (max-width: 1023px) {
        .mobile-menu-toggle {
            display: block; /* Show on tablet and mobile */
        }

        .nav-desktop {
            display: none; /* Hide desktop nav on tablet and mobile */
        }
    }

    @media (min-width: 1024px) {
        .container {
            padding: 0 1.5rem;
        }

        .nav-desktop {
            display: flex;
        }

        .mobile-menu-toggle {
            display: none;
        }

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

        .section-subtitle {
            font-size: 1.5rem;
        }

        .features-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .steps-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .pricing-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* ========================================
       Accessibility
       ======================================== */

    *:focus {
        outline: 2px solid var(--aicp-primary-color);
        outline-offset: 2px;
    }

    .skip-link {
        position: absolute;
        left: -9999px;
    }

    .skip-link:focus {
        position: absolute;
        left: 6px;
        top: 7px;
        z-index: 999999;
        padding: 8px 16px;
        background: var(--aicp-primary-color);
        color: white;
        text-decoration: none;
        border-radius: var(--aicp-border-radius);
    }

    /* ========================================
       Print Styles
       ======================================== */

    @media print {
        .site-header,
        .site-footer,
        .mobile-menu-toggle,
        .btn {
            display: none;
        }

        body {
            font-size: 12pt;
            line-height: 1.5;
        }

        .container {
            max-width: 100%;
        }
    }
}

/**
 * AI Content Detector Frontend Styles
 * Matching the mockup design
 */

/* Tool Container - Optimized for minimal whitespace */
.acd-tool-container {
    width: 100%;
    max-width: min(calc(100vw - 2rem), 1600px);
    margin: 0 auto;
    padding: 0 max(1rem, env(safe-area-inset-left));
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    container-type: inline-size;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Tool Card - Reduced padding, better fit */
.acd-tool-card {
    background: white;
    border-radius: clamp(12px, 2vw, 24px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    padding: clamp(1.25rem, 3vw, 3rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    width: 100%;
    box-sizing: border-box;
}

/* Container queries for responsive scaling */
@container (max-width: 480px) {
    .acd-tool-card {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .acd-section-title {
        font-size: 1rem;
    }

    .acd-content-textarea {
        min-height: 100px;
        height: 120px;
    }
}

@container (min-width: 481px) and (max-width: 768px) {
    .acd-tool-card {
        padding: 1.5rem;
    }

    .acd-content-textarea {
        height: 140px;
    }
}

@container (min-width: 769px) and (max-width: 1024px) {
    .acd-tool-card {
        padding: 2rem;
    }

    .acd-content-textarea {
        height: 160px;
    }
}

@container (min-width: 1025px) {
    .acd-tool-card {
        padding: 2.5rem;
    }

    .acd-content-textarea {
        height: 180px;
    }
}

/* Viewport-based responsive adjustments */
@media screen and (max-width: 640px) {
    .acd-tool-container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media screen and (min-width: 641px) and (max-width: 1024px) {
    .acd-tool-container {
        max-width: min(calc(100vw - 3rem), 900px);
    }
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .acd-tool-container {
        max-width: min(calc(100vw - 4rem), 1200px);
    }
}

@media screen and (min-width: 1441px) {
    .acd-tool-container {
        max-width: min(calc(100vw - 6rem), 1400px);
    }
}

/* Ultra-wide screens */
@media screen and (min-aspect-ratio: 21/9) {
    .acd-tool-container {
        max-width: min(70vw, 1600px);
    }
}

/* High density displays */
@media screen and (min-resolution: 2dppx) {
    .acd-tool-card {
        box-shadow: 0 12px 35px -12px rgba(0, 0, 0, 0.18);
    }
}

/* URL Section - Reduced spacing */
.acd-url-section {
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.acd-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
}
.acd-section-header .feather {
    width: 20px;
    height: 20px;
}
img.custom-logo {
    width: 180px;
    height: auto;
}
.site-title, .site-description {
    position: absolute;
    clip-path: inset(50%);
}
.acd-section-title {
    font-size: clamp(1rem, calc(0.95rem + 0.25vw), 1.25rem);
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.acd-url-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.acd-url-input {
    flex: 1;
    padding: clamp(0.75rem, calc(0.7rem + 0.3vw), 1rem);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: clamp(0.875rem, calc(0.85rem + 0.15vw), 1rem);
    transition: all 0.2s;
}

.acd-url-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.acd-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.acd-btn-secondary:hover {
    background: #e2e8f0;
}

.acd-help-text {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Divider - Reduced margin */
.acd-divider {
    position: relative;
    margin: clamp(1.25rem, 2.5vw, 2rem) 0;
    text-align: center;
}

.acd-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.acd-divider-text {
    background: white;
    padding: 0 0.75rem;
    color: #64748b;
    font-weight: 500;
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    position: relative;
    display: inline-block;
}

/* Textarea Section - Optimized height */
.acd-textarea-container {
    position: relative;
}

.acd-content-textarea {
    width: 100%;
    min-height: 120px;
    height: clamp(140px, 20vh, 200px);
    padding: clamp(0.75rem, calc(0.7rem + 0.3vw), 1rem);
    padding-right: 3rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    resize: vertical;
    font-size: clamp(0.875rem, calc(0.85rem + 0.15vw), 1rem);
    font-family: inherit;
    transition: all 0.2s;
}

.acd-content-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.acd-paste-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acd-paste-btn:hover {
    background: #bfdbfe;
}

.acd-paste-btn svg {
    width: 20px;
    height: 20px;
}

/* Word Count */
.acd-word-count {
    display: flex;
    justify-content: flex-end;
    font-size: clamp(0.75rem, calc(0.7rem + 0.2vw), 0.875rem);
    margin-top: 0.5rem;
}

#acd-word-limit {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #e0f2fe;
}

#acd-word-limit.warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
    animation: pulse-warning 1.5s ease-in-out infinite;
}

#acd-word-limit.danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
    animation: pulse-danger 1s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes pulse-danger {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* Analyze Button */
.acd-analyze-btn {
    display: block;
    width: auto;
    margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
    background: #2563eb;
    color: white;
    padding: clamp(0.875rem, calc(0.8rem + 0.4vw), 1.125rem) clamp(2rem, 4vw, 3.5rem);
    border: none;
    border-radius: 12px;
    font-size: clamp(1rem, calc(0.95rem + 0.3vw), 1.25rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.acd-analyze-btn:hover:not(:disabled) {
    background: #1d4ed8;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.acd-analyze-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.acd-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: acd-spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Results Section */
.acd-results {
    padding: 3rem;
    margin: 3rem 0;
    padding-bottom: 1rem;
    background: linear-gradient(to bottom, #f8fafc, white);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    display: none;
    position: relative;
    z-index: 10;
    animation: slideIn 0.5s ease-out;
}

div#acd-plagiarism-risk {
    margin-bottom: 1.5rem;
}

.acd-results.show {
    display: block;
}

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

.acd-results-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
}

.acd-result-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.acd-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.acd-result-header svg {
    color: #2563eb;
    width: 24px;
    height: 24px;
}

.acd-result-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e293b;
    margin: 0;
}

.acd-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.acd-percentage-display {
    text-align: center;
}

.acd-percentage-number {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* AI Detection - Red colors */
.acd-percentage-number.ai-high {
    color: #dc2626; /* Dark red for high AI (70%+) */
}

.acd-percentage-number.ai-medium {
    color: #ef4444; /* Medium red for moderate AI (50-70%) */
}

/* Human Detection - Green colors */
.acd-percentage-number.human-high {
    color: #059669; /* Dark green for high human (70%+) */
}

.acd-percentage-number.human-medium {
    color: #10b981; /* Medium green for moderate human (50-70%) */
}

/* Mixed - Yellow/Orange */
.acd-percentage-number.mixed {
    color: #f59e0b; /* Orange for 50/50 */
}

/* Legacy support */
.acd-percentage-number.ai-low {
    color: #10b981;
}

.acd-percentage-label {
    font-size: 1.25rem;
    font-weight: 500;
    color: #475569;
}

/* Progress Bars */
.acd-progress-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acd-progress-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.acd-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.acd-progress-label {
    color: #64748b;
}

.acd-progress-value {
    font-weight: 500;
    color: #1e293b;
}

.acd-progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.acd-progress-fill {
    height: 100%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.acd-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.acd-progress-ai {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.acd-progress-human {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* Summary Box */
.acd-summary-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.acd-summary-box.human {
    background: #f0fdf4;
    border-color: #86efac;
}

.acd-summary-box.mixed {
    background: #fefce8;
    border-color: #fde047;
}

.acd-summary-title {
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.acd-summary-box.human .acd-summary-title {
    color: #14532d;
}

.acd-summary-box.mixed .acd-summary-title {
    color: #713f12;
}

.acd-summary-text {
    color: #b91c1c;
    font-size: 0.875rem;
    line-height: 1.6;
}

.acd-summary-box.human .acd-summary-text {
    color: #166534;
}

.acd-summary-box.mixed .acd-summary-text {
    color: #854d0e;
}

/* Error and Info Messages */
.acd-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.acd-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}


.acd-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.acd-alert-warning {
    background: #fefce8;
    border: 1px solid #fde047;
    color: #854d0e;
}

/* Mobile-specific optimizations */
@media (max-width: 640px) {
    .acd-url-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .acd-btn-secondary {
        width: 100%;
        padding: 0.875rem 1.25rem;
    }

    .acd-result-grid {
        grid-template-columns: 1fr;
    }

    .acd-percentage-number {
        font-size: 3rem;
    }

    .acd-analyze-btn {
        width: 100%;
        max-width: 300px;
    }

    .acd-help-text {
        font-size: 0.8125rem;
    }

    .acd-paste-btn {
        width: 32px;
        height: 32px;
        right: 0.75rem;
        top: 0.75rem;
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .acd-percentage-number {
        font-size: 3.5rem;
    }

    .acd-url-input-group {
        gap: 0.75rem;
    }
}

/* Desktop optimizations */
@media (min-width: 1025px) {
    .acd-percentage-number {
        font-size: 4.5rem;
    }
}

/* Smooth transitions for all responsive changes */
@media (prefers-reduced-motion: no-preference) {
    .acd-tool-container,
    .acd-tool-card,
    .acd-content-textarea,
    .acd-analyze-btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Print styles */
@media print {
    .acd-tool-container {
        max-width: 100%;
    }

    .acd-tool-card {
        box-shadow: none;
        border: 2px solid #000;
    }
}

/* Sentence Analysis */
#acd-sentence-analysis {
    display: none;
}

.acd-sentence-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    justify-content: center;
    border-radius: 8px;
    flex-wrap: wrap;
}

.acd-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.acd-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.acd-legend-color.human {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.acd-legend-color.mixed {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.acd-legend-color.ai {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.acd-sentences-container {
    line-height: 2;
    font-size: 1rem;
    color: #1e293b;
}

.acd-sentence {
    display: inline;
    padding: 0.25rem 0.375rem;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: help;
    position: relative;
}

.acd-sentence.human {
    background: rgba(16, 185, 129, 0.15); /* Dark green bg for strong human (70%+) */
    color: #065f46;
}

.acd-sentence.human-moderate {
    background: rgba(52, 211, 153, 0.12); /* Light green bg for moderate human (30-70%) */
    color: #047857;
}

.acd-sentence.mixed {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

.acd-sentence.ai {
    background: rgba(220, 38, 38, 0.15);
    color: #991b1b;
}

.acd-sentence:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.acd-sentence-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100;
    margin-bottom: 0.5rem;
}

.acd-sentence-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

.acd-sentence:hover .acd-sentence-tooltip {
    opacity: 1;
}

.acd-no-sentence-data {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Statistics Grid */
.acd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.acd-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.acd-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.acd-stat-content {
    flex: 1;
}

.acd-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
}

.acd-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

/* Cached Badge */
.acd-cached-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.acd-cached-badge svg {
    width: 14px;
    height: 14px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Analysis Table Styles */
.acd-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.acd-analysis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.acd-analysis-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.acd-analysis-table thead th:nth-child(2),
.acd-analysis-table thead th:nth-child(3) {
    text-align: center;
}

.acd-table-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.acd-table-row:hover {
    background: #f8fafc;
}

.acd-analysis-table td {
    padding: 1rem;
    vertical-align: top;
}

.acd-feature-name {
    font-weight: 500;
    color: #1e293b;
}

.acd-score-cell {
    text-align: center;
}

.acd-score-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.acd-score-high {
    background: #fef2f2;
    color: #dc2626;
}

.acd-score-medium {
    background: #fefce8;
    color: #ca8a04;
}

.acd-score-low {
    background: #f0fdf4;
    color: #16a34a;
}

.acd-flag-cell {
    text-align: center;
}

.acd-flag-icon {
    width: 20px;
    height: 20px;
}

.acd-flag-high {
    color: #dc2626;
}

.acd-flag-medium {
    color: #ca8a04;
}

.acd-flag-low {
    color: #16a34a;
}

.acd-details-cell {
    color: #64748b;
    line-height: 1.5;
}

/* Highlighted Sections */
.acd-highlighted-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.acd-highlighted-item {
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 1rem;
}

.acd-highlighted-text {
    font-style: italic;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.acd-highlighted-reason {
    font-size: 0.875rem;
    color: #65a30d;
}

/* Results Grid */
.acd-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .acd-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.acd-risk-assessment-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Suggestions Styles */
.acd-suggestions-list {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
}

.acd-suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    color: #475569;
}

.acd-suggestion-bullet {
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Risk Assessment Styles */
.acd-risk-card {
    margin-bottom: 0;
}

.acd-risk-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.acd-risk-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.acd-risk-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.acd-risk-high {
    background: #fef2f2;
    color: #dc2626;
}

.acd-risk-medium {
    background: #fefce8;
    color: #ca8a04;
}

.acd-risk-low {
    background: #f0fdf4;
    color: #16a34a;
}

.acd-risk-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.acd-risk-details {
    margin-bottom: 1rem;
}

.acd-risk-details:last-child {
    margin-bottom: 0;
}

.acd-risk-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.acd-risk-list {
    list-style: none;
    margin-left: 0;
    padding: 0;
}

.acd-risk-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

.acd-risk-list li::before {
    content: 'â€¢';
    position: absolute;
    left: 0;
    color: #94a3b8;
}

/* Hide elements */
.acd-hidden {
    display: none;
}

/* Analysis Modal Overlay for Textarea */
.acd-analysis-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.acd-analysis-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Spinner Container */
.acd-modal-spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 20px;
}

/* Animated spinner rings */
.acd-spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.acd-spinner-ring:nth-child(1) {
    border-top-color: #2563eb;
    animation-delay: -0.45s;
}

.acd-spinner-ring:nth-child(2) {
    border-right-color: #3b82f6;
    animation-delay: -0.3s;
}

.acd-spinner-ring:nth-child(3) {
    border-bottom-color: #60a5fa;
    animation-delay: -0.15s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Modal Analysis Text */
.acd-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    text-align: center;
}

.acd-modal-subtitle {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
    min-height: 42px; /* Reserve space for 2 lines */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsing dot animation for loading */
.acd-modal-subtitle .dots {
    display: inline-block;
}

.acd-modal-subtitle .dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Progress indicator */
.acd-modal-progress {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 25px; /* Increased to make room for percentage */
    overflow: visible; /* Changed from hidden to visible */
    position: relative;
}

.acd-modal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
    width: 0%;
    animation: progressPulse 90s ease-out forwards;
    position: relative;
    overflow: hidden; /* Keep the bar contained */
}

/* Progress percentage display */
.acd-modal-progress-percentage {
    position: absolute;
    top: 12px; /* Position below the 4px bar */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 10;
    line-height: 1;
    white-space: nowrap;
}

@keyframes progressPulse {
    0% { width: 0%; }
    15% { width: 12%; }
    30% { width: 23%; }
    45% { width: 34%; }
    60% { width: 45%; }
    75% { width: 56%; }
    85% { width: 67%; }
    95% { width: 78%; }
    100% { width: 85%; }
}
