/* =========================================
   Product Card V5 - "Luminous Tech"
   Features: Glassmorphism hints, Vibrant Gradients, Inner Badges
   ========================================= */

.product-card-v5 {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem; /* Reduced padding */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

/* Featured Card Styling */
.product-card-v5.featured {
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
}

.product-card-v5.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

/* Hover Effects */
.product-card-v5:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Header Area */
.v5-header {
    margin-bottom: 1rem; /* Reduced margin */
    position: relative;
    z-index: 1;
}

.v5-title-area h5 {
    font-size: 1.35rem; /* Reduced font size */
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.v5-title-area p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Decorative Icon (Watermark) */
.v5-icon-bg {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem; /* Reduced size */
    color: #f1f5f9;
    transform: rotate(15deg);
    transition: all 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.product-card-v5:hover .v5-icon-bg {
    transform: rotate(0deg) scale(1.1);
    color: #e2e8f0;
}

.product-card-v5.featured .v5-icon-bg {
    color: #eff6ff;
}

.product-card-v5.featured:hover .v5-icon-bg {
    color: #dbeafe;
}

/* Badge (Fixed Clipping Issue) */
.v5-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.v5-badge.bg-success {
    background: #10b981;
}

/* Feature List */
.v5-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Increased gap */
    margin-top: 1rem;
}

.v5-feature-list li {
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 0; /* Removed padding for custom icon */
}

/* Removed CSS checkmark */
.v5-feature-list li::before {
    display: none;
}

/* Spec Grid (Optional) */
.v5-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 1.5rem 0;
}

.v5-spec-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.v5-spec-item:hover {
    background: #f1f5f9;
}

.v5-spec-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.product-card-v5:hover .v5-spec-item i {
    background: #eff6ff;
    color: #3b82f6;
}

.product-card-v5.featured .v5-spec-item i {
    color: #3b82f6;
    background: #eff6ff;
}

/* Footer Area */
.v5-footer {
    display: flex;
    flex-direction: column; /* Stack vertically */
    align-items: stretch;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
    position: relative;
    z-index: 1;
    gap: 0.5rem;
}

.v5-price {
    display: flex;
    align-items: baseline;
    justify-content: center; /* Center */
    line-height: 1;
    width: 100%;
}

.v5-price .currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-right: 2px;
}

.v5-price .amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
}

.product-card-v5.featured .v5-price .amount {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v5-price .period {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-left: 4px;
    font-weight: 500;
}

/* Action Button */
.v5-btn {
    padding: 8px 16px; /* Reduced padding */
    border-radius: 8px; /* Slightly smaller */
    border: none;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content */
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

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

.product-card-v5.featured .v5-btn {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.v5-btn:hover {
    background: #0f172a;
    color: #fff;
    transform: translateY(-2px);
}

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

.product-card-v5.featured .v5-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Group Info Bar */
.group-info-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-info-indicator {
    width: 6px;
    height: 40px;
    background: #3b82f6;
    border-radius: 4px;
}

.group-info-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.group-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
    line-height: 1.2;
}

.group-desc {
    font-size: 1.1rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .group-info-text {
        flex-direction: column;
        gap: 5px;
    }
    
    .group-info-indicator {
        height: 35px;
    }

    .group-title {
        font-size: 1.2rem;
    }

    .group-desc {
        font-size: 0.95rem;
    }
}

/* Region Card Subtitle Color Fix */
.region-card .group-sub-title {
    color: #64748b !important;
}

.region-card:hover .group-sub-title {
    color: var(--theme-primary) !important;
}

.region-card.active .group-sub-title {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Navbar Link Color Fix */
.navbar-nav .nav-link {
    color: var(--bs-body-color) !important;
    font-weight: 500;
}
.navbar-nav .nav-link:hover,
.navbar-nav .show > .nav-link,
.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}
