/* Custom Package Design Styles */

.package-gauge {
    position: relative;
    width: 100%;
    margin: 0 auto 25px;
    padding: 0 10px;
}

.gauge-container {
    position: relative;
    width: 100%;
}

/* Plan Name and Percentage - Inside Gauge */
.gauge-plan-name {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    text-align: center;
}

.gauge-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    z-index: 1;
    text-align: center;
}

/* Semi-Circular Gauge Design */
.gauge-horizontal {
    position: relative;
    width: 100%;
    height: 140px;
    margin: 20px 0;
}

.gauge-track {
    position: relative;
    width: 100%;
    height: 120px;
    margin: 0 auto;
}

/* Semi-circular gauge arc */
.gauge-semi-circle {
    position: relative;
    width: 220px;
    height: 110px;
    margin: 0 auto;
}

.gauge-arc {
    width: 220px;
    height: 110px;
    border: 14px solid #ffd700;
    border-bottom: none;
    border-radius: 110px 110px 0 0;
    position: relative;
    overflow: visible;
    background: transparent;
    z-index: 2;
}

/* Red fill arc - fills from left (Low) side using SVG approach */
.gauge-fill-arc {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 14px solid #ff3e3f;
    border-bottom: none;
    border-radius: 110px 110px 0 0;
    border-right-color: transparent;
    animation: fillArc 1.2s ease forwards;
    transform-origin: bottom left;
    z-index: 1;
}

.gauge-fill-arc.starter {
    clip-path: polygon(0 100%, 0 0, 15% 0, 15% 100%);
    animation-delay: 0.3s;
}
.gauge-fill-arc.basic {
    clip-path: polygon(0 100%, 0 0, 25% 0, 25% 100%);
    animation-delay: 0.5s;
}
.gauge-fill-arc.startup {
    clip-path: polygon(0 100%, 0 0, 35% 0, 35% 100%);
    animation-delay: 0.7s;
}
.gauge-fill-arc.premium {
    clip-path: polygon(0 100%, 0 0, 45% 0, 45% 100%);
    animation-delay: 0.9s;
}
.gauge-fill-arc.advanced {
    clip-path: polygon(0 100%, 0 0, 60% 0, 60% 100%);
    animation-delay: 1.1s;
}
.gauge-fill-arc.ultimate {
    clip-path: polygon(0 100%, 0 0, 90% 0, 90% 100%);
    animation-delay: 1.3s;
}

@keyframes fillArc {
    from {
        clip-path: polygon(0 100%, 0 0, 0% 0, 0% 100%);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Labels below gauge */
.gauge-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.gauge-labels span:first-child {
    color: #333;
}

.gauge-labels span:last-child {
    color: #333;
    font-weight: 600;
}

.package-speed {
    text-align: center;
    margin: 20px 0;
}

.package-speed .speed-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.package-speed .speed-value {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.package-speed .speed-unit {
    font-size: 24px;
    color: #666;
    margin-left: 5px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.package-features li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: #333;
    font-size: 14px;
}

.package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff3e3f;
    font-weight: bold;
    font-size: 18px;
}

.package-price {
    text-align: center;
    margin: 25px 0;
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.package-price .currency {
    font-size: 24px;
}

.package-price .period {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

.purchase-btn {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background: #ff3e3f;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.purchase-btn:hover {
    background: #d60939;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 62, 63, 0.3);
}

.package-card-custom {
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.package-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .package-gauge {
        width: 100%;
        margin: 0 auto 20px;
        padding: 0 5px;
    }
    
    .gauge-container {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .gauge-horizontal {
        height: 120px;
        margin: 15px 0;
    }
    
    .gauge-track {
        height: 100px;
    }
    
    .gauge-semi-circle {
        width: 180px;
        height: 90px;
        margin: 0 auto;
    }
    
    .gauge-arc {
        width: 180px;
        height: 90px;
        border-width: 10px;
        border-radius: 90px 90px 0 0;
        border-color: #ffd700;
    }
    
    .gauge-fill-arc {
        border-width: 10px;
        border-radius: 90px 90px 0 0;
    }
    
    .gauge-plan-name {
        font-size: 14px;
        top: 18%;
    }
    
    .gauge-percentage {
        font-size: 28px;
        top: 48%;
    }
    
    .gauge-labels {
        width: 180px;
        margin: 10px auto 0;
        font-size: 11px;
        padding: 0 5px;
    }
    
    .package-speed .speed-value {
        font-size: 36px;
    }
    
    .package-speed .speed-unit {
        font-size: 20px;
    }
    
    .package-card-custom {
        padding: 20px 15px;
    }
    
    .package-features li {
        font-size: 13px;
        padding-left: 25px;
    }
    
    .package-features li:before {
        font-size: 16px;
    }
    
    .package-price {
        font-size: 28px;
        margin: 20px 0;
    }
    
    .package-price .currency {
        font-size: 20px;
    }
    
    .package-price .period {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .gauge-semi-circle {
        width: 160px;
        height: 80px;
    }
    
    .gauge-arc {
        width: 160px;
        height: 80px;
        border-width: 8px;
        border-radius: 80px 80px 0 0;
        border-color: #ffd700;
    }
    
    .gauge-fill-arc {
        border-width: 8px;
        border-radius: 80px 80px 0 0;
    }
    
    .gauge-plan-name {
        font-size: 12px;
        top: 15%;
    }
    
    .gauge-percentage {
        font-size: 24px;
        top: 45%;
    }
    
    .gauge-labels {
        width: 160px;
        font-size: 10px;
    }
    
    .gauge-horizontal {
        height: 100px;
    }
    
    .gauge-track {
        height: 85px;
    }
    
    .package-speed .speed-value {
        font-size: 32px;
    }
    
    .package-speed .speed-unit {
        font-size: 18px;
    }
}

