/*
 * AINNA Tools — Extracted Inline Styles
 * Extracted from index.php on 2026-06-27 during section refactor.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #1d1d1f;
    padding-bottom: 80px;
    transition: all 0.3s ease;
    overflow-x: hidden;
    position: relative;
}
body.dark-tools {
    background: #0f172a;
    color: #f0f0f0;
}
.tools-bg-blobs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.tools-bg-blobs .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: toolsBlobFloat 8s ease-in-out infinite;
}
.tools-bg-blobs .blob-1 {
    top: -10%; left: -10%;
    width: 400px; height: 400px;
    background: #ff6b9d;
    animation-delay: 0s;
}
.tools-bg-blobs .blob-2 {
    top: 20%; right: -10%;
    width: 500px; height: 500px;
    background: #4ecdc4;
    opacity: 0.4;
    animation-delay: 2s;
}
.tools-bg-blobs .blob-3 {
    bottom: -10%; left: 30%;
    width: 400px; height: 400px;
    background: #95e1d3;
    opacity: 0.4;
    animation-delay: 4s;
}
body.dark-tools .tools-bg-blobs .blob-1 { background: rgba(255,107,157,0.15); }
body.dark-tools .tools-bg-blobs .blob-2 { background: rgba(79,70,229,0.1); }
body.dark-tools .tools-bg-blobs .blob-3 { background: rgba(16,185,129,0.12); }
@keyframes toolsBlobFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}
.tools-bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    background-image: linear-gradient(#1d1d1f 1px, transparent 1px), linear-gradient(90deg, #1d1d1f 1px, transparent 1px);
    background-size: 60px 60px;
}
body.dark-tools .tools-bg-grid {
    opacity: 0.03;
    background-image: linear-gradient(#f8fafc 1px, transparent 1px), linear-gradient(90deg, #f8fafc 1px, transparent 1px);
}
.tools-aurora-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}
body.dark-tools .tools-aurora-container { opacity: 1; }
.tools-aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: toolsAuroraFloat 20s infinite ease-in-out;
    mix-blend-mode: screen;
}
.tools-aurora-1 {
    width: 600px; height: 600px;
    background: linear-gradient(135deg, #ff6b9d, #8b5cf6);
    top: -20%; left: -10%;
    animation-duration: 25s;
}
.tools-aurora-2 {
    width: 500px; height: 500px;
    background: linear-gradient(135deg, #00f5ff, #06f);
    top: 50%; right: -15%;
    animation-delay: -5s;
    animation-duration: 30s;
}
.tools-aurora-3 {
    width: 700px; height: 700px;
    background: linear-gradient(135deg, #8b5cf6, #ff6b9d);
    bottom: -25%; left: 30%;
    animation-delay: -10s;
    animation-duration: 28s;
}
@keyframes toolsAuroraFloat {
    0%, 100% { transform: translate(0,0) scale(1) rotate(0); }
    25% { transform: translate(10%,15%) scale(1.1) rotate(90deg); }
    50% { transform: translate(-5%,10%) scale(0.9) rotate(180deg); }
    75% { transform: translate(15%,-10%) scale(1.05) rotate(270deg); }
}
@media (max-width: 768px) {
    .tools-bg-blobs .blob { display: none; }
    .tools-aurora-container { display: none; }
}
.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
h1 { font-size: 28px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.02em; }
.subtitle { font-size: 14px; color: #86868b; margin-bottom: 20px; }
body.dark-tools .subtitle { color: #a0a0b0; }
.tools-toolbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 12px 0; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
body.dark-tools .tools-toolbar { background: rgba(15,23,42,0.85); }
.tools-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #d2d2d7;
    font-size: 14px;
    background: #fff;
}
body.dark-tools .tools-search {
    background: #1e293b;
    border-color: #334155;
    color: #f0f0f0;
}
.tools-categories { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tools-categories::-webkit-scrollbar { display: none; }
.tools-cat-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #d2d2d7;
    background: #f8f9fa;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tools-cat-btn.active, .tools-cat-btn:hover {
    background: #0071e3;
    border-color: #0071e3;
    color: #fff;
}
body.dark-tools .tools-cat-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
.tools-empty { display: none; text-align: center; color: #86868b; padding: 48px 0; }
.tools-empty.visible { display: block; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tool-card.hidden { display: none; }
.tool-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #d2d2d7;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
}
.tool-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
body.dark-tools .tool-card {
    background: #1e293b;
    border-color: #2a2a3e;
    color: #f0f0f0;
}
.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #0071e3;
}
body.dark-tools .tool-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102,126,234,0.15);
}
.tool-icon { font-size: 28px; margin-bottom: 8px; line-height: 1; }
.tool-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tool-desc { font-size: 12px; color: #86868b; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-block; padding: 2px 8px; background: #34c759; color: #fff; border-radius: 10px; font-size: 10px; font-weight: 600; margin-top: 6px; align-self: flex-start; }
.badge-new { background: #0071e3; }

/* Bank Statement Compiler — red glass morphism */
.tool-card.tool-card--bank-compiler {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.72), rgba(255, 255, 255, 0.45));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(239, 68, 68, 0.38);
    box-shadow:
        0 0 18px rgba(239, 68, 68, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -1px 0 rgba(239, 68, 68, 0.08);
}
.tool-card.tool-card--bank-compiler .tool-title { color: #991b1b; }
.tool-card.tool-card--bank-compiler .tool-desc { color: #b91c1c; opacity: 0.85; }
.tool-card.tool-card--bank-compiler .badge-new {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}
.tool-card.tool-card--bank-compiler:hover {
    transform: translateY(-3px);
    border-color: #ef4444;
    box-shadow:
        0 0 28px rgba(239, 68, 68, 0.32),
        0 10px 24px rgba(127, 29, 29, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
body.dark-tools .tool-card.tool-card--bank-compiler {
    background: linear-gradient(135deg, rgba(69, 10, 10, 0.62), rgba(30, 41, 59, 0.48));
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow:
        0 0 16px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(239, 68, 68, 0.12);
}
body.dark-tools .tool-card.tool-card--bank-compiler .tool-title { color: #fecaca; }
body.dark-tools .tool-card.tool-card--bank-compiler .tool-desc { color: #fca5a5; opacity: 1; }
body.dark-tools .tool-card.tool-card--bank-compiler:hover {
    border-color: #f87171;
    box-shadow:
        0 0 32px rgba(239, 68, 68, 0.42),
        0 10px 26px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(248, 113, 113, 0.15);
}

@media (max-width: 768px) {
    .container { padding: 20px 16px; }
    h1 { font-size: 22px; }
    .subtitle { font-size: 13px; margin-bottom: 16px; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tool-card { padding: 12px; }
    .tool-icon { font-size: 24px; }
    .tool-title { font-size: 13px; }
    .tool-desc { font-size: 11px; -webkit-line-clamp: 1; }
}
@media (max-width: 480px) {
    .tools-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .tool-card { padding: 10px; }
}
