/* ===== Portfolio Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    background: #161616;
    color: #e8e8e8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

/* ===== Nav ===== */
.nav-minimal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(22, 22, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #2a2a2a;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #a3e635;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-logo:hover .nav-logo-text {
    background: #a3e635;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #161616;
    background-clip: unset;
}

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

.nav-link-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a3e635;
    transition: width 0.3s ease;
}

.nav-link-item:hover {
    color: #e8e8e8;
}

.nav-link-item:hover::after {
    width: 100%;
}

.nav-link-cta {
    background: #a3e635;
    color: #161616 !important;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: #84cc16;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.3);
}

@media (max-width: 768px) {
    .nav-inner { padding: 0 1.5rem; }
    .nav-links { gap: 1.5rem; }
    .nav-link-item:not(.nav-link-cta) { display: none; }
}

/* ===== Language Switcher ===== */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2a2a2a;
    border-radius: 100px;
    padding: 0.4rem 0.8rem;
    color: #e8e8e8;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-current:hover,
.lang-switcher.open .lang-current {
    border-color: #a3e635;
    background: rgba(163, 230, 53, 0.08);
}

.lang-flag {
    width: 1.2rem;
    height: 0.9rem;
    border-radius: 2px;
    line-height: 1;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lang-caret {
    font-size: 0.7rem;
    color: #888;
    transition: transform 0.3s ease;
}

.lang-switcher.open .lang-caret {
    transform: rotate(180deg);
    color: #a3e635;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 180px;
    background: rgba(22, 22, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    z-index: 1100;
    animation: langFade 0.18s ease;
}

@keyframes langFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    color: #b8b8b8;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e8e8e8;
}

.lang-option.active {
    background: rgba(163, 230, 53, 0.12);
    color: #a3e635;
}

.lang-option .lang-name {
    flex-grow: 1;
}

.lang-check {
    font-size: 0.95rem;
    color: #a3e635;
}

.lang-overlay {
    position: fixed;
    inset: 0;
    /* Must sit BELOW the nav (z-index 1000) so the dropdown menu stays clickable,
       but above page content so an outside click still closes the menu. */
    z-index: 990;
    background: transparent;
}

.portfolio-wrapper {
    position: relative;
}

/* ===== Hero ===== */
.hero-minimal {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #161616;
    padding: 2rem 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 22, 22, 0.7);
    z-index: 1;
}

.hero-minimal .container-fluid {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
    max-width: 1400px;
    width: 100%;
}

.hero-line {
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.3;
    background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-role {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    color: #888;
    letter-spacing: -0.02em;
    line-height: 1.3;
    display: inline-block;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #666;
    font-weight: 400;
    line-height: 1.6;
    display: inline-block;
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: #a3e635;
    color: #161616;
}

.btn-hero-primary:hover {
    background: #84cc16;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(163, 230, 53, 0.3);
    color: #161616;
}

.btn-hero-secondary {
    background: transparent;
    color: #e8e8e8;
    border: 1px solid #444;
}

.btn-hero-secondary:hover {
    border-color: #a3e635;
    color: #a3e635;
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 3;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, #a3e635, transparent);
    transform-origin: top;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #aaa;
}

/* ===== Section Headers ===== */
.section-header {
    margin-bottom: 4rem;
}

.section-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #a3e635;
    font-family: 'Courier New', monospace;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #e8e8e8;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 500px;
}

/* ===== Projects Section ===== */
.projects-section {
    padding: 8rem 0;
    border-top: 1px solid #2a2a2a;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.project-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a3e635, #84cc16);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    border-color: rgba(163, 230, 53, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(163, 230, 53, 0.08);
}

.project-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid rgba(163, 230, 53, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a3e635;
    margin: 2.5rem 0 0 2.5rem;
}

.project-card-content {
    padding: 2.5rem;
}

.project-card-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.project-card-desc {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #999;
    margin-bottom: 2rem;
    max-width: 700px;
}

.project-card-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.stack-tag {
    padding: 0.4rem 0.9rem;
    background: #252525;
    border: 1px solid #333;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #aaa;
    transition: all 0.3s ease;
}

.stack-tag:hover {
    border-color: #a3e635;
    color: #a3e635;
}

.project-card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.75rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-btn-primary {
    background: #a3e635;
    color: #161616;
}

.project-btn-primary:hover {
    background: #84cc16;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(163, 230, 53, 0.3);
    color: #161616;
}

.project-btn-secondary {
    background: transparent;
    color: #888;
    border: 1px solid #333;
}

.project-btn-secondary:hover {
    border-color: #888;
    color: #e8e8e8;
    transform: translateY(-2px);
}

/* ===== Stack Section ===== */
.stack-section {
    padding: 8rem 0;
    border-top: 1px solid #2a2a2a;
}

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

.stack-category {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.stack-category:hover {
    border-color: rgba(163, 230, 53, 0.3);
    transform: translateY(-4px);
}

.stack-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(163, 230, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a3e635;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.stack-category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 1.25rem;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 8rem 0;
    border-top: 1px solid #2a2a2a;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-link-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2.5rem;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 320px;
}

.contact-link-card:hover {
    border-color: #a3e635;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(163, 230, 53, 0.08);
}

.contact-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(163, 230, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a3e635;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-link-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-link-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
}

.contact-link-value {
    font-size: 1rem;
    font-weight: 600;
    color: #e8e8e8;
}

/* ===== Footer ===== */
.portfolio-footer {
    padding: 3rem 0;
    border-top: 1px solid #2a2a2a;
    text-align: center;
}

.portfolio-footer p {
    font-size: 0.875rem;
    color: #555;
}

/* ===== Demo Page Styles ===== */
.hero-section {
    background: #161616;
    position: relative;
    overflow: hidden;
}

.text-primary { color: #a3e635 !important; }
.text-muted { color: #888 !important; }
.card-title { color: #e8e8e8; }
.table-light { background-color: #252525 !important; color: #a3e635 !important; }

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(5%, 5%) rotate(180deg); }
}

.hero-badge {
    display: inline-block;
    background: rgba(163, 230, 53, 0.15);
    border: 1px solid rgba(163, 230, 53, 0.3);
    color: #a3e635;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.feature-tag {
    display: inline-block;
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid rgba(163, 230, 53, 0.25);
    color: #c8c8c8;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(163, 230, 53, 0.2);
    transform: translateY(-2px);
    color: #a3e635;
}

.bg-dark-nav { background: #161616; }

.drop-zone {
    border: 3px dashed #333;
    border-radius: 1rem;
    padding: 0.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1e1e1e;
}

.drop-zone:hover {
    border-color: #a3e635;
    background: #252525;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(163, 230, 53, 0.1);
}

.drop-zone.drag-over {
    border-color: #a3e635;
    background: #252525;
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(163, 230, 53, 0.15);
}

.card {
    border-radius: 1rem;
    transition: all 0.3s ease;
    background: #1e1e1e;
    color: #e8e8e8;
}

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

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(163, 230, 53, 0.08) !important;
}

.results-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    animation: slideIn 0.5s ease;
}

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

.order-field {
    background: #252525;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
}

.order-field:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.1);
}

.order-field-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a3e635;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.order-field-value {
    font-size: 1rem;
    font-weight: 600;
    color: #e8e8e8;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.2);
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #84cc16 0%, #a3e635 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(163, 230, 53, 0.25);
    color: white;
}

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

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

.alert {
    border-radius: 0.75rem;
    animation: slideIn 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-warning { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.alert-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-success { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.alert .btn-close { filter: invert(1); }

.bg-light { background-color: #252525 !important; }
hr { border-color: #2a2a2a; }

/* Order-lines table — align to the dark/lime palette.
   Bootstrap 5.3 paints rows via --bs-table-bg (white by default); override the
   table CSS variables so cells stay transparent over the dark results card. */
.table {
    color: #c8c8c8;
    --bs-table-bg: transparent;
    --bs-table-color: #c8c8c8;
    --bs-table-border-color: #2a2a2a;
    --bs-table-hover-bg: #2a2a2a;
    --bs-table-hover-color: #e8e8e8;
}
.table td, .table th { border-color: #2a2a2a; }
.table-hover tbody tr:hover { background-color: #2a2a2a !important; color: #e8e8e8; }
.table code { color: #a3e635; background: transparent; padding: 0; }

.btn-outline-secondary { color: #888; border-color: #333; }
.btn-outline-secondary:hover { background-color: #2a2a2a; border-color: #a3e635; color: #a3e635; }

/* ===== AI Analysis Loading Modal ===== */
.ai-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 12, 12, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: aiFade 0.25s ease;
}

@keyframes aiFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ai-loading-modal {
    width: min(90vw, 360px);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border: 1px solid #2a2a2a;
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(163, 230, 53, 0.08);
    animation: aiPop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes aiPop {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scanner: a document being "read" by the AI */
.ai-scanner {
    position: relative;
    width: 90px;
    height: 110px;
    margin: 0 auto 1.6rem;
}

.ai-doc {
    position: absolute;
    inset: 0;
    background: #161616;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow: hidden;
}

.ai-doc-line {
    height: 7px;
    border-radius: 4px;
    background: #2f2f2f;
    animation: aiLine 2.4s ease-in-out infinite;
}
.ai-doc-line:nth-child(1) { width: 80%; animation-delay: 0s; }
.ai-doc-line:nth-child(2) { width: 100%; animation-delay: 0.25s; }
.ai-doc-line:nth-child(3) { width: 65%; animation-delay: 0.5s; }
.ai-doc-line:nth-child(4) { width: 90%; animation-delay: 0.75s; }
.ai-doc-line:nth-child(5) { width: 55%; animation-delay: 1s; }

@keyframes aiLine {
    0%, 100% { background: #2f2f2f; }
    40% { background: #a3e635; box-shadow: 0 0 8px rgba(163, 230, 53, 0.5); }
}

.ai-scan-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(180deg, transparent, rgba(163, 230, 53, 0.35), transparent);
    box-shadow: 0 0 14px rgba(163, 230, 53, 0.5);
    animation: aiScan 2.4s ease-in-out infinite;
}

@keyframes aiScan {
    0% { top: -12px; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 104px; opacity: 0; }
}

.ai-chip {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
    color: #161616;
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.4);
    animation: aiPulse 1.6s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.45); }
    50% { transform: scale(1.12); box-shadow: 0 0 0 9px rgba(163, 230, 53, 0); }
}

.ai-loading-title {
    color: #e8e8e8;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
}

.ai-loading-sub {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 1.2rem;
}

.ai-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}
.ai-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a3e635;
    animation: aiDot 1.4s ease-in-out infinite;
}
.ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiDot {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
    .ai-doc-line, .ai-scan-beam, .ai-chip, .ai-dots span,
    .ai-loading-overlay, .ai-loading-modal { animation: none; }
}
