/* ================================================================

   ASI ?곕?????AI Portal Stylesheet

   Production CSS for 1M+ users

   ================================================================ */



/* ?? Reset & Variables (Design Tokens ??以묒븰 愿由? ???? */

:root {

    /* ? Colors ? */

    --bg-primary: #0a0a0f;

    --bg-secondary: #111118;

    --bg-card: #16161f;

    --bg-card-hover: #1c1c28;

    --bg-accent: #1e1e2e;



    --text-primary: #e2e8f0;

    --text-secondary: #94a3b8;

    --text-muted: #64748b;



    --accent-primary: #6366f1;

    --accent-secondary: #8b5cf6;

    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);



    --green: #10b981;

    --red: #ef4444;

    --yellow: #f59e0b;

    --blue: #3b82f6;

    --cyan: #06b6d4;



    /* ? Borders & Shadows ? */

    --border: #1e293b;

    --border-light: #334155;

    --radius-sm: 8px;

    --radius: 12px;

    --radius-lg: 16px;

    --radius-xl: 24px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);

    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);



    /* ? Typography ? */

    --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: 0.2s ease;



    /* ? Layout (fluid) ? */

    --container: 1280px;

    --nav-height: 64px;

    --space-xs: 4px;

    --space-sm: 8px;

    --space-md: 16px;

    --space-lg: 24px;

    --space-xl: 40px;

    --space-2xl: 64px;

    --space-3xl: 80px;



    /* ? Touch target (理쒖냼 48px for mobile) ? */

    --touch-min: 44px;



    /* ? Safe area (notch phones) ? */

    --safe-top: env(safe-area-inset-top, 0px);

    --safe-bottom: env(safe-area-inset-bottom, 0px);

    --safe-left: env(safe-area-inset-left, 0px);

    --safe-right: env(safe-area-inset-right, 0px);

}



*, *::before, *::after {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;

    text-size-adjust: 100%;

}



body {

    font-family: var(--font);

    background: var(--bg-primary);

    color: var(--text-primary);

    line-height: 1.7;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

    padding-top: var(--safe-top);

    padding-bottom: var(--safe-bottom);

    min-height: 100dvh;

}



a {

    color: inherit;

    text-decoration: none;

}



img {

    max-width: 100%;

    display: block;

}



/* ?? Container ????????????????????????????????????????? */

.container {

    max-width: var(--container);

    margin: 0 auto;

    padding: 0 24px;

}



/* ?? Navbar ???????????????????????????????????????????? */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(10, 10, 15, 0.85);

    backdrop-filter: blur(20px);

    border-bottom: 1px solid var(--border);

    height: var(--nav-height);

}



.nav-container {

    max-width: var(--container);

    margin: 0 auto;

    padding: 0 24px;

    display: flex;

    align-items: center;

    height: 100%;

    gap: 24px;

}



.nav-logo {

    display: flex;

    align-items: center;

    gap: 8px;

    font-weight: 700;

    font-size: 1.2rem;

    white-space: nowrap;

    flex-shrink: 0;

}



.logo-icon {

    font-size: 1.4rem;

}



.logo-accent {

    background: var(--accent-gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.nav-search {

    flex: 1;

    max-width: 480px;

}



.search-form {

    display: flex;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

    transition: border-color var(--transition);

}



.search-form:focus-within {

    border-color: var(--accent-primary);

}



.search-input {

    flex: 1;

    padding: 8px 16px;

    background: transparent;

    border: none;

    color: var(--text-primary);

    font-size: 0.9rem;

    font-family: var(--font);

    outline: none;

}



.search-input::placeholder {

    color: var(--text-muted);

}



.search-btn {

    padding: 8px 14px;

    background: transparent;

    border: none;

    color: var(--text-secondary);

    cursor: pointer;

    font-size: 1rem;

    transition: color var(--transition);

}



.search-btn:hover {

    color: var(--accent-primary);

}



.nav-links {

    display: flex;

    gap: 4px;

    flex-shrink: 0;

}



.nav-link {

    padding: 8px 14px;

    border-radius: var(--radius-sm);

    font-size: 0.9rem;

    font-weight: 500;

    color: var(--text-secondary);

    transition: all var(--transition);

    white-space: nowrap;

}



.nav-link:hover,

.nav-link.active {

    color: var(--text-primary);

    background: var(--bg-card);

}



.nav-toggle {

    display: none;

    flex-direction: column;

    gap: 5px;

    background: none;

    border: none;

    cursor: pointer;

    padding: 8px;

}



.nav-toggle span {

    width: 22px;

    height: 2px;

    background: var(--text-primary);

    border-radius: 2px;

    transition: var(--transition);

}



/* Mobile search in hamburger menu (hidden on desktop) */

.nav-mobile-search {

    display: none;

}



@media (max-width: 768px) {

    .nav-mobile-search {

        display: block;

        margin-bottom: 12px;

    }

}



/* ?? Hero ?????????????????????????????????????????????? */

.hero {

    position: relative;

    padding: 100px 0 80px;

    text-align: center;

    overflow: hidden;

}



.hero-content {

    position: relative;

    z-index: 1;

}



.hero-title {

    font-size: clamp(2.5rem, 6vw, 4.5rem);

    font-weight: 900;

    line-height: 1.2;

    margin-bottom: 20px;

}



.gradient-text {

    background: var(--accent-gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.hero-subtitle {

    font-size: 1.15rem;

    color: var(--text-secondary);

    margin-bottom: 40px;

    line-height: 1.8;

}



.hero-search {

    max-width: 640px;

    margin: 0 auto 48px;

}



.hero-search-form {

    display: flex;

    background: var(--bg-card);

    border: 2px solid var(--border);

    border-radius: var(--radius-lg);

    overflow: hidden;

    transition: border-color var(--transition);

    box-shadow: var(--shadow-lg);

}



.hero-search-form:focus-within {

    border-color: var(--accent-primary);

}



.hero-search-input {

    flex: 1;

    padding: 16px 24px;

    background: transparent;

    border: none;

    color: var(--text-primary);

    font-size: 1.05rem;

    font-family: var(--font);

    outline: none;

}



.hero-search-input::placeholder {

    color: var(--text-muted);

}



.hero-search-btn {

    padding: 16px 32px;

    background: var(--accent-gradient);

    border: none;

    color: white;

    font-weight: 600;

    font-size: 1rem;

    font-family: var(--font);

    cursor: pointer;

    transition: opacity var(--transition);

}



.hero-search-btn:hover {

    opacity: 0.9;

}



.hero-stats {

    display: flex;

    justify-content: center;

    gap: 48px;

}



.hero-stat {

    display: flex;

    flex-direction: column;

    align-items: center;

}



.stat-number {

    font-size: 2rem;

    font-weight: 700;

    background: var(--accent-gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.stat-label {

    font-size: 0.85rem;

    color: var(--text-muted);

    margin-top: 4px;

}



.hero-bg-effect {

    position: absolute;

    top: -50%;

    left: 50%;

    transform: translateX(-50%);

    width: 800px;

    height: 800px;

    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

    pointer-events: none;

}



/* ?? Sections ?????????????????????????????????????????? */

.section {

    padding: 80px 0;

}



.section-dark {

    background: var(--bg-secondary);

}



.section-header {

    text-align: center;

    margin-bottom: 48px;

}



.section-title {

    font-size: 2rem;

    font-weight: 700;

    margin-bottom: 12px;

}



.section-subtitle {

    color: var(--text-secondary);

    font-size: 1.05rem;

}



.section-cta {

    text-align: center;

    margin-top: 40px;

}



/* ?? Buttons ??????????????????????????????????????????? */

.btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 12px 24px;

    border-radius: var(--radius);

    font-weight: 600;

    font-size: 0.95rem;

    font-family: var(--font);

    cursor: pointer;

    transition: all var(--transition);

    border: none;

    text-decoration: none;

}



.btn-primary {

    background: var(--accent-gradient);

    color: white;

}



.btn-primary:hover {

    opacity: 0.9;

    transform: translateY(-1px);

}



.btn-outline {

    background: transparent;

    color: var(--accent-primary);

    border: 1px solid var(--accent-primary);

}



.btn-outline:hover {

    background: var(--accent-primary);

    color: white;

}



.btn-sm {

    padding: 8px 16px;

    font-size: 0.85rem;

    border-radius: var(--radius-sm);

}



/* ?? Badges ???????????????????????????????????????????? */

.badge {

    padding: 4px 10px;

    border-radius: 20px;

    font-size: 0.75rem;

    font-weight: 600;

    flex-shrink: 0;

}



.badge-free {

    background: rgba(16, 185, 129, 0.15);

    color: var(--green);

}



.badge-paid {

    background: rgba(245, 158, 11, 0.15);

    color: var(--yellow);

}



/* ?? Tags ?????????????????????????????????????????????? */

.tag {

    display: inline-block;

    padding: 4px 10px;

    background: var(--bg-accent);

    border-radius: 20px;

    font-size: 0.78rem;

    color: var(--text-secondary);

    border: 1px solid var(--border);

}



/* ?? Situation Cards ??????????????????????????????????? */

.situation-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

    gap: 16px;

}



.situation-card {

    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 28px 20px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    text-align: center;

    transition: all var(--transition);

}



.situation-card:hover {

    background: var(--bg-card-hover);

    border-color: var(--accent-primary);

    transform: translateY(-4px);

    box-shadow: var(--shadow);

}



.situation-icon {

    font-size: 2.5rem;

    margin-bottom: 12px;

}



.situation-title {

    font-size: 1rem;

    font-weight: 600;

    margin-bottom: 6px;

}



.situation-desc {

    font-size: 0.82rem;

    color: var(--text-muted);

    line-height: 1.5;

}



/* Large situation cards (situations page) */

.situations-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));

    gap: 20px;

}



.situation-card-large {

    display: flex;

    gap: 20px;

    padding: 28px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    transition: all var(--transition);

}



.situation-card-large:hover {

    background: var(--bg-card-hover);

    border-color: var(--accent-primary);

    transform: translateY(-2px);

    box-shadow: var(--shadow);

}



.situation-card-icon {

    font-size: 2.5rem;

    flex-shrink: 0;

}



.situation-card-body {

    flex: 1;

}



.situation-card-title {

    font-size: 1.15rem;

    font-weight: 600;

    margin-bottom: 8px;

}



.situation-card-desc {

    font-size: 0.9rem;

    color: var(--text-secondary);

    margin-bottom: 16px;

    line-height: 1.6;

}



.situation-card-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.situation-tool-count {

    font-size: 0.85rem;

    color: var(--accent-primary);

    font-weight: 500;

}



.situation-arrow {

    color: var(--accent-primary);

    font-weight: 600;

}



/* ?? Category Grid ????????????????????????????????????? */

.category-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));

    gap: 16px;

}



.category-card {

    display: flex;

    flex-direction: column;

    padding: 28px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    transition: all var(--transition);

    position: relative;

    overflow: hidden;

}



.category-card::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 3px;

    background: var(--card-color);

    opacity: 0;

    transition: opacity var(--transition);

}



.category-card:hover {

    background: var(--bg-card-hover);

    transform: translateY(-4px);

    box-shadow: var(--shadow);

}



.category-card:hover::before {

    opacity: 1;

}



.category-icon {

    font-size: 2.2rem;

    margin-bottom: 14px;

}



.category-name {

    font-size: 1.05rem;

    font-weight: 600;

    margin-bottom: 8px;

}



.category-desc {

    font-size: 0.85rem;

    color: var(--text-muted);

    line-height: 1.5;

}



/* ?? Category Navigation Pills ????????????????????????? */

.category-nav-section {

    padding: 16px 0;

    background: var(--bg-secondary);

    border-bottom: 1px solid var(--border);

}



.category-nav-scroll {

    display: flex;

    gap: 8px;

    overflow-x: auto;

    padding-bottom: 4px;

    scrollbar-width: none;

}



.category-nav-scroll::-webkit-scrollbar {

    display: none;

}



.category-pill {

    padding: 8px 18px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: 24px;

    font-size: 0.85rem;

    font-weight: 500;

    white-space: nowrap;

    color: var(--text-secondary);

    transition: all var(--transition);

}



.category-pill:hover,

.category-pill.active {

    background: var(--accent-primary);

    color: white;

    border-color: var(--accent-primary);

}



/* ?? Tool Cards ???????????????????????????????????????? */

.tools-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));

    gap: 20px;

}



.tool-card {

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    padding: 24px;

    transition: all var(--transition);

    display: flex;

    flex-direction: column;

}



.tool-card:hover {

    background: var(--bg-card-hover);

    border-color: var(--border-light);

    transform: translateY(-2px);

    box-shadow: var(--shadow);

}



.tool-header {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 14px;

}



.tool-avatar {

    width: 44px;

    height: 44px;

    border-radius: var(--radius);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.3rem;

    font-weight: 700;

    flex-shrink: 0;

}



.tool-info {

    flex: 1;

    min-width: 0;

}



.tool-name {

    font-size: 1.05rem;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.tool-provider {

    font-size: 0.8rem;

    color: var(--text-muted);

}



.tool-desc {

    font-size: 0.88rem;

    color: var(--text-secondary);

    line-height: 1.6;

    margin-bottom: 14px;

    flex: 1;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.tool-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 16px;

}



.tool-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 14px;

    border-top: 1px solid var(--border);

    margin-top: auto;

}



.tool-pricing {

    font-size: 0.8rem;

    color: var(--text-muted);

    flex: 1;

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    margin-right: 12px;

}



/* ?? Recommend Cards ??????????????????????????????????? */

.recommend-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

    gap: 16px;

}



.recommend-card {

    padding: 28px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    transition: all var(--transition);

}



.recommend-card:hover {

    background: var(--bg-card-hover);

    border-color: var(--accent-primary);

    transform: translateY(-2px);

    box-shadow: var(--shadow);

}



.recommend-title {

    font-size: 1.2rem;

    font-weight: 600;

    margin-bottom: 8px;

}



.recommend-desc {

    font-size: 0.88rem;

    color: var(--text-secondary);

    margin-bottom: 16px;

    line-height: 1.5;

}



.recommend-count {

    font-size: 0.85rem;

    color: var(--accent-primary);

    font-weight: 500;

}



.recommend-grid-large {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));

    gap: 20px;

}



.recommend-card-large {

    padding: 32px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    transition: all var(--transition);

}



.recommend-card-large:hover {

    background: var(--bg-card-hover);

    border-color: var(--accent-primary);

    transform: translateY(-3px);

    box-shadow: var(--shadow);

}



.recommend-card-title {

    font-size: 1.4rem;

    font-weight: 600;

    margin-bottom: 10px;

}



.recommend-card-desc {

    font-size: 0.95rem;

    color: var(--text-secondary);

    margin-bottom: 20px;

    line-height: 1.6;

}



.recommend-card-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.recommend-tool-count {

    font-size: 0.9rem;

    color: var(--text-muted);

}



.recommend-arrow {

    color: var(--accent-primary);

    font-weight: 600;

}



/* ?? Benchmark Table ??????????????????????????????????? */

.benchmark-preview {

    overflow-x: auto;

}



.benchmark-table {

    width: 100%;

    border-collapse: collapse;

    background: var(--bg-card);

    border-radius: var(--radius-lg);

    overflow: hidden;

}



.benchmark-table th {

    padding: 14px 18px;

    background: var(--bg-accent);

    color: var(--text-secondary);

    font-weight: 600;

    font-size: 0.85rem;

    text-align: left;

    white-space: nowrap;

}



.benchmark-table td {

    padding: 14px 18px;

    border-bottom: 1px solid var(--border);

    font-size: 0.9rem;

}



.benchmark-table tbody tr:hover {

    background: var(--bg-card-hover);

}



.benchmark-table tbody tr:last-child td {

    border-bottom: none;

}



.model-name {

    font-weight: 600;

    white-space: nowrap;

}



.rank {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 28px;

    height: 28px;

    border-radius: 50%;

    font-size: 0.8rem;

    font-weight: 700;

    background: var(--bg-accent);

    color: var(--text-secondary);

}



.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; }

.rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }

.rank-3 { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }



.benchmark-table-wrapper {

    overflow-x: auto;

    border-radius: var(--radius-lg);

    border: 1px solid var(--border);

}



.benchmark-tabs {

    display: flex;

    gap: 8px;

    margin-bottom: 24px;

    flex-wrap: wrap;

}



.bench-tab {

    padding: 10px 20px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    color: var(--text-secondary);

    font-family: var(--font);

    font-size: 0.9rem;

    font-weight: 500;

    cursor: pointer;

    transition: all var(--transition);

}



.bench-tab:hover,

.bench-tab.active {

    background: var(--accent-primary);

    color: white;

    border-color: var(--accent-primary);

}



.sortable {

    cursor: pointer;

    user-select: none;

}



.sortable:hover {

    color: var(--accent-primary);

}



/* Metric Cards */

.metric-cards {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));

    gap: 16px;

    margin-bottom: 40px;

}



.metric-card {

    padding: 20px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

}



.metric-card h3 {

    font-size: 1rem;

    margin-bottom: 8px;

    color: var(--accent-primary);

}



.metric-card p {

    font-size: 0.85rem;

    color: var(--text-secondary);

    margin-bottom: 8px;

    line-height: 1.5;

}



.metric-range {

    font-size: 0.8rem;

    color: var(--text-muted);

}



.benchmark-sources {

    margin-top: 40px;

    padding: 24px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

}



.benchmark-sources h3 {

    margin-bottom: 12px;

}



.benchmark-sources ul {

    padding-left: 20px;

    margin-bottom: 12px;

}



.benchmark-sources li {

    font-size: 0.88rem;

    color: var(--text-secondary);

    margin-bottom: 4px;

}



.benchmark-disclaimer {

    font-size: 0.82rem;

    color: var(--text-muted);

    font-style: italic;

}



/* ?? Filter Bar ???????????????????????????????????????? */

.filter-bar {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 24px;

    flex-wrap: wrap;

}



.filter-btn {

    padding: 8px 18px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    color: var(--text-secondary);

    border-radius: 24px;

    font-family: var(--font);

    font-size: 0.85rem;

    font-weight: 500;

    cursor: pointer;

    transition: all var(--transition);

}



.filter-btn:hover,

.filter-btn.active {

    background: var(--accent-primary);

    color: white;

    border-color: var(--accent-primary);

}



.filter-sort {

    margin-left: auto;

}



.sort-select {

    padding: 8px 16px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    color: var(--text-primary);

    font-family: var(--font);

    font-size: 0.85rem;

    cursor: pointer;

    outline: none;

}



.sort-select option {

    background: var(--bg-card);

}



/* ?? Page Header ??????????????????????????????????????? */

.page-header {

    padding: 40px 0 32px;

    background: var(--bg-secondary);

    border-bottom: 1px solid var(--border);

}



.page-header-gradient {

    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);

}



.breadcrumb {

    font-size: 0.85rem;

    color: var(--text-muted);

    margin-bottom: 16px;

}



.breadcrumb a {

    color: var(--text-secondary);

    transition: color var(--transition);

}



.breadcrumb a:hover {

    color: var(--accent-primary);

}



.page-header-content {

    display: flex;

    align-items: center;

    gap: 20px;

}



.page-icon {

    font-size: 3rem;

}



.page-title {

    font-size: 2rem;

    font-weight: 700;

}



.page-subtitle {

    color: var(--text-secondary);

    font-size: 1.05rem;

    margin-top: 6px;

}



.page-count {

    color: var(--text-muted);

    font-size: 0.9rem;

    margin-top: 4px;

}



.page-meta {

    font-size: 0.85rem;

    color: var(--text-muted);

    margin-top: 8px;

}



/* ?? Tip Box ??????????????????????????????????????????? */

.tip-box {

    display: flex;

    gap: 14px;

    padding: 20px 24px;

    background: rgba(99, 102, 241, 0.08);

    border: 1px solid rgba(99, 102, 241, 0.2);

    border-radius: var(--radius);

    margin-bottom: 32px;

    align-items: flex-start;

}



.tip-icon {

    font-size: 1.4rem;

    flex-shrink: 0;

}



.tip-box p {

    font-size: 0.92rem;

    color: var(--text-secondary);

    line-height: 1.6;

}



/* ?? Subsection ???????????????????????????????????????? */

.subsection-title {

    font-size: 1.3rem;

    font-weight: 600;

    margin-bottom: 24px;

}



/* ?? Related Navigation ???????????????????????????????? */

.related-nav {

    margin-top: 48px;

    padding-top: 32px;

    border-top: 1px solid var(--border);

    text-align: center;

}



.related-nav h3 {

    font-size: 1rem;

    color: var(--text-secondary);

    margin-bottom: 16px;

}



.related-links {

    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;

}



/* ?? Empty State ??????????????????????????????????????? */

.empty-state {

    text-align: center;

    padding: 80px 20px;

}



.empty-icon {

    font-size: 4rem;

    display: block;

    margin-bottom: 16px;

}



.empty-state h2 {

    font-size: 1.3rem;

    margin-bottom: 8px;

}



.empty-state p {

    color: var(--text-secondary);

    margin-bottom: 20px;

}



.empty-suggestions {

    margin-top: 24px;

}



.empty-suggestions p {

    font-size: 0.9rem;

    color: var(--text-muted);

    margin-bottom: 12px;

}



.suggestion-tags {

    display: flex;

    justify-content: center;

    gap: 8px;

    flex-wrap: wrap;

}



.suggestion-tags .tag {

    cursor: pointer;

    transition: all var(--transition);

}



.suggestion-tags .tag:hover {

    border-color: var(--accent-primary);

    color: var(--accent-primary);

}



/* ?? Search Again ?????????????????????????????????????? */

.search-again {

    max-width: 640px;

    margin: 0 auto 40px;

}



/* ?? About Page ???????????????????????????????????????? */

.about-content {

    max-width: 800px;

    margin: 0 auto;

}



.about-block {

    margin-bottom: 40px;

}



.about-block h2 {

    font-size: 1.5rem;

    margin-bottom: 16px;

}



.about-block p {

    font-size: 1rem;

    color: var(--text-secondary);

    line-height: 1.8;

}



.about-block a {

    color: var(--accent-primary);

}



.about-features {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    gap: 20px;

    margin: 40px 0;

}



.about-feature {

    padding: 28px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

}



.about-feature-icon {

    font-size: 2rem;

    display: block;

    margin-bottom: 12px;

}



.about-feature h3 {

    font-size: 1.1rem;

    margin-bottom: 8px;

}



.about-feature p {

    font-size: 0.9rem;

    color: var(--text-secondary);

    line-height: 1.5;

}



/* ?? Ad Banner ????????????????????????????????????????? */

.ad-banner {

    max-width: var(--container);

    margin: 0 auto;

    padding: 8px 24px;

    text-align: center;

}



/* ?? Footer ???????????????????????????????????????????? */

.footer {

    background: var(--bg-secondary);

    border-top: 1px solid var(--border);

    padding: 60px 0 32px;

    margin-top: 40px;

}



.footer-grid {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 40px;

    margin-bottom: 40px;

}



.footer-title {

    font-size: 1.2rem;

    margin-bottom: 12px;

}



.footer-desc {

    font-size: 0.9rem;

    color: var(--text-secondary);

    line-height: 1.6;

}



.footer-col h4 {

    font-size: 0.92rem;

    font-weight: 600;

    margin-bottom: 16px;

    color: var(--text-primary);

}



.footer-col a {

    display: block;

    font-size: 0.88rem;

    color: var(--text-secondary);

    padding: 4px 0;

    transition: color var(--transition);

}



.footer-col a:hover {

    color: var(--accent-primary);

}



.footer-bottom {

    padding-top: 24px;

    border-top: 1px solid var(--border);

    text-align: center;

}



.footer-bottom p {

    font-size: 0.85rem;

    color: var(--text-muted);

}



.footer-disclaimer {

    margin-top: 8px;

    font-size: 0.8rem !important;

}



/* ?? Responsive ???????????????????????????????????????? */



/* Tablet landscape */

@media (max-width: 1024px) {

    :root {

        --space-3xl: 60px;

        --space-2xl: 48px;

    }



    .footer-grid {

        grid-template-columns: 1fr 1fr;

    }



    .tools-grid {

        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    }



    .about-features {

        grid-template-columns: repeat(2, 1fr);

    }

}



/* Tablet portrait / large phones */

@media (max-width: 768px) {

    :root {

        --nav-height: 56px;

        --space-3xl: 48px;

        --space-2xl: 36px;

        --space-xl: 28px;

        --space-lg: 18px;

    }



    /* Nav: hide desktop search, show hamburger */

    .nav-search {

        display: none;

    }



    .nav-links {

        display: none;

        position: fixed;

        top: var(--nav-height);

        left: 0;

        right: 0;

        bottom: 0;

        background: var(--bg-primary);

        flex-direction: column;

        padding: var(--space-lg);

        padding-left: calc(var(--space-lg) + var(--safe-left));

        padding-right: calc(var(--space-lg) + var(--safe-right));

        gap: var(--space-xs);

        z-index: 999;

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;

    }



    .nav-links.open {

        display: flex;

    }



    .nav-link {

        padding: 14px 16px;

        font-size: 1rem;

        min-height: var(--touch-min);

        display: flex;

        align-items: center;

    }



    .nav-toggle {

        display: flex;

    }



    /* Mobile search in nav menu */

    .nav-links.open::before {

        content: '';

        display: block;

    }



    /* Hero */

    .hero {

        padding: 48px 0 40px;

    }



    .hero-title {

        font-size: clamp(1.8rem, 5vw, 2.5rem);

    }



    .hero-subtitle {

        font-size: 1rem;

    }



    .hero-subtitle br {

        display: none;

    }



    .hero-stats {

        gap: 28px;

    }



    .stat-number {

        font-size: 1.5rem;

    }



    .hero-search-btn {

        padding: 14px 20px;

        font-size: 0.9rem;

    }



    .hero-search-input {

        padding: 14px 18px;

        font-size: 0.95rem;

    }



    /* Sections */

    .section {

        padding: var(--space-3xl) 0;

    }



    .section-title {

        font-size: 1.5rem;

    }



    .section-header {

        margin-bottom: 32px;

    }



    /* Grids ??single or two columns */

    .tools-grid {

        grid-template-columns: 1fr;

        gap: 14px;

    }



    .situation-grid {

        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

        gap: 12px;

    }



    .category-grid {

        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

        gap: 12px;

    }



    .situations-grid {

        grid-template-columns: 1fr;

    }



    .situation-card-large {

        flex-direction: column;

        gap: 12px;

    }



    .recommend-grid,

    .recommend-grid-large {

        grid-template-columns: 1fr;

    }



    .metric-cards {

        grid-template-columns: 1fr;

    }



    .about-features {

        grid-template-columns: 1fr;

    }



    /* Page header */

    .page-header-content {

        flex-direction: column;

        text-align: center;

    }



    .page-title {

        font-size: 1.6rem;

    }



    .page-header {

        padding: 28px 0 24px;

    }



    /* Footer */

    .footer-grid {

        grid-template-columns: 1fr;

        gap: 28px;

    }



    .footer {

        padding: 40px 0 24px;

    }



    /* Benchmark table ??horizontal scroll */

    .benchmark-table th,

    .benchmark-table td {

        padding: 10px 12px;

        font-size: 0.82rem;

    }



    .benchmark-table-wrapper {

        -webkit-overflow-scrolling: touch;

    }



    /* Filter bar */

    .filter-bar {

        gap: 6px;

    }



    .filter-btn {

        padding: 8px 14px;

        font-size: 0.82rem;

        min-height: var(--touch-min);

    }



    /* Buttons ??bigger touch targets */

    .btn {

        min-height: var(--touch-min);

        padding: 12px 20px;

    }

}



/* Small phones */

@media (max-width: 480px) {

    :root {

        --space-3xl: 36px;

        --space-2xl: 28px;

        --space-xl: 20px;

        --space-lg: 14px;

    }



    .container {

        padding: 0 var(--space-md);

        padding-left: calc(var(--space-md) + var(--safe-left));

        padding-right: calc(var(--space-md) + var(--safe-right));

    }



    .hero-title {

        font-size: 1.7rem;

    }



    .hero-search-input {

        font-size: 0.9rem;

        padding: 12px 14px;

    }



    .hero-search-btn {

        padding: 12px 16px;

    }



    .situation-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

    }



    .situation-card {

        padding: 18px 12px;

    }



    .situation-icon {

        font-size: 1.8rem;

    }



    .situation-title {

        font-size: 0.85rem;

    }



    .category-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

    }



    .category-card {

        padding: 18px 12px;

    }



    .category-icon {

        font-size: 1.8rem;

    }



    .category-name {

        font-size: 0.92rem;

    }



    .hero-stats {

        gap: 20px;

    }



    .stat-number {

        font-size: 1.3rem;

    }



    /* Tool card mobile compact */

    .tool-card {

        padding: 18px;

    }



    .tool-name {

        font-size: 0.95rem;

    }



    .tool-desc {

        font-size: 0.84rem;

        -webkit-line-clamp: 2;

    }



    .tool-tags {

        gap: 4px;

    }



    .tag {

        font-size: 0.72rem;

        padding: 3px 8px;

    }



    /* Recommend cards */

    .recommend-card {

        padding: 20px;

    }



    .recommend-card-large {

        padding: 22px;

    }



    /* Page header mobile */

    .page-icon {

        font-size: 2.2rem;

    }



    .page-title {

        font-size: 1.4rem;

    }



    .page-subtitle {

        font-size: 0.9rem;

    }



    /* Benchmark: card view on tiny screens */

    .benchmark-table {

        font-size: 0.78rem;

    }



    .benchmark-table th,

    .benchmark-table td {

        padding: 8px 10px;

        font-size: 0.78rem;

    }



    /* Section title */

    .section-title {

        font-size: 1.3rem;

    }



    .subsection-title {

        font-size: 1.1rem;

    }



    /* About */

    .about-block h2 {

        font-size: 1.3rem;

    }



    .about-block p {

        font-size: 0.92rem;

    }

}



/* Extra small phones (SE, mini) */

@media (max-width: 360px) {

    .hero-title {

        font-size: 1.5rem;

    }



    .situation-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 8px;

    }



    .situation-card {

        padding: 14px 10px;

    }



    .situation-icon {

        font-size: 1.5rem;

        margin-bottom: 8px;

    }



    .category-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 8px;

    }



    .hero-stats {

        flex-wrap: wrap;

        gap: 16px;

    }

}



/* Hover only on devices that support it (prevent sticky hover on touch) */

@media (hover: hover) and (pointer: fine) {

    .tool-card:hover {

        transform: translateY(-2px);

        box-shadow: var(--shadow);

    }

    .situation-card:hover {

        transform: translateY(-4px);

    }

    .category-card:hover {

        transform: translateY(-4px);

    }

    .recommend-card:hover,

    .recommend-card-large:hover {

        transform: translateY(-2px);

    }

    .situation-card-large:hover {

        transform: translateY(-2px);

    }

}



/* Remove hover transforms on touch devices */

@media (hover: none) {

    .tool-card:hover,

    .situation-card:hover,

    .category-card:hover,

    .recommend-card:hover,

    .recommend-card-large:hover,

    .situation-card-large:hover {

        transform: none;

    }



    /* Active state for touch feedback */

    .tool-card:active,

    .situation-card:active,

    .category-card:active,

    .recommend-card:active,

    .btn:active {

        opacity: 0.85;

        transition: opacity 0.05s;

    }

}



/* ================================================================

   TICKER BAR ??Scrolling Live Banner

   ================================================================ */

.ticker-bar {

    width: 100%;

    background: linear-gradient(90deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);

    border-bottom: 1px solid var(--border);

    overflow: hidden;

    white-space: nowrap;

    height: 36px;

    display: flex;

    align-items: center;

    position: relative;

    z-index: 1001;

}



.ticker-content {

    display: flex;

    width: 100%;

    overflow: hidden;

}



.ticker-track {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    animation: tickerScroll 90s linear infinite;

    padding-left: 100%;

}



.ticker-track:hover {

    animation-play-state: paused;

}



@keyframes tickerScroll {

    0% { transform: translateX(0); }

    100% { transform: translateX(-50%); }

}



.ticker-section-label {

    color: var(--accent-primary);

    font-weight: 700;

    font-size: 0.78rem;

    padding: 2px 10px;

    background: rgba(99, 102, 241, 0.15);

    border-radius: 4px;

    flex-shrink: 0;

}



.ticker-item {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 0.78rem;

    flex-shrink: 0;

}



.ticker-rank {

    color: var(--yellow);

    font-weight: 700;

    font-size: 0.72rem;

}



.ticker-model-name {

    color: var(--text-primary);

    font-weight: 600;

}



.ticker-provider {

    color: var(--text-muted);

    font-size: 0.72rem;

}



.ticker-elo {

    color: var(--green);

    font-weight: 600;

    font-size: 0.72rem;

    background: rgba(16, 185, 129, 0.1);

    padding: 1px 6px;

    border-radius: 3px;

}



.ticker-date {

    color: var(--cyan);

    font-size: 0.7rem;

}



.ticker-divider {

    color: var(--border-light);

    font-size: 0.7rem;

    flex-shrink: 0;

}



/* ================================================================

   RANKING CARDS ??Live Performance Ranking

   ================================================================ */

.ranking-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

    gap: 16px;

}



.ranking-card {

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 20px;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 16px;

    transition: all var(--transition);

    position: relative;

    overflow: hidden;

}



.ranking-card:hover {

    border-color: var(--accent-primary);

    background: var(--bg-card-hover);

}



.ranking-1 {

    border-color: #ffd700;

    border-width: 2px;

    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), var(--bg-card));

    box-shadow: 0 0 12px rgba(255, 215, 0, 0.55), 0 0 28px rgba(255, 215, 0, 0.25), inset 0 0 10px rgba(255, 215, 0, 0.06);

    animation: neon-gold-pulse 2.4s ease-in-out infinite;

}



.ranking-2 {

    border-color: #c0c0c0;

    border-width: 2px;

    background: linear-gradient(135deg, rgba(192, 192, 192, 0.07), var(--bg-card));

    box-shadow: 0 0 10px rgba(192, 192, 192, 0.45), 0 0 22px rgba(192, 192, 192, 0.18), inset 0 0 8px rgba(192, 192, 192, 0.05);

    animation: neon-silver-pulse 2.8s ease-in-out infinite;

}



.ranking-3 {

    border-color: #cd7f32;

    border-width: 2px;

    background: linear-gradient(135deg, rgba(205, 127, 50, 0.07), var(--bg-card));

    box-shadow: 0 0 10px rgba(205, 127, 50, 0.45), 0 0 22px rgba(205, 127, 50, 0.18), inset 0 0 8px rgba(205, 127, 50, 0.05);

    animation: neon-bronze-pulse 3.2s ease-in-out infinite;

}



@keyframes neon-gold-pulse {

    0%, 100% { box-shadow: 0 0 12px rgba(255, 215, 0, 0.55), 0 0 28px rgba(255, 215, 0, 0.25); }

    50%       { box-shadow: 0 0 20px rgba(255, 215, 0, 0.85), 0 0 45px rgba(255, 215, 0, 0.45), 0 0 60px rgba(255, 215, 0, 0.15); }

}



@keyframes neon-silver-pulse {

    0%, 100% { box-shadow: 0 0 10px rgba(192, 192, 192, 0.45), 0 0 22px rgba(192, 192, 192, 0.18); }

    50%       { box-shadow: 0 0 16px rgba(192, 192, 192, 0.7), 0 0 36px rgba(192, 192, 192, 0.35), 0 0 50px rgba(192, 192, 192, 0.12); }

}



@keyframes neon-bronze-pulse {

    0%, 100% { box-shadow: 0 0 10px rgba(205, 127, 50, 0.45), 0 0 22px rgba(205, 127, 50, 0.18); }

    50%       { box-shadow: 0 0 16px rgba(205, 127, 50, 0.7), 0 0 36px rgba(205, 127, 50, 0.35), 0 0 50px rgba(205, 127, 50, 0.12); }

}



.ranking-position {

    display: flex;

    flex-direction: column;

    align-items: center;

    min-width: 40px;

}



.ranking-crown {

    font-size: 1.2rem;

    margin-bottom: 2px;

}



.ranking-number {

    font-weight: 900;

    font-size: 1.4rem;

    background: var(--accent-gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.ranking-info {

    flex: 1;

    min-width: 100px;

}



.ranking-model-name {

    font-weight: 700;

    font-size: 1.05rem;

    color: var(--text-primary);

    margin-bottom: 2px;

}



.ranking-provider {

    font-size: 0.82rem;

    color: var(--text-muted);

}



.ranking-scores {

    display: flex;

    gap: 12px;

    align-items: center;

}



.ranking-elo {

    display: flex;

    flex-direction: column;

    align-items: center;

    background: rgba(16, 185, 129, 0.1);

    padding: 6px 12px;

    border-radius: var(--radius-sm);

}



.elo-value {

    font-weight: 800;

    font-size: 1.2rem;

    color: var(--green);

}



.elo-label {

    font-size: 0.68rem;

    color: var(--text-muted);

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.ranking-metric {

    display: flex;

    flex-direction: column;

    align-items: center;

}



.metric-value {

    font-weight: 600;

    font-size: 0.9rem;

    color: var(--text-primary);

}



.metric-label {

    font-size: 0.65rem;

    color: var(--text-muted);

    text-transform: uppercase;

}



.ranking-date {

    position: absolute;

    top: 8px;

    right: 12px;

    font-size: 0.7rem;

    color: var(--text-muted);

    background: rgba(255,255,255,0.05);

    padding: 2px 8px;

    border-radius: 4px;

}



/* ================================================================

   LIVE BADGE

   ================================================================ */

.live-badge {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    color: var(--green);

    font-weight: 600;

    font-size: 0.78rem;

    background: rgba(16, 185, 129, 0.1);

    padding: 2px 10px;

    border-radius: 20px;

    animation: livePulse 2s ease-in-out infinite;

}



@keyframes livePulse {

    0%, 100% { opacity: 1; }

    50% { opacity: 0.6; }

}



.live-pulse {

    color: var(--green) !important;

    animation: livePulse 2s ease-in-out infinite;

}



.update-time {

    color: var(--text-muted);

    font-size: 0.78rem;

    margin-left: 8px;

}



/* ================================================================

   BOOKMARK BUTTON & MODAL

   ================================================================ */

.bookmark-btn {

    display: flex;

    align-items: center;

    gap: 4px;

    background: rgba(245, 158, 11, 0.1);

    border: 1px solid rgba(245, 158, 11, 0.3);

    color: var(--yellow);

    padding: 6px 14px;

    border-radius: var(--radius);

    cursor: pointer;

    font-size: 0.82rem;

    font-weight: 600;

    font-family: var(--font);

    transition: all var(--transition);

    flex-shrink: 0;

    white-space: nowrap;

}



.bookmark-btn:hover {

    background: rgba(245, 158, 11, 0.2);

    border-color: var(--yellow);

}



.bookmark-icon {

    font-size: 1rem;

}



.bookmark-modal {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.7);

    z-index: 10000;

    justify-content: center;

    align-items: center;

    backdrop-filter: blur(4px);

}



.bookmark-modal.active {

    display: flex;

}



.bookmark-modal-content {

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    padding: 40px;

    max-width: 440px;

    width: 90%;

    text-align: center;

    position: relative;

}



.bookmark-close {

    position: absolute;

    top: 12px;

    right: 16px;

    background: none;

    border: none;

    color: var(--text-muted);

    font-size: 1.5rem;

    cursor: pointer;

    transition: color var(--transition);

}



.bookmark-close:hover {

    color: var(--text-primary);

}



.bookmark-modal-icon {

    font-size: 3rem;

    margin-bottom: 16px;

}



.bookmark-modal-content h3 {

    font-size: 1.3rem;

    margin-bottom: 12px;

}



.bookmark-name-preview {

    background: rgba(99, 102, 241, 0.1);

    border: 1px solid rgba(99, 102, 241, 0.3);

    border-radius: var(--radius-sm);

    padding: 10px 16px;

    margin: 16px 0;

    font-size: 0.95rem;

}



.bookmark-name-preview strong {

    color: var(--accent-primary);

}



.bookmark-instructions {

    text-align: left;

    margin: 20px 0;

}



.bookmark-instruction {

    margin-bottom: 16px;

}



.bookmark-instruction h4 {

    font-size: 0.9rem;

    margin-bottom: 4px;

    color: var(--text-secondary);

}



.bookmark-instruction p {

    font-size: 0.85rem;

    color: var(--text-muted);

}



kbd {

    background: var(--bg-accent);

    border: 1px solid var(--border-light);

    border-radius: 4px;

    padding: 2px 8px;

    font-size: 0.82rem;

    font-family: monospace;

}



.bookmark-action {

    width: 100%;

    margin-top: 8px;

}



/* ================================================================

   BENCHMARK INFO BOX

   ================================================================ */

.benchmark-info-box {

    background: rgba(99, 102, 241, 0.08);

    border: 1px solid rgba(99, 102, 241, 0.2);

    border-radius: var(--radius);

    padding: 16px 20px;

    margin: 24px 0;

    font-size: 0.9rem;

    color: var(--text-secondary);

}



/* Badge NEW */

.badge-new {

    background: var(--green);

    color: #fff;

    font-size: 0.65rem;

    padding: 2px 6px;

    border-radius: 4px;

    font-weight: 700;

    margin-left: 6px;

    vertical-align: middle;

}



/* Footer update line */

.footer-update {

    font-size: 0.78rem;

    color: var(--text-muted);

    margin-top: 8px;

}



/* ================================================================

   RESPONSIVE ??TICKER & RANKING

   ================================================================ */

@media (max-width: 768px) {

    .ticker-bar {

        height: 32px;

    }

    .ticker-item {

        font-size: 0.72rem;

    }

    .ranking-grid {

        grid-template-columns: 1fr;

    }

    .ranking-card {

        padding: 14px;

    }

    .bookmark-btn .bookmark-text {

        display: none;

    }

    .bookmark-btn {

        padding: 6px 10px;

    }

    .ranking-scores {

        gap: 8px;

    }

}



@media (max-width: 480px) {

    .ticker-bar {

        height: 28px;

    }

    .ticker-section-label {

        font-size: 0.7rem;

    }

    .ranking-number {

        font-size: 1.1rem;

    }

    .elo-value {

        font-size: 1rem;

    }

}



/* Prefer reduced motion */

@media (prefers-reduced-motion: reduce) {

    .ticker-track {

        animation: none;

    }

    .live-badge {

        animation: none;

    }

    .live-pulse {

        animation: none;

    }

}



/* Landscape phones */

@media (max-height: 500px) and (orientation: landscape) {

    .hero {

        padding: 30px 0 20px;

    }



    .hero-title {

        font-size: 1.6rem;

    }



    .hero-subtitle {

        margin-bottom: 20px;

    }



    .section {

        padding: 32px 0;

    }

}



/* Reduced motion preference */

@media (prefers-reduced-motion: reduce) {

    *,

    *::before,

    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }



    html {

        scroll-behavior: auto;

    }

}



/* ?? Animations ???????????????????????????????????????? */

@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



.tool-card,

.situation-card,

.category-card,

.recommend-card,

.situation-card-large,

.recommend-card-large {

    animation: fadeInUp 0.4s ease both;

}



/* Stagger animation for grids */

.tools-grid > :nth-child(1) { animation-delay: 0.02s; }

.tools-grid > :nth-child(2) { animation-delay: 0.04s; }

.tools-grid > :nth-child(3) { animation-delay: 0.06s; }

.tools-grid > :nth-child(4) { animation-delay: 0.08s; }

.tools-grid > :nth-child(5) { animation-delay: 0.1s; }

.tools-grid > :nth-child(6) { animation-delay: 0.12s; }

.tools-grid > :nth-child(7) { animation-delay: 0.14s; }

.tools-grid > :nth-child(8) { animation-delay: 0.16s; }

.tools-grid > :nth-child(9) { animation-delay: 0.18s; }

.tools-grid > :nth-child(10) { animation-delay: 0.2s; }

.tools-grid > :nth-child(11) { animation-delay: 0.22s; }

.tools-grid > :nth-child(12) { animation-delay: 0.24s; }



/* ?? Print ????????????????????????????????????????????? */

@media print {

    .navbar, .footer, .ad-banner, .hero-bg-effect {

        display: none;

    }



    body {

        background: white;

        color: black;

    }

}



/* ================================================================

   BOOKMARK ??New PWA / Tab system

   ================================================================ */

.fav-count {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: var(--accent-primary);

    color: #fff;

    font-size: 0.7rem;

    font-weight: 700;

    min-width: 18px;

    height: 18px;

    border-radius: 9px;

    padding: 0 4px;

    margin-left: 4px;

}



.bookmark-btn.installable .bookmark-icon { animation: pulse 1.5s infinite; }

.bookmark-btn.installed .bookmark-icon { filter: saturate(3); }



.bm-tabs {

    display: flex;

    gap: 6px;

    margin: 16px 0 14px;

    flex-wrap: wrap;

    justify-content: center;

}

.bm-tab {

    background: transparent;

    border: 1px solid var(--border);

    color: var(--text-muted);

    border-radius: 20px;

    padding: 5px 14px;

    font-size: 0.82rem;

    cursor: pointer;

    transition: all .2s;

}

.bm-tab.active, .bm-tab:hover { border-color: var(--accent-primary); background: rgba(99,102,241,.12); color: var(--text-primary); }



.bm-pane { text-align: left; }

.bm-guide-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 12px; }

.bm-step {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px 12px;

    background: rgba(255,255,255,.04);

    border-radius: var(--radius-sm);

    margin-bottom: 6px;

    font-size: 0.88rem;

}

.bm-step-num {

    background: var(--accent-primary);

    color: #fff;

    border-radius: 50%;

    width: 22px;

    height: 22px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 0.75rem;

    flex-shrink: 0;

}

.bm-note { color: var(--text-muted); font-size: 0.8rem; text-align: center; margin-top: 8px; }

.bm-ios-icon {

    text-align: center;

    padding: 14px;

    background: rgba(99,102,241,.1);

    border-radius: var(--radius-sm);

    font-weight: 600;

    color: var(--accent-primary);

    margin-top: 12px;

    font-size: 1rem;

}



/* ?? Tool card favorite star button ?? */

.tool-card { position: relative; }

.tool-fav-btn {

    position: absolute;

    top: 10px;

    right: 10px;

    background: none;

    border: none;

    font-size: 1.3rem;

    cursor: pointer;

    color: var(--text-muted);

    transition: color .2s, transform .15s;

    line-height: 1;

    z-index: 2;

}

.tool-fav-btn:hover { transform: scale(1.3); }

.tool-fav-btn.active { color: #fbbf24; }



/* ?? Toast notification ?? */

#asiToast {

    position: fixed;

    bottom: 30px;

    left: 50%;

    transform: translateX(-50%) translateY(20px);

    background: rgba(30,30,50,.95);

    color: #fff;

    padding: 10px 22px;

    border-radius: 100px;

    font-size: 0.9rem;

    pointer-events: none;

    opacity: 0;

    transition: opacity .25s, transform .25s;

    z-index: 99999;

    white-space: nowrap;

    border: 1px solid var(--border-light);

}

#asiToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }



/* ================================================================

   APP AD BANNER

   ================================================================ */

.promo-banner {

    width: 100%;

    background: linear-gradient(135deg, #0d1117 0%, #131b2e 100%);

    border-top: 1px solid rgba(99,102,241,.2);

    border-bottom: 1px solid rgba(99,102,241,.2);

}

.promo-link { display: block; text-decoration: none; color: inherit; }

.promo-inner {

    max-width: 900px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 14px 20px;

    position: relative;

}

.promo-img-wrap {

    flex-shrink: 0;

    width: 140px;

    height: 140px;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 4px 16px rgba(0,0,0,.4);

}

.promo-img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: opacity .3s;

}

.promo-copy { flex: 1; }

.promo-label {

    display: inline-block;

    background: linear-gradient(90deg, #6366f1, #8b5cf6);

    color: #fff;

    font-size: 0.72rem;

    font-weight: 700;

    padding: 2px 10px;

    border-radius: 100px;

    margin-bottom: 5px;

    letter-spacing: .03em;

}

.promo-title {

    font-size: 1rem;

    font-weight: 700;

    color: #fff;

    margin-bottom: 3px;

}

.promo-desc {

    font-size: 0.8rem;

    color: #94a3b8;

    line-height: 1.5;

    margin-bottom: 8px;

}

.promo-badge { height: 36px; display: block; }

.promo-close {

    position: absolute;

    top: 8px;

    right: 12px;

    background: rgba(255,255,255,.07);

    border: none;

    color: #94a3b8;

    width: 24px;

    height: 24px;

    border-radius: 50%;

    cursor: pointer;

    font-size: 0.75rem;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: background .2s;

}

.promo-close:hover { background: rgba(255,255,255,.14); color: #fff; }



#promoSlot1 .promo-banner { border-top: none; }

#promoSlot2 .promo-banner { border-bottom: none; border-top: 1px solid rgba(99,102,241,.15); }



@media (max-width: 480px) {

    .promo-img-wrap { width: 90px; height: 90px; }

    .promo-title { font-size: 0.9rem; }

    .promo-desc { display: none; }

    .promo-badge { height: 30px; }

}

