/* ==== MAGOODS PRODUCTS PRICING PAGE ==== */

:root {
    --primary: #007ea7;
    --mint: #00a8e8;
    --semi-dark: hsl(201 100% 8%);
    --light: #ffffff;
    --gray: rgba(255, 255, 255, 0.85);
    --darkGray: rgba(255, 255, 255, 0.6);
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Layout */
html,
body {
    overflow-x: hidden;
}

.mg-products-section {
    display: flex;
    gap: 0;
    position: relative;
}

/* Main Content */
.mg-products-main {
    flex: 1;
    width: 100%;
    transition: all 0.3s var(--transition);
}

.mg-products-container {
    padding: 40px 20px;
}

/* Toggle Button */
.mg-toggle-wrapper {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 100;
}

.mg-btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #007ea7, #00a8e8);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
}

.mg-btn-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.5);
}

/* Header */
.mg-products-header {
    text-align: center;
    margin-bottom: 50px;
    animation: slideInDown 0.6s var(--transition) forwards;
}

.mg-header-content {
    margin-bottom: 24px;
}

.mg-products-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #007ea7, #00a8e8, #00c9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(135deg, #007ea7, #00a8e8, #00c9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mg-products-tagline {
    font-size: 16px;
    color: var(--darkGray);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Alerts */
.mg-alert {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
}

.mg-alert-danger {
    background: rgba(255, 79, 79, 0.1);
    border: 1px solid rgba(255, 79, 79, 0.3);
    color: #ff4f4f;
}

.mg-alert-info {
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.3);
    color: #00a8e8;
}

/* Products Grid */
.mg-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.mg-product-card-wrapper {
    animation: cardFadeIn 0.5s var(--transition) forwards;
    opacity: 0;
}

.mg-product-card-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.mg-product-card-wrapper:nth-child(2) {
    animation-delay: 0.2s;
}

.mg-product-card-wrapper:nth-child(3) {
    animation-delay: 0.3s;
}

.mg-product-card-wrapper:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Card */
.mg-product-card {
    position: relative;
    height: 100%;
    background: rgba(0, 23, 31, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 168, 232, 0.2);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: all 0.3s var(--transition);
    overflow: hidden;
    contain: layout style;
}

@media (max-width: 768px) {
    .mg-product-card {
        backdrop-filter: blur(10px);
        padding: 24px;
    }
}

.mg-product-card:hover {
    border-color: rgba(0, 168, 232, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37), 0 0 40px rgba(0, 168, 232, 0.25);
    transform: translateY(-8px);
}

.mg-product-card.featured {
    border-color: rgba(0, 168, 232, 0.4);
    background: rgba(0, 23, 31, 0.75);
    box-shadow: 0 0 40px rgba(0, 168, 232, 0.2);
}

/* Featured Badge */
.mg-featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 168, 232, 0.15);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 20px;
    color: #00a8e8;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.mg-badge-glow {
    position: absolute;
    top: -4px;
    right: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    background: conic-gradient(#00a8e8, #00c9ff, #00a8e8);
    border-radius: 20px;
    opacity: 0;
    animation: badgePulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Card Header */
.mg-card-header {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 168, 232, 0.2);
}

.mg-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.mg-plan-tagline {
    font-size: 13px;
    color: var(--darkGray);
    margin: 0;
    min-height: 36px;
    display: flex;
    align-items: center;
}

/* Pricing */
.mg-card-pricing {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mg-price-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mg-price-main {
    font-size: 32px;
    font-weight: 700;
    color: #00a8e8;
    line-height: 1;
}

.mg-billing-cycle,
.mg-setup-fee,
.mg-from-label {
    font-size: 12px;
    color: var(--darkGray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mg-bundle-label {
    font-size: 11px;
    background: rgba(0, 168, 232, 0.2);
    color: #00a8e8;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
}

/* CTA Button */
.mg-card-action {
    display: flex;
    gap: 12px;
}

.mg-btn-order {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #007ea7, #00a8e8);
    border: none;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
}

.mg-btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.5);
}

.mg-btn-order i {
    transition: transform 0.3s ease;
}

.mg-btn-order:hover i {
    transform: translateX(4px);
}

.mg-btn-unavailable {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0, 168, 232, 0.1);
    border: 1.5px solid rgba(0, 168, 232, 0.2);
    border-radius: 12px;
    color: var(--darkGray);
    font-weight: 700;
    font-size: 15px;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Features */
.mg-card-features {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 168, 232, 0.2);
}

.mg-features-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mg-features-title i {
    color: #00a8e8;
}

.mg-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mg-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--darkGray);
    line-height: 1.4;
}

.mg-feature-item i {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

/* Smart Icon Colors */
.mg-feature-item i.fa-memory {
    color: #ffa500;
}

.mg-feature-item i.fa-microchip {
    color: #ff6b9d;
}

.mg-feature-item i.fa-database {
    color: #00d26a;
}

.mg-feature-item i.fa-ethernet {
    color: #00d9ff;
}

.mg-feature-item i.fa-envelope {
    color: #a78bfa;
}

.mg-feature-item i.fa-lock {
    color: #ff6b9d;
}

.mg-feature-item i.fa-globe {
    color: #00a8e8;
}

.mg-feature-item i.fa-headset {
    color: #a78bfa;
}

.mg-feature-item i.fa-check {
    color: #00d26a;
}

/* Card Glow */
.mg-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.1), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mg-product-card:hover .mg-card-glow {
    opacity: 1;
}

/* Included Features Footer */
.mg-included-features {
    background: rgba(0, 52, 89, 0.2);
    border: 1px solid rgba(0, 168, 232, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    animation: slideInUp 0.6s var(--transition) forwards;
}

.mg-features-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 30px 0;
}

.mg-features-footer-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.mg-feature-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--darkGray);
    font-weight: 500;
}

.mg-feature-line i {
    color: #00a8e8;
    font-size: 16px;
}

.mg-feature-text {
    line-height: 1.4;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .mg-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mg-products-grid {
        grid-template-columns: 1fr;
    }

    .mg-products-title {
        font-size: 24px;
    }

    .mg-featured-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .mg-price-main {
        font-size: 24px;
    }

    .mg-features-footer-list {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .mg-toggle-wrapper {
        display: none;
    }

    .mg-products-container {
        padding: 20px;
    }

    .mg-product-card {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

*:focus-visible {
    outline: 2px solid #00a8e8;
    outline-offset: 2px;
}