:root {
    --bg-color: #eef3f8;
    --bg-accent: #dfeafd;
    --card-bg: rgba(255, 255, 255, 0.82);
    --card-strong: rgba(255, 255, 255, 0.94);
    --text-primary: #1d1d1f;
    --text-secondary: #5f6b7a;
    --accent-color: #0071e3;
    --accent-strong: #0057b8;
    --border-color: rgba(19, 38, 60, 0.1);
    --shadow-soft: 0 20px 40px rgba(20, 42, 74, 0.08);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 113, 227, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(70, 138, 255, 0.12), transparent 30%),
        linear-gradient(180deg, #f7faff 0%, var(--bg-color) 42%, #eef2f6 100%);
    color: var(--text-primary);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.lang-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-weight: 600;
}

.lang-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.lang-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.hero {
    margin-bottom: 40px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 8px 14px;
    margin-bottom: 18px;
}

h1 {
    font-size: clamp(2.8rem, 8vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.subtitle {
    max-width: 720px;
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.hero-intro,
.hero-note {
    max-width: 760px;
    font-size: 1rem;
}

.hero-intro {
    color: #314154;
    margin-bottom: 10px;
}

.hero-note {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.search-panel {
    display: grid;
    gap: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.88));
    border: 1px solid rgba(0, 113, 227, 0.12);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.search-panel-header {
    display: grid;
    gap: 8px;
}

.search-panel-header h2 {
    font-size: 1.35rem;
}

.search-panel-header p {
    color: var(--text-secondary);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(0, 113, 227, 0.18);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 16px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.search-input::placeholder {
    color: #8d98a5;
}

.search-clear {
    border: 0;
    border-radius: 14px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-strong);
    padding: 13px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-clear:hover {
    background: rgba(0, 113, 227, 0.16);
    transform: translateY(-1px);
}

/* Wish toggle button */
.wish-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(0, 113, 227, 0.12));
    color: #7c3aed;
    padding: 13px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wish-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(0, 113, 227, 0.18));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.wish-toggle-btn[aria-expanded="true"] {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(0, 113, 227, 0.16));
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.18);
}

.wish-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Wish panel slide animation */
.wish-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}

.wish-panel--open {
    max-height: 700px;
    opacity: 1;
}

.wish-panel .wishlist-form {
    margin-top: 16px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.catalog-summary {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.catalog-sections {
    display: grid;
    gap: 28px;
}

.tool-section {
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(19, 38, 60, 0.08);
    border-radius: 28px;
    padding: 26px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tool-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.tool-section-header h2 {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.section-count {
    color: var(--text-secondary);
    font-size: 0.94rem;
    font-weight: 600;
    white-space: nowrap;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.tool-card {
    background: var(--card-strong);
    border-radius: 24px;
    padding: 26px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 252px;
    box-shadow: 0 14px 28px rgba(20, 42, 74, 0.05);
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px rgba(20, 42, 74, 0.12);
    border-color: rgba(0, 113, 227, 0.28);
}

.tool-card-body {
    display: grid;
    gap: 10px;
}

.tool-icon {
    font-size: 2rem;
}

.tool-category-label {
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tool-name {
    font-size: 1.34rem;
    font-weight: 700;
    line-height: 1.2;
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 22px;
}

.btn::after {
    content: "\2192";
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.tool-card:hover .btn::after {
    transform: translateX(4px);
}

.coming-soon-panel,
.info-card,
.empty-state {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.coming-soon-panel {
    margin-top: 24px;
    padding: 24px 26px;
}

.coming-soon-panel h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.coming-soon-panel p {
    color: var(--text-secondary);
}

.empty-state {
    padding: 36px 28px;
    text-align: center;
}

.empty-state h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

.info-sections {
    margin-top: 56px;
    display: grid;
    gap: 24px;
}

.info-card {
    padding: 32px;
}

.info-card h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.info-card p,
.info-card li {
    color: var(--text-secondary);
}

.info-card p {
    margin-bottom: 14px;
}

.info-card ul,
.info-card ol {
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.faq-group {
    display: grid;
    gap: 16px;
}

.faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

footer {
    margin-top: 80px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-bottom: 30px;
}

footer a {
    color: inherit;
}

@media (max-width: 720px) {
    .container {
        padding-top: 30px;
    }

    .search-panel,
    .tool-section,
    .info-card {
        padding: 22px;
    }

    .tool-section-header,
    .search-input-wrap,
    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .section-count {
        white-space: normal;
    }

    .search-clear {
        width: 100%;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .wishlist-row {
        grid-template-columns: 1fr;
    }

    .wishlist-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .wishlist-captcha {
        justify-content: space-between;
    }

    .wishlist-submit-btn,
    .wish-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Wishlist Form */
.wishlist-form {
    margin-top: 20px;
    display: grid;
    gap: 16px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
}

.wishlist-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.wishlist-field textarea,
.wishlist-field input {
    width: 100%;
    border: 1px solid rgba(0, 113, 227, 0.15);
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-field textarea {
    resize: vertical;
    min-height: 56px;
}

.wishlist-field textarea:focus,
.wishlist-field input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08);
}

.wishlist-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.wishlist-captcha {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.wishlist-captcha label {
    cursor: pointer;
    user-select: none;
}

.wishlist-captcha strong {
    color: var(--text-primary);
    font-weight: 700;
}

.wishlist-captcha input {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 113, 227, 0.15);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: center;
    outline: none;
    background: rgba(255, 255, 255, 0.85);
}

.wishlist-captcha input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08);
}

/* Hide spin buttons for Chrome, Safari, Edge, Opera */
.wishlist-captcha input::-webkit-outer-spin-button,
.wishlist-captcha input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide spin buttons for Firefox */
.wishlist-captcha input[type=number] {
    -moz-appearance: textfield;
}

.wishlist-submit-btn {
    border: 0;
    border-radius: 12px;
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.wishlist-submit-btn:hover {
    background-color: var(--accent-strong);
    transform: translateY(-1px);
}

.wishlist-submit-btn:active {
    transform: translateY(0);
}

.wishlist-submit-btn:disabled {
    background-color: #aed1f5;
    cursor: not-allowed;
    transform: none;
}

.wishlist-status {
    font-size: 0.92rem;
    padding: 10px 12px;
    border-radius: 10px;
    margin-top: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: wishlistFadeIn 0.25s ease-out;
}

.wishlist-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.wishlist-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.wishlist-status.loading {
    background-color: rgba(0, 113, 227, 0.08);
    color: var(--accent-strong);
    border: 1px solid rgba(0, 113, 227, 0.15);
}

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

