.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(64, 158, 255, 0.4);
}

.back-to-top:hover {
    background: #66b1ff;
    transform: translateY(-2px);
}

.back-to-top.show {
    display: flex;
}

.crystal-footer {
    background: 
        radial-gradient(ellipse at 20% 10%, #1a1a3a 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, #16213e 0%, transparent 60%),
        linear-gradient(180deg, rgba(13, 17, 23, 0.8) 0%, #000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.crystal-footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.crystal-footer-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.crystal-footer-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    animation: float 25s ease-in-out infinite;
}

.crystal-footer-shape-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.crystal-footer-shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 8s;
}

.crystal-footer-shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 70%;
    animation-delay: 16s;
}

.crystal-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 20px;
    position: relative;
    z-index: 1;
}

.crystal-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.crystal-footer-section {
    color: rgba(255, 255, 255, 0.8);
}

.crystal-footer-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.crystal-footer-title i {
    color: rgba(173, 216, 230, 0.8);
}

.crystal-footer-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.crystal-footer-subtitle i {
    color: rgba(173, 216, 230, 0.8);
}

.crystal-footer-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.crystal-footer-stats {
    display: flex;
    gap: 30px;
}

.crystal-stat {
    text-align: center;
}

.crystal-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: rgba(173, 216, 230, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.crystal-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.crystal-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crystal-footer-links li {
    margin-bottom: 12px;
}

.crystal-footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 6px 0;
    position: relative;
    overflow: hidden;
}

.crystal-footer-link:hover,
.crystal-footer-link.crystal-hover {
    color: rgba(173, 216, 230, 0.9);
    transform: translateX(5px);
}

.crystal-footer-link i {
    font-size: 12px;
    opacity: 0.8;
}

.crystal-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crystal-footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

.crystal-footer-copyright a {
    color: rgba(173, 216, 230, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.crystal-footer-copyright a:hover {
    color: rgba(173, 216, 230, 1);
}

.crystal-footer-powered {
    margin-top: 8px;
}

.crystal-highlight {
    color: rgba(173, 216, 230, 0.9);
    font-weight: 600;
}

.crystal-heart {
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.crystal-footer-social {
    display: flex;
    gap: 15px;
}

.crystal-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.crystal-social-link:hover,
.crystal-social-link.crystal-pulse {
    background: rgba(173, 216, 230, 0.2);
    border-color: rgba(173, 216, 230, 0.4);
    color: rgba(173, 216, 230, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(173, 216, 230, 0.2);
}

.crystal-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(173, 216, 230, 0.2);
    border: 1px solid rgba(173, 216, 230, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(173, 216, 230, 0.9);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.crystal-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.crystal-back-to-top:hover {
    background: rgba(173, 216, 230, 0.7);
    border-color: rgba(173, 216, 230, 0.8);
    color: rgba(0, 0, 0, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(173, 216, 230, 0.3);
}

.crystal-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(173, 216, 230, 0.8), rgba(173, 216, 230, 0.6));
    z-index: 9999;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(173, 216, 230, 0.5);
}

@media (max-width: 768px) {
    .crystal-footer-container {
        padding: 30px 15px 15px;
    }
    
    .crystal-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .crystal-footer-title {
        font-size: 20px;
    }
    
    .crystal-footer-subtitle {
        font-size: 16px;
    }
    
    .crystal-footer-stats {
        justify-content: center;
        gap: 40px;
    }
    
    .crystal-footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .crystal-footer-social {
        justify-content: center;
    }
    
    .crystal-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(173, 216, 230, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
.crystal-friend-links-section {
    background: rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px 0;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.crystal-friend-links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.05) 0%, transparent 50%, rgba(173, 216, 230, 0.03) 100%);
    pointer-events: none;
}

.crystal-friend-links-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.crystal-friend-links-header {
    text-align: center;
    margin-bottom: 30px;
}

.crystal-friend-links-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.crystal-friend-links-title i {
    color: rgba(173, 216, 230, 0.8);
    font-size: 22px;
}

.crystal-friend-links-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin: 0 auto;
}

.crystal-friend-links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: start;
}

.crystal-friend-links-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.crystal-friend-links-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(173, 216, 230, 0.2), transparent);
    transition: left 0.5s ease;
}

.crystal-friend-links-list a:hover::before {
    left: 100%;
}

.crystal-friend-links-list a:hover {
    background: rgba(173, 216, 230, 0.15);
    border-color: rgba(173, 216, 230, 0.3);
    color: rgba(173, 216, 230, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(173, 216, 230, 0.2);
}

.crystal-friend-links-list a i {
    font-size: 18px;
    color: rgba(173, 216, 230, 0.8);
    flex-shrink: 0;
}

.crystal-friend-links-list a span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.crystal-friend-links-list a::after {
    content: '\f08e';
    font-family: 'FontAwesome';
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.crystal-friend-links-list a:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: rgba(173, 216, 230, 0.8);
}

.crystal-friend-links-list a:not([class*="fa-"])::before {
    content: '\f0c1';
    font-family: 'FontAwesome';
    font-size: 16px;
    color: rgba(173, 216, 230, 0.8);
    margin-right: 10px;
}

@media (max-width: 768px) {
    .crystal-friend-links-section {
        padding: 30px 0;
        margin: 30px 0;
    }
    
    .crystal-friend-links-container {
        padding: 0 15px;
    }
    
    .crystal-friend-links-title {
        font-size: 20px;
    }
    
    .crystal-friend-links-desc {
        font-size: 14px;
    }
    
    .crystal-friend-links-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .crystal-friend-links-list a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .crystal-friend-links-list a i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .crystal-friend-links-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .crystal-friend-links-list a {
        padding: 10px 12px;
    }
}

.crystal-friend-links-list a[href*="github"] {
    border-color: rgba(255, 255, 255, 0.2);
}

.crystal-friend-links-list a[href*="github"]:hover {
    background: rgba(88, 96, 105, 0.2);
    border-color: rgba(88, 96, 105, 0.4);
}

.crystal-friend-links-list a[href*="blog"] {
    border-color: rgba(255, 182, 193, 0.2);
}

.crystal-friend-links-list a[href*="blog"]:hover {
    background: rgba(255, 182, 193, 0.15);
    border-color: rgba(255, 182, 193, 0.3);
}

.crystal-friend-links-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.crystal-friend-links-empty i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    color: rgba(255, 255, 255, 0.4);
}

.crystal-friend-links-empty p {
    font-size: 16px;
    margin-bottom: 20px;
}

.crystal-friend-links-empty a {
    color: rgba(173, 216, 230, 0.9);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(173, 216, 230, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.crystal-friend-links-empty a:hover {
    background: rgba(173, 216, 230, 0.15);
    border-color: rgba(173, 216, 230, 0.5);
}
