/* public/css/pricing.css - Full file cho trang pricing */

/* Pricing Hero Section */
.pricing-hero {
    padding: 140px 0 60px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb i {
    font-size: 10px;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-primary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.billing-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    text-align: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-secondary);
    transition: var(--transition-normal);
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-normal);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

input:checked+.slider {
    background: var(--gradient-primary);
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.discount-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    font-weight: 700;
    margin-left: 8px;
    animation: pulse-badge 2s infinite;
    white-space: nowrap;
    display: inline-block;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Pricing notice */
.pricing-notice {
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.notice-content i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.pricing-wrapper {
    padding-top: 60px;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 2px solid var(--border-primary);
    padding: 40px 30px;
    position: relative;
    transition: var(--transition-normal);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    transition: var(--transition-slow);
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 255, 0.02) 100%);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-card.exclusive {
    border-color: #7c3aed;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124, 58, 237, 0.02) 100%);
}

/* Badges */
.popular-badge {
    position: absolute;
    top: 0px;
    left: 80%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 99;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    min-height: 40px;
}

.popular-badge i {
    animation: sparkle 2s infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

.lifetime-badge {
    position: absolute;
    top: 0px;
    left: 83%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    min-height: 40px;
}

.lifetime-badge i {
    animation: infinity-spin 3s linear infinite;
}

@keyframes infinity-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.plan-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: white;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.card-header h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: var(--font-size-sm);
}

.card-price {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.price-display {
    margin-bottom: 12px;
}

.price-amount {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.price-period {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-left: 4px;
}

.price-note {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.save-note {
    color: #22c55e;
    font-weight: 500;
    font-size: var(--font-size-sm);
    font-style: italic;
}

.hidden {
    display: none;
}

.card-features {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.feature-list i {
    margin-top: 2px;
    font-size: var(--font-size-xs);
    flex-shrink: 0;
}

.feature-list .fas.fa-check {
    color: #22c55e;
}

.feature-list .fas.fa-times {
    color: var(--text-muted);
}

.feature-list strong {
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted);
}

.card-action {
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: var(--font-size-base);
    font-weight: 600;
}

.trial-note {
    margin-top: 12px;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Feature Comparison Table */
.feature-comparison {
    padding: var(--section-padding);
}

.comparison-wrapper {
    margin-top: 50px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-primary);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.comparison-table {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.comparison-table::-webkit-scrollbar {
    display: none;
}

.comparison-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) var(--scroll-progress, 0%), var(--border-primary) var(--scroll-progress, 0%));
    transition: var(--transition-fast);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-primary);
}

.header-cell {
    padding: 30px 20px;
    text-align: center;
    border-right: 1px solid var(--border-primary);
    position: relative;
}

.header-cell:last-child {
    border-right: none;
}

.header-cell.featured {
    background: rgba(0, 212, 255, 0.05);
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.header-cell h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 8px;
    color: var(--text-primary);
}

.plan-price {
    display: block;
    font-size: var(--font-size-base);
    color: var(--primary-color);
    font-weight: 600;
}

.popular-tag {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.table-body {
    display: flex;
    flex-direction: column;
}

.feature-group {
    border-bottom: 1px solid var(--border-primary);
}

.feature-group:last-child {
    border-bottom: none;
}

.group-header {
    background: var(--bg-secondary);
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--border-primary);
}

.group-header h5 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin: 0;
}

.group-header i {
    color: var(--primary-color);
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-primary);
    transition: var(--transition-fast);
}

.table-row:hover {
    background: rgba(0, 212, 255, 0.02);
}

.table-row:last-child {
    border-bottom: none;
} 

.feature-cell {
    padding: 20px;
    border-right: 1px solid var(--border-primary);
}

.feature-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: var(--font-size-sm);
}

.feature-desc {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    line-height: 1.4;
}

.value-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 1px solid var(--border-primary);
}

.value-cell:last-child {
    border-right: none;
}

.value-cell i {
    font-size: var(--font-size-lg);
}

.text-success {
    color: #22c55e;
}

.feature-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    text-align: center;
}

.comparison-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
}

.comparison-note i {
    color: var(--primary-color);
}

.comparison-scroll-hint {
    display: none;
}

/* FAQ Section */
.faq {
    padding: var(--section-padding);
}

.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition-normal);
}

.faq-question:hover {
    background: rgba(0, 212, 255, 0.02);
}

.faq-question h4 {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-secondary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 24px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Other Tools Section */
.other-tools {
    padding: var(--section-padding);
}

.tools-header {
    text-align: center;
    margin-bottom: 50px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tool-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-primary);
    padding: 24px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    transition: var(--transition-slow);
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tool-card.trending {
    border-color: #ff6b35;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 107, 53, 0.02) 100%);
}

.tool-card.hot {
    border-color: #ef4444;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(239, 68, 68, 0.02) 100%);
}

.tool-card.exclusive {
    border-color: #7c3aed;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124, 58, 237, 0.02) 100%);
}

.tool-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    color: white;
}

.tool-icon.kylan {
    background: linear-gradient(135deg, #ff6b35, #ff8a65);
}

.tool-icon.okvip {
    background: linear-gradient(135deg, #00d4ff, #0ea5e9);
}

.tool-icon.seo {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.tool-icon.myaloha {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.tool-icon.browser {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.tool-badge {
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-badge.trending {
    background: linear-gradient(135deg, #ff6b35, #ff8a65);
    color: white;
    animation: badge-glow 2s infinite;
}

.tool-badge.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: badge-pulse 1.5s infinite;
}

.tool-badge.new {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: white;
}

.tool-badge.exclusive {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
    }
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.tool-content {
    position: relative;
    z-index: 1;
}

.tool-content h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tool-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: var(--font-size-sm);
}

.tool-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.stat i {
    color: var(--primary-color);
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    padding: 4px 8px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.tool-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.tool-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-price {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--primary-color);
}

.original-price {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-period {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-left: 4px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

.tools-cta {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
}

.tools-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
}

.tools-cta .cta-content {
    position: relative;
    z-index: 1;
}

.tools-cta h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tools-cta p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: var(--font-size-base);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Final CTA */
.final-cta {
    padding: var(--section-padding);
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.final-cta .cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.final-cta p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.final-cta .cta-buttons {
    margin-bottom: 30px;
}

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.cta-note i {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 120px 0 40px;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .billing-toggle {
        flex-direction: column;
        gap: 16px;
        padding: 20px 16px;
        max-width: 100%;
        margin: 40px 16px 0;
    }

    .discount-badge {
        margin-left: 0;
        margin-top: 4px;
    }

    .pricing-notice {
        margin: 40px 16px 0;
    }

    .notice-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px;
    }

    .notice-content i {
        font-size: var(--font-size-xl);
    }

    .pricing-cards {
        padding: 80px 0 var(--section-padding);
    }

    .pricing-wrapper {
        padding-top: 40px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .comparison-wrapper {
        margin: 50px 0 0;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .comparison-table {
        min-width: 100%;
        font-size: var(--font-size-xs);
    }

    .table-header,
    .table-row {
        grid-template-columns: 140px 70px 80px 70px;
        min-width: 360px;
    }

    .header-cell {
        padding: 16px 8px;
        text-align: center;
    }

    .header-cell h4 {
        font-size: var(--font-size-sm);
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .plan-price {
        font-size: var(--font-size-xs);
        line-height: 1.2;
        word-break: break-word;
    }

    .popular-tag {
        top: -8px;
        font-size: 8px;
        padding: 2px 6px;
        transform: translateX(-50%) scale(0.8);
    }

    .feature-cell {
        padding: 12px 8px;
        border-right: 1px solid var(--border-primary);
    }

    .feature-name {
        font-size: var(--font-size-xs);
        margin-bottom: 2px;
        line-height: 1.3;
    }

    .feature-desc {
        display: none;
    }

    .value-cell {
        padding: 12px 4px;
        border-right: 1px solid var(--border-primary);
    }

    .value-cell:last-child {
        border-right: none;
    }

    .value-cell i {
        font-size: var(--font-size-base);
    }

    .feature-value {
        font-size: var(--font-size-xs);
        line-height: 1.2;
        text-align: center;
        word-break: break-word;
    }

    .group-header {
        padding: 12px 8px;
    }

    .group-header h5 {
        font-size: var(--font-size-xs);
        gap: 8px;
    }

    .group-header i {
        font-size: var(--font-size-xs);
    }

    .comparison-scroll-hint {
        display: block;
        text-align: center;
        padding: 12px;
        background: rgba(0, 212, 255, 0.1);
        color: var(--primary-color);
        font-size: var(--font-size-xs);
        border-top: 1px solid var(--border-primary);
    }

    .comparison-scroll-hint i {
        margin-right: 8px;
        animation: scroll-arrow 2s infinite;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-header {
        align-items: center;
    }

    .tool-action {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tools-cta {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {

    .table-header,
    .table-row {
        grid-template-columns: 120px 60px 70px 60px;
        min-width: 310px;
    }

    .header-cell {
        padding: 12px 4px;
    }

    .header-cell h4 {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .plan-price {
        font-size: 10px;
    }

    .feature-cell {
        padding: 10px 4px;
    }

    .feature-name {
        font-size: 11px;
    }

    .value-cell {
        padding: 10px 2px;
    }

    .feature-value {
        font-size: 10px;
    }

    .popular-tag {
        font-size: 7px;
        padding: 1px 4px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .plan-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }

    .price-amount {
        font-size: var(--font-size-2xl);
    }

    .feature-list li {
        font-size: var(--font-size-xs);
        gap: 8px;
    }

    .tool-card {
        padding: 20px;
    }

    .tool-stats {
        flex-direction: column;
        gap: 8px;
    }

    .lifetime-badge,
    .popular-badge {
        padding: 10px 20px;
        font-size: var(--font-size-xs);
        min-height: 36px;
        top: 0px;
    }

    .billing-label {
        font-size: var(--font-size-xs);
        line-height: 1.4;
    }

    .notice-content {
        font-size: var(--font-size-xs);
        padding: 12px;
    }

    .discount-badge {
        padding: 2px 6px;
        font-size: 10px;
    }
}

@keyframes scroll-arrow {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* Loading animations */
.pricing-card,
.tool-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

.tool-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tool-card:nth-child(2) {
    animation-delay: 0.2s;
}

.tool-card:nth-child(3) {
    animation-delay: 0.3s;
}

.tool-card:nth-child(4) {
    animation-delay: 0.4s;
}

.tool-card:nth-child(5) {
    animation-delay: 0.5s;
}

.tool-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .popular-badge i,
    .lifetime-badge i,
    .discount-badge,
    .tool-badge.trending,
    .tool-badge.hot {
        animation: none;
    }

    .comparison-scroll-hint i {
        animation: none;
    }
}

/* Print styles */
@media print {

    .pricing-hero::before,
    .final-cta::before,
    .tools-cta::before {
        display: none;
    }

    .other-tools {
        break-inside: avoid;
    }

    .pricing-card {
        break-inside: avoid;
    }

    .comparison-table {
        break-inside: avoid;
    }
}