/* Enhanced Card Design System - Beautiful Visual Borders */

/* Universal Card Styling with Animated Border */
.enhanced-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid transparent;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 300% 300%;
    animation: borderGlow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.enhanced-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.enhanced-card:hover::before {
    animation-duration: 2s;
}

/* Enhanced Card Header */
.enhanced-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 20px;
    border-radius: 14px 14px 0 0;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

/* Force all text in header to be visible */
.enhanced-card-header *,
.enhanced-card-header h1,
.enhanced-card-header h2,
.enhanced-card-header h3,
.enhanced-card-header h4,
.enhanced-card-header h5,
.enhanced-card-header h6,
.enhanced-card-header p,
.enhanced-card-header span,
.enhanced-card-header div {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
    z-index: 100 !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
}

.enhanced-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.enhanced-card-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
    position: relative !important;
    z-index: 100 !important;
    display: block !important;
    visibility: visible !important;
}

.enhanced-card-subtitle {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 5px 0 0 0 !important;
    position: relative !important;
    z-index: 100 !important;
    display: block !important;
    visibility: visible !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* Enhanced Card Body */
.enhanced-card-body {
    padding: 24px;
    position: relative;
}

/* Enhanced Badge System */
.enhanced-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(45deg, #ff9a56, #ffad56);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 154, 86, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced Button Styling */
.enhanced-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.enhanced-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.enhanced-btn:hover::before {
    left: 100%;
}

.enhanced-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.enhanced-btn-apply {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.enhanced-btn-apply:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

.enhanced-btn-refer {
    background: linear-gradient(135deg, #ff9a56 0%, #ffad56 100%);
    box-shadow: 0 4px 15px rgba(255, 154, 86, 0.3);
}

.enhanced-btn-refer:hover {
    box-shadow: 0 8px 25px rgba(255, 154, 86, 0.5);
}

/* Enhanced Information Display */
.enhanced-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.enhanced-info-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.enhanced-info-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.enhanced-info-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enhanced-info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #343a40;
}

.enhanced-info-value.success {
    color: #28a745;
}

.enhanced-info-value.primary {
    color: #667eea;
}

.enhanced-info-value.warning {
    color: #ffc107;
}

/* Enhanced Social Icons */
.enhanced-social-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    color: white;
}

.enhanced-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.enhanced-social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
}

.enhanced-social-btn:hover {
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

.enhanced-social-btn i {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.enhanced-social-btn.facebook { background: linear-gradient(135deg, #1877f2, #4267B2); }
.enhanced-social-btn.whatsapp { background: linear-gradient(135deg, #25d366, #128C7E); }
.enhanced-social-btn.twitter { background: linear-gradient(135deg, #1da1f2, #0084b4); }
.enhanced-social-btn.telegram { background: linear-gradient(135deg, #0088cc, #006699); }
.enhanced-social-btn.linkedin { background: linear-gradient(135deg, #0077b5, #005885); }
.enhanced-social-btn.instagram { background: linear-gradient(135deg, #e4405f, #c13584); }

/* Enhanced Commission Display */
.enhanced-commission {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    margin: 16px 0;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.enhanced-commission-amount {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.enhanced-commission-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-card {
        margin-bottom: 16px;
    }
    
    .enhanced-card-body {
        padding: 16px;
    }
    
    .enhanced-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .enhanced-social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enhanced-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Container */
.enhanced-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Enhanced Grid System */
.enhanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .enhanced-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}