:root {
    --primary: #8b5cf6;
    --primary-hover: #a78bfa;
    --secondary: #ec4899;
    --success: #10b981;
    --bg-dark: #09090b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --glow: 0 0 20px rgba(139, 92, 246, 0.5);
    --glow-success: 0 0 30px rgba(16, 185, 129, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

body.scroll-locked {
    overflow: hidden !important;
    touch-action: none;
}

/* Background Animated Gradient Mesh */
#blob {
    background-color: white;
    height: 300px;
    aspect-ratio: 1;
    position: fixed;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    animation: rotate 20s infinite;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    filter: blur(150px);
}

@keyframes rotate {
    from { rotate: 0deg; }
    50% { scale: 1 1.5; }
    to { rotate: 360deg; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Header & Nav */
header {
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a.logo {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

header nav a, header nav button.nav-link {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    width: auto;
    box-shadow: none;
    backdrop-filter: none;
    transition: color 0.3s;
}

header nav a:hover, header nav button.nav-link:hover {
    color: var(--text-main);
    transform: none;
    box-shadow: none;
}

.kbd-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 6px;
    font-family: monospace;
}

/* Slide-Over Drawer Navigation */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--card-border);
    z-index: 999;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.drawer.active { transform: translateX(0); }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.drawer-header h3 {
    font-size: 1.3rem;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.drawer-search {
    margin-bottom: 1.5rem;
    position: relative;
}

.drawer-search input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    color: white;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.drawer-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.drawer-group {
    margin-bottom: 1.5rem;
    transition: opacity 0.2s ease;
}

.drawer-group.hidden { display: none; }

.drawer-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-hover);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.drawer-links a.hidden { display: none; }

.drawer-links a:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(4px);
}

.drawer-links a span.badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
    color: var(--text-muted);
}

#no-tools-found {
    display: none;
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* Toast Notification */
#toast-container {
    position: fixed;
    top: 5rem;
    right: 2rem;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    animation: toastPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success { border-color: rgba(16, 185, 129, 0.4); }

/* Privacy Pill Badge */
.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.privacy-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 8px #34d399;
}

/* Modals & Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    translate: -50% 0;
    width: 90%;
    max-width: 650px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--glow);
    z-index: 1100;
    display: none;
    animation: cookieSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-content h4 {
    color: #fff;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1;
    min-width: 130px;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.cookie-btn.accept {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
}

.cookie-btn.necessary {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--card-border);
    color: #fff;
}

.cookie-btn.disable {
    background: transparent;
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overscroll-behavior: contain;
}

.modal-backdrop.active .modal-card { transform: scale(1) translateY(0); }
.modal-card h2 { font-size: 1.8rem; margin-bottom: 1rem; color: #fff; }
.modal-card h4 { color: var(--primary-hover); margin: 1.25rem 0 0.5rem 0; }
.modal-card p, .modal-card ul { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.modal-card ul { padding-left: 1.25rem; }
.modal-close-icon { position: absolute; top: 1.5rem; right: 1.5rem; }

/* Main Content & Cards */
main {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    animation: slideUp 0.8s ease-out forwards;
}

.ad-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 3rem auto;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 120px;
    backdrop-filter: blur(10px);
}

.ad-container::before {
    content: "Advertisement";
    position: absolute;
    top: 0; left: 0; right: 0;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #52525b;
    background: rgba(0,0,0,0.3);
    padding: 4px 0;
    border-bottom: 1px solid var(--card-border);
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.gradient-text {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary), var(--secondary));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 6s linear infinite;
    letter-spacing: -1.5px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 620px;
    margin: 0 auto 2rem auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

#cards:hover > .tool-card::before { opacity: 1; }

.tool-card {
    background: var(--card-bg);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: var(--text-main);
    padding: 2px;
}

.tool-card:hover::after { opacity: 1; }

.tool-card::before, .tool-card::after {
    content: "";
    position: absolute;
    height: 100%; width: 100%;
    left: 0; top: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 500ms;
    pointer-events: none;
}

.tool-card::before {
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.08), transparent 40%);
    z-index: 3;
}

.tool-card::after {
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), var(--primary), transparent 40%);
    z-index: 1;
}

.tool-card-content {
    background-color: var(--bg-dark);
    border-radius: inherit;
    padding: 2rem;
    height: 100%;
    z-index: 2;
    position: relative;
}

.tool-card h3 { margin-bottom: 0.75rem; font-size: 1.3rem; color: #fff; }
.tool-card p { font-size: 0.95rem; color: var(--text-muted); }

.request-wrapper { margin-top: 6rem; position: relative; }

.request-section, .success-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--primary-hover);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.request-section h2 { font-size: 2.2rem; margin-bottom: 0.75rem; letter-spacing: -0.5px; }
.request-section p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto 2.5rem auto; }

.request-form {
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    color: white;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.submit-btn { margin-top: 0.5rem; }

.card-animate-out {
    opacity: 0;
    transform: scale(0.92) translateY(-20px);
    filter: blur(10px);
    pointer-events: none;
}

.success-section {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--glow-success);
    animation: successPopIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-section h2 { font-size: 2.2rem; margin-bottom: 0.5rem; color: #fff; }
.success-section p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

.checkmark-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.checkmark-svg {
    width: 48px;
    height: 48px;
    stroke: var(--success);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
}

.checkmark-circle-bg {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: var(--success);
    animation: strokeAnim 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeAnim 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

/* Individual Tool Page Styles */
.tool-container, .seo-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--card-border);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

main h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}

.result-box {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.25rem;
    border: 1px solid var(--primary);
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.5);
    word-break: break-all;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    color: #fff;
    letter-spacing: 1px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.1s;
}

.result-box:hover {
    border-color: var(--primary-hover);
}

.result-box:active {
    transform: scale(0.99);
}

.controls { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.control-group { display: flex; align-items: center; gap: 1rem; }
input[type="range"], input[type="checkbox"] { accent-color: var(--primary); }

input[type="text"], input[type="number"], textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    color: white;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

button {
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.8), rgba(236, 72, 153, 0.8));
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    width: 100%;
    backdrop-filter: blur(5px);
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    box-shadow: var(--glow);
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    margin-top: 5rem;
}

footer button.footer-link {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    margin: 0 12px;
    padding: 0;
    width: auto;
    display: inline;
    box-shadow: none;
    backdrop-filter: none;
    transition: color 0.2s;
}

footer button.footer-link:hover {
    color: #fff;
    transform: none;
    box-shadow: none;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shine { to { background-position: 200% center; } }
@keyframes strokeAnim { 100% { stroke-dashoffset: 0; } }
@keyframes successPopIn {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastPop {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .gradient-text { font-size: 2.75rem; }
    .request-section, .success-section { padding: 2rem 1.25rem; }
    .cookie-banner { bottom: 1rem; width: 94%; padding: 1.25rem; }
    .cookie-actions { flex-direction: column; }
    .kbd-badge { display: none; }
}