@import url('nunito.css');

:root {
    --primary: #06b6d4;
    --primary-light: #22d3ee;
    --primary-dark: #0891b2;
    --accent: #f472b6;
    --accent-secondary: #a78bfa;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-elevated: #ffffff;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --glow-primary: rgba(6, 182, 212, 0.15);
    --glow-accent: rgba(244, 114, 182, 0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    background: var(--bg-light);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(800px circle at 10% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
        radial-gradient(600px circle at 90% 80%, rgba(244, 114, 182, 0.05) 0%, transparent 40%),
        radial-gradient(400px circle at 50% 50%, rgba(167, 139, 250, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar .container { display: flex; align-items: center; }

.logo {
    flex-shrink: 0;
    font-size: 1.375rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s var(--ease);
    letter-spacing: -0.02em;
}
.logo:hover { transform: translateX(4px); filter: brightness(1.1); }
.logo-icon { font-size: 1.625rem; -webkit-text-fill-color: initial; }

.nav-links { display: flex; gap: 0.375rem; list-style: none; margin: 0 auto; align-items: center; }

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    border-radius: var(--radius);
}
.nav-links a:hover {
    color: white;
    transform: translateY(-1px);
}
.nav-links a:hover::before { opacity: 1; }
.nav-links a.active {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 16px var(--glow-primary);
}
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 1.125rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.nav-dropdown > a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    border-radius: var(--radius);
}
.nav-dropdown:hover > a {
    color: white;
    transform: translateY(-1px);
}
.nav-dropdown:hover > a::before { opacity: 1; }
.dropdown-arrow {
    font-size: 0.625rem;
    margin-left: 0.25rem;
    transition: transform 0.3s;
}
.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
    z-index: 1000;
    padding: 0.5rem 0;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    border-radius: 0;
}
.nav-dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}
.nav-dropdown-menu a::before {
    display: none;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.35s var(--ease-spring);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s var(--ease) backwards;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.tool-card:nth-child(1) { animation-delay: 0s; }
.tool-card:nth-child(2) { animation-delay: 0.05s; }
.tool-card:nth-child(3) { animation-delay: 0.1s; }
.tool-card:nth-child(4) { animation-delay: 0.15s; }
.tool-card:nth-child(5) { animation-delay: 0.2s; }
.tool-card:nth-child(6) { animation-delay: 0.25s; }
.tool-card:nth-child(7) { animation-delay: 0.3s; }
.tool-card:nth-child(8) { animation-delay: 0.35s; }

.tool-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(6, 182, 212, 0.1);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-spring);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(244, 114, 182, 0.08));
}
.tool-card:hover .tool-icon { transform: scale(1.1) rotate(-5deg); }

.tool-info { flex: 1; min-width: 0; }
.tool-info h3 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.375rem;
    color: var(--text);
}
.tool-info p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.nav-user {
    flex-shrink: 0;
}
.nav-login {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}
.nav-login:hover {
    background: rgba(6, 182, 212, 0.1);
}
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
}
.user-dropdown:hover {
    background: var(--bg-secondary);
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.user-name {
    font-weight: 600;
    color: var(--text);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    display: none;
    z-index: 1000;
}
.dropdown-menu.show {
    display: block;
}
.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s;
}
.dropdown-item:hover {
    background: var(--bg-secondary);
}
.notification-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
}
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    background: #f43f5e;
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.hero {
    text-align: center;
    padding: 5rem 0 4rem;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, var(--glow-primary) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: heroPulse 8s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s var(--ease);
}
.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #0891b2 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s var(--ease);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

.hero .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
}

.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0 4rem;
}

.sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    box-shadow: var(--shadow);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.category-item { margin-bottom: 0.25rem; }

.category-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid transparent;
}
.category-header:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}
.category-header.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(6, 182, 212, 0.04));
    color: var(--primary-dark);
    border-color: rgba(6, 182, 212, 0.2);
}
.category-header .icon {
    margin-right: 0.625rem;
    font-size: 1.125rem;
    transition: transform 0.3s var(--ease-spring);
}
.category-header.collapsed .icon { transform: rotate(-90deg); }
.category-header .arrow {
    margin-left: auto;
    font-size: 0.625rem;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease);
}
.category-header.collapsed .arrow { transform: rotate(-90deg); }

.category-items {
    overflow: hidden;
    transition: all 0.35s var(--ease);
    max-height: 0;
    opacity: 0;
}
.category-items.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.25rem;
    padding-left: 0.5rem;
}

.category-items a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5625rem 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.2s var(--ease);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}
.category-items a:hover {
    color: var(--primary-dark);
    background: rgba(6, 182, 212, 0.06);
    padding-left: 1.125rem;
}
.category-items a .dot {
    width: 4px;
    height: 4px;
    background: var(--border-light);
    border-radius: 50%;
    transition: all 0.2s;
}
.category-items a:hover .dot {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.content-area { min-width: 0; }

.group-section { margin-bottom: 2.5rem; }

.group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.group-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    font-size: 1.25rem;
    color: white;
}
.group-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}
.group-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-card-hover);
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.link-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.35s var(--ease-spring);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s var(--ease) backwards;
    box-shadow: var(--shadow-sm);
}
.link-card:nth-child(1) { animation-delay: 0s; }
.link-card:nth-child(2) { animation-delay: 0.05s; }
.link-card:nth-child(3) { animation-delay: 0.1s; }
.link-card:nth-child(4) { animation-delay: 0.15s; }
.link-card:nth-child(5) { animation-delay: 0.2s; }
.link-card:nth-child(6) { animation-delay: 0.25s; }

.link-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(6, 182, 212, 0.1);
    background: var(--bg-card);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.link-card:hover::before { transform: scaleX(1); }

.link-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.link-card .icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-spring);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(244, 114, 182, 0.08));
}
.link-card:hover .icon { transform: scale(1.1) rotate(-5deg); }

.link-card-content { flex: 1; min-width: 0; }

.link-card .title {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.link-card .desc {
    color: var(--text-muted);
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-card .arrow-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    opacity: 0;
    color: var(--primary);
    font-size: 0.875rem;
    transition: all 0.3s var(--ease);
}
.link-card:hover .arrow-icon {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px var(--glow-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-primary);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

textarea, input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    transition: all 0.3s var(--ease);
    background: var(--bg-card);
    color: var(--text);
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}
textarea:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
}
textarea { min-height: 200px; resize: vertical; }

.tool-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}
.tool-panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text);
}
.tool-panel h2 .icon { font-size: 1.5rem; }

.tool-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

.output-area { margin-top: 1.5rem; }
.output-area label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.output-result {
    background: #f8fafc;
    color: #0891b2;
    padding: 1.25rem;
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 120px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border);
    position: relative;
}
.output-result::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    background: var(--bg-card);
}
.file-upload:hover {
    border-color: var(--primary-light);
    background: rgba(6, 182, 212, 0.03);
}
.file-upload .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}
.file-upload p { color: var(--text-muted); font-size: 0.9375rem; }
.file-upload .hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}
.loading-overlay.active { opacity: 1; visibility: visible; }
.loading-content {
    background: var(--bg-card);
    padding: 2.5rem 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    transform: scale(0.9);
    transition: transform 0.3s var(--ease-spring);
    box-shadow: var(--shadow-lg);
}
.loading-overlay.active .loading-content { transform: scale(1); }
.loading-content p { margin-top: 1rem; color: var(--text-secondary); font-size: 0.9375rem; }

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
    border-left: 4px solid var(--primary);
    transform: translateX(120%);
    transition: transform 0.4s var(--ease-spring);
    z-index: 1001;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
}
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: #f43f5e; }
.toast.success { border-left-color: #10b981; }

.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; color: var(--text); }
.page-header p { color: var(--text-secondary); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}
.back-link:hover { color: var(--primary); }
.back-link .icon { transition: transform 0.2s; }
.back-link:hover .icon { transform: translateX(-4px); }

footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.02);
}
footer p { color: var(--text-muted); font-size: 0.875rem; }
footer .heart {
    color: var(--accent);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.floating-shapes {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    animation: float 20s ease-in-out infinite;
}
.floating-shape:nth-child(1) {
    width: 300px; height: 300px;
    background: var(--primary);
    top: 10%; left: 10%;
    animation-delay: 0s;
}
.floating-shape:nth-child(2) {
    width: 200px; height: 200px;
    background: var(--accent);
    top: 60%; right: 15%;
    animation-delay: -5s;
}
.floating-shape:nth-child(3) {
    width: 150px; height: 150px;
    background: var(--accent-secondary);
    bottom: 20%; left: 20%;
    animation-delay: -10s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 240px 1fr; gap: 1.5rem; }
    .link-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; max-height: none; }
    .link-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1rem; }
    .nav-links { gap: 0.25rem; }
    .nav-links a { padding: 0.5rem 0.875rem; font-size: 0.875rem; }
    .hero-actions { flex-direction: column; align-items: center; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9375rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.comparison-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.comparison-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.comparison-table code {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-dark);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

code {
    color: black;
}