:root {
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --bg-elevated: #3f3f46;
    --surface-glass: rgba(24, 24, 27, 0.8);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-dim: rgba(99, 102, 241, 0.15);
    --accent-glow: rgba(99, 102, 241, 0.3);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f5;
    --bg-elevated: #e9ecef;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --text-primary: #1a1a2e;
    --text-secondary: #495057;
    --text-muted: #868e96;
    --accent: #5c6bc0;
    --accent-hover: #7986cb;
    --accent-dim: rgba(92, 107, 192, 0.1);
    --accent-glow: rgba(92, 107, 192, 0.2);
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.1);
    --success: #37b24d;
    --warning: #f59f00;
    --error: #e03131;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* =========================
   BORDER TRAIL 
========================= */

.tool-window {
    width: 100%;
    position: relative;

    /* container for cqmin */
    container-type: inline-size;

    /* window trick */
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box;
    border: 3px solid transparent;
    border-radius: var(--radius-xl);
}

/* Layer 1 */
.border-trail {
    position: absolute;
    inset: 0;

    border-radius: var(--radius-xl);
    clip-path: inset(0 0 0 0 round var(--radius-xl));

    background: var(--border);
    z-index: 0;

    container-type: inline-size;
    
}

/* Layer 2 */
.border-trail .trail {
    width: calc(10 * 1cqmin);   /* bigger = longer tail */
     height: calc(6 * 1cqmin);
    

    position: absolute;

    background: radial-gradient(
        100% 100% at right,
        var(--accent) 0%,
        rgba(99, 102, 241, 0.6) 30%,
        transparent 70%
    );

    border-radius: 999px;

    offset-path: border-box;
    offset-anchor: 100% 50%;

    animation: journey 5s linear infinite;

    pointer-events: none;

    filter: blur(0.5px); /* soft tail */
}

/* Animation */
@keyframes journey {
    to {
        offset-distance: 100%;
    }
}

/* Layer 3 (already exists but ensure this) */
.tool-window .window-body {
    position: relative;
    z-index: 1;
}

.trail-content {
    position: relative;
    z-index: 1;
     background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box;
    border: 3px solid transparent;
    border-radius: var(--radius-xl);

}

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

.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(80px);
}

body:hover .cursor-glow {
    opacity: 1;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    transition: all var(--transition);
}

.header.scrolled {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.source-icon {
    width: 18px;
    height: 18px;
}

.footer-bottom a .source-icon {
    width: 16px;
    height: 16px;
}

.codeberg-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: none;
    position: relative;
    transition: all var(--transition);
}



.codeberg-link:hover {
    background: rgba(33, 133, 208, 0.1);
}

.codeberg-icon {
    width: 20px;
    height: 20px;
}

.tool-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.tool-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition);
}

.tool-tab svg {
    width: 18px;
    height: 18px;
}

.tool-tab:hover {
    color: var(--text-primary);
}

.tool-tab.active {
    background: var(--accent);
    color: white;
}

.tab-label {
    white-space: nowrap;
}

.mobile-tool-nav {
    display: none;
    gap: 4px;
    padding: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.mobile-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.mobile-tool-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-tool-btn:hover {
    color: var(--text-primary);
}

.mobile-tool-btn.active {
    background: var(--accent);
    color: white;
}

.tool-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition);
}

.tool-tab svg {
    width: 18px;
    height: 18px;
}

.tool-tab:hover {
    color: var(--text-primary);
}

.tool-tab.active {
    background: var(--accent);
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--border-strong);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: all 0.3s;
    position: absolute;
}

.theme-toggle .icon-sun { opacity: 1; transform: rotate(0); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.8); }

[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.8); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(ellipse at 25% 30%, var(--accent-dim) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    animation: gradient-shift 20s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--success);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.938rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-strong);
}

.tool-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 100px;
    position: relative;
    z-index: 1;
}

.tool-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tool-panel.active {
    display: block;
}

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



.tool-window .window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin : 1rem;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-elevated);
}

.window-dots span:first-child { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.window-title {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: auto;
    margin-right: auto;
}

.tool-window .window-body {
    padding: 24px;

}

.dork-workspace, .checker-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dork-input-section {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.dork-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.dork-type-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition);
}

.dork-type-tab svg {
    width: 18px;
    height: 18px;
}

.dork-type-tab:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.dork-type-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.dork-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dork-form.hidden {
    display: none;
}

.input-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.flex-grow {
    flex: 1;
    min-width: 200px;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.history-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background var(--transition);
}

.history-item:hover {
    background: var(--bg-tertiary);
}

.history-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.history-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.text-input, .select-input {
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.938rem;
    font-family: inherit;
    transition: all var(--transition);
}

.text-input::placeholder {
    color: var(--text-muted);
}

.text-input:focus, .select-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.text-input:focus-visible, .select-input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:focus-visible,
.tool-tab:focus-visible,
.mobile-tool-btn:focus-visible,
.method-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.select-input {
    appearance: none;
    cursor: pointer;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.btn-generate {
    align-self: flex-start;
    margin-top: 8px;
}

.dork-results, .checker-results {
    min-height: 250px;
}

.results-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}

.empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.empty-icon svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}

.results-empty h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.results-empty p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.dork-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.copy-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-all-btn svg {
    width: 16px;
    height: 16px;
}

.dork-grid {
    display: grid;
    gap: 10px;
}

.dork-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all var(--transition);
}

.dork-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.dork-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dork-card-title {
    font-size: 0.938rem;
    font-weight: 600;
}

.dork-card-badge {
    padding: 3px 8px;
    background: var(--accent-dim);
    border-radius: 100px;
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dork-card-description {
    color: var(--text-secondary);
    font-size: 0.813rem;
    margin-bottom: 12px;
}

.dork-query-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.dork-query-box code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    word-break: break-all;
    line-height: 1.5;
}

.dork-query-box code .op {
    color: var(--text-muted);
    font-weight: 500;
}

.copy-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.copy-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.copy-btn:hover svg {
    color: white;
}

.copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
}

.copy-btn.copied svg {
    color: white;
}

.checker-input-section {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.checker-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--accent-dim);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.checker-disclaimer svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.checker-disclaimer p {
    font-size: 0.813rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.platform-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.platform-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.platform-card:hover {
    border-color: var(--border-strong);
}

.platform-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin: 0 auto 10px;
    font-size: 1.125rem;
}

.platform-name {
    font-size: 0.813rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.platform-username {
    font-size: 0.688rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 10px;
}

.platform-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.platform-status.check {
    background: var(--accent-dim);
    color: var(--accent);
}

.platform-status.check:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.platform-status svg {
    width: 12px;
    height: 12px;
}

.platform-status.limited {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: default;
}

.platform-status.checking {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.platform-status.found {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.platform-status.not-found {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

.platform-status.error {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.methods-workspace {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
}

.methods-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}

.methods-sidebar h4 {
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.813rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.category-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.category-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.category-item.active {
    background: var(--accent);
    color: white;
}

.methods-content {
    flex: 1;
}

.methods-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.methods-search-bar svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.methods-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
}

.methods-search-bar input:focus {
    outline: none;
}

.methods-search-bar input::placeholder {
    color: var(--text-muted);
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.method-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition);
}

.method-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.method-card.expanded {
    grid-column: 1 / -1;
}

.method-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.method-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.method-card:hover .method-icon {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.method-card:hover .method-icon svg {
    color: white;
}

.method-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.method-level {
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-level.beginner {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.method-level.intermediate {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.method-level.advanced {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

.expand-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.method-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.method-title {
    font-size: 0.938rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.method-description {
    color: var(--text-secondary);
    font-size: 0.813rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.method-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.method-tag {
    padding: 3px 8px;
    background: var(--bg-secondary);
    border-radius: 100px;
    font-size: 0.688rem;
    color: var(--text-muted);
}

.method-content {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.method-card.expanded .method-content {
    display: block;
}

.method-section {
    margin-bottom: 16px;
}

.method-section:last-child {
    margin-bottom: 0;
}

.method-section h4 {
    font-size: 0.813rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.method-section p {
    color: var(--text-secondary);
    font-size: 0.813rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.method-section ul {
    list-style: none;
    margin-bottom: 10px;
}

.method-section li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.813rem;
    line-height: 1.6;
}

.method-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

.method-example-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.method-example-box h5 {
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.method-example-box code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    word-break: break-all;
}

.contribute-section {
    padding: 80px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

.contribute-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contribute-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6, var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contribute-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.1);
}

.contribute-card:hover::before {
    opacity: 1;
}

.contribute-visual {
    position: relative;
}

.code-window {
    background: #0d0d0f;
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid var(--border);
}


.code-window:hover {
    transform: translateY(-2px);
}

.code-window .window-header {
    display: flex;
    gap: 8px;
    margin : 1rem;
    padding: 14px 16px;
    background: #1a1a1e;
}

.code-window .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-window .dot.red { background: #ff5f57; }
.code-window .dot.yellow { background: #febc2e; }
.code-window .dot.green { background: #28c840; }

.window-content {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.813rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.window-content .comment { color: #6a737d; }
.window-content .keyword { color: #f97583; }
.window-content .string { color: #9ecbff; }

.contribute-info {
    max-width: 460px;
}

.contribute-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-dim);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.contribute-label svg {
    width: 16px;
    height: 16px;
}

.contribute-info .source-icon {
    width: 16px;
    height: 16px;
}

.contribute-info h2 {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.contribute-info > p {
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.contribute-ways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.way {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.way:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.way-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.way:hover .way-icon {
    background: var(--accent);
    transform: scale(1.1);
}

.way-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    transition: color 0.3s ease;
}

.way:hover .way-icon svg {
    color: white;
}

.way-text h5 {
    font-size: 0.813rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.way-text p {
    font-size: 0.688rem;
    color: var(--text-muted);
}

.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.mk-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.mk-link:hover {
    color: var(--accent-hover);
}

.footer-external-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-external-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.813rem;
    transition: color var(--transition);
}

.footer-external-links a:hover {
    color: var(--accent);
}

.footer-external-links .divider {
    color: var(--text-muted);
}

.footer-links-group h4 {
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.footer-links-group nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a,
.footer-links-group button {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    padding: 0;
}

.footer-links-group a:hover,
.footer-links-group button:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.813rem;
    white-space: nowrap;
}

.footer-bottom a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.813rem;
    transition: color var(--transition);
}

.footer-bottom a svg {
    width: 16px;
    height: 16px;
}

.footer-bottom a:hover {
    color: var(--accent);
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

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

.spin {
    animation: spin 1s linear infinite;
}

@media (max-width: 1024px) {
    .tool-tabs {
        display: none;
    }
    
    .mobile-tool-nav {
        display: flex;
    }
    
    .methods-workspace {
        grid-template-columns: 1fr;
    }
    
    .methods-sidebar {
        position: static;
    }
    
    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contribute-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .input-group {
        width: 100%;
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .method-card.expanded {
        grid-column: 1;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-bottom p {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .tool-window .window-body {
        padding: 16px;
    }
    
    .dork-input-section,
    .checker-input-section,
    .contribute-card {
        padding: 16px;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .contribute-ways {
        grid-template-columns: 1fr;
    }
}