/* ============================================
   FCoin Premium Footer v4
   CTA · Cards · Gradient Borders · Premium UX
   ============================================ */

/* === Light Mode (default) === */
.ft-premium {
    --ft-bg: #f8fafc;
    --ft-glow-opacity: 0.06;
    --ft-brand-color: #0f172a;
    --ft-desc-color: #64748b;
    --ft-stat-num: #4f46e5;
    --ft-stat-label: #64748b;
    --ft-border: #e2e8f0;
    --ft-border-light: #f1f5f9;
    --ft-card-bg: #ffffff;
    --ft-card-border: #e2e8f0;
    --ft-card-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    --ft-card-hover-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    --ft-card-hover-border: #c7d2fe;
    --ft-title-color: #1e293b;
    --ft-subtitle-color: #94a3b8;
    --ft-link-color: #475569;
    --ft-link-hover: #1e293b;
    --ft-link-hover-bg: #f1f5f9;
    --ft-empty-color: #94a3b8;
    --ft-icon-bg: #f1f5f9;
    --ft-icon-border: #e2e8f0;
    --ft-icon-color: #64748b;
    --ft-icon-hover-bg: #eef2ff;
    --ft-icon-hover-border: #c7d2fe;
    --ft-icon-hover-color: #4f46e5;
    --ft-label-color: #94a3b8;
    --ft-value-color: #475569;
    --ft-value-hover: #1e293b;
    --ft-legal-color: #94a3b8;
    --ft-legal-hover: #4f46e5;
    --ft-sep-color: #cbd5e1;
    --ft-copy-color: #94a3b8;
    --ft-cta-bg: linear-gradient(135deg, #eef2ff, #e0e7ff);
    --ft-cta-title: #1e293b;
    --ft-cta-desc: #64748b;
    --ft-link-card-bg: #f8fafc;
    --ft-link-card-border: #e2e8f0;
    --ft-link-card-hover-bg: #eef2ff;
    --ft-link-card-hover-border: #c7d2fe;
    --ft-link-card-icon: #6366f1;

    background: var(--ft-bg);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 0;
}

/* === Dark Mode === */
.dark .ft-premium {
    --ft-bg: #0a0f1e;
    --ft-glow-opacity: 0.3;
    --ft-brand-color: #ffffff;
    --ft-desc-color: #94a3b8;
    --ft-stat-num: #c7d2fe;
    --ft-stat-label: #94a3b8;
    --ft-border: rgba(255, 255, 255, 0.08);
    --ft-border-light: rgba(255, 255, 255, 0.06);
    --ft-card-bg: rgba(255, 255, 255, 0.04);
    --ft-card-border: rgba(255, 255, 255, 0.08);
    --ft-card-shadow: none;
    --ft-card-hover-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    --ft-card-hover-border: rgba(99, 102, 241, 0.3);
    --ft-title-color: #e2e8f0;
    --ft-subtitle-color: #64748b;
    --ft-link-color: #cbd5e1;
    --ft-link-hover: #ffffff;
    --ft-link-hover-bg: rgba(255, 255, 255, 0.06);
    --ft-empty-color: #94a3b8;
    --ft-icon-bg: rgba(255, 255, 255, 0.06);
    --ft-icon-border: rgba(255, 255, 255, 0.1);
    --ft-icon-color: #94a3b8;
    --ft-icon-hover-bg: rgba(99, 102, 241, 0.15);
    --ft-icon-hover-border: rgba(99, 102, 241, 0.3);
    --ft-icon-hover-color: #a5b4fc;
    --ft-label-color: #64748b;
    --ft-value-color: #cbd5e1;
    --ft-value-hover: #ffffff;
    --ft-legal-color: #94a3b8;
    --ft-legal-hover: #c7d2fe;
    --ft-sep-color: rgba(255, 255, 255, 0.15);
    --ft-copy-color: #94a3b8;
    --ft-cta-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
    --ft-cta-title: #e2e8f0;
    --ft-cta-desc: #94a3b8;
    --ft-link-card-bg: rgba(255, 255, 255, 0.04);
    --ft-link-card-border: rgba(255, 255, 255, 0.08);
    --ft-link-card-hover-bg: rgba(99, 102, 241, 0.08);
    --ft-link-card-hover-border: rgba(99, 102, 241, 0.2);
    --ft-link-card-icon: #818cf8;
}

/* === Glow === */
.ft-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    opacity: var(--ft-glow-opacity);
}

.ft-glow-1 {
    width: 600px;
    height: 400px;
    background: #6366f1;
    top: -100px;
    left: -100px;
}

.ft-glow-2 {
    width: 500px;
    height: 350px;
    background: #8b5cf6;
    bottom: 0;
    right: -80px;
}

.ft-glow-3 {
    width: 400px;
    height: 300px;
    background: #ec4899;
    bottom: -50px;
    left: 40%;
}

.ft-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === CTA Banner === */
.ft-cta {
    background: var(--ft-cta-bg);
    border: 1px solid var(--ft-border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .ft-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}

.ft-cta-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ft-cta-title);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.ft-cta-desc {
    font-size: 0.875rem;
    color: var(--ft-cta-desc);
    line-height: 1.5;
}

.ft-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ft-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ft-cta-btn.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.ft-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.ft-cta-btn.secondary {
    background: var(--ft-card-bg);
    color: var(--ft-title-color);
    border: 1px solid var(--ft-border);
}

.ft-cta-btn.secondary:hover {
    border-color: var(--ft-card-hover-border);
    transform: translateY(-2px);
}

/* === Stats === */
.ft-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 1.5rem 0;
    margin-bottom: 2.5rem;
    border-top: 1px solid var(--ft-border);
    border-bottom: 1px solid var(--ft-border);
}

@media (max-width: 640px) {
    .ft-stats {
        gap: 1.25rem;
    }
}

.ft-stat {
    text-align: center;
}

.ft-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ft-stat-num);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ft-stat-label {
    font-size: 0.6875rem;
    color: var(--ft-stat-label);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 0.25rem;
}

.ft-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--ft-border);
}

/* === Grid === */
.ft-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
    .ft-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ft-grid {
        grid-template-columns: 1fr;
    }
}

/* === Card === */
.ft-card {
    background: var(--ft-card-bg);
    border: 1px solid var(--ft-card-border);
    border-radius: 14px;
    padding: 1.25rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ft-card-shadow);
}

.ft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ft-accent, #6366f1);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ft-card:hover {
    border-color: var(--ft-card-hover-border);
    transform: translateY(-4px);
    box-shadow: var(--ft-card-hover-shadow);
}

.ft-card:hover::before {
    opacity: 1;
}

.ft-card[data-glow="indigo"] {
    --ft-accent: linear-gradient(90deg, #6366f1, #818cf8);
}

.ft-card[data-glow="emerald"] {
    --ft-accent: linear-gradient(90deg, #10b981, #34d399);
}

.ft-card[data-glow="amber"] {
    --ft-accent: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.ft-card[data-glow="violet"] {
    --ft-accent: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

/* === Card Head === */
.ft-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--ft-border-light);
}

.ft-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ft-card:hover .ft-card-icon {
    transform: scale(1.06) rotate(-3deg);
}

.ft-card-icon.indigo {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.ft-card-icon.emerald {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.ft-card-icon.amber {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.ft-card-icon.violet {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.ft-card-title {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--ft-title-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.ft-card-subtitle {
    font-size: 0.6875rem;
    color: var(--ft-subtitle-color);
    margin-top: 0.125rem;
    line-height: 1.4;
}

/* === Links Grid (wide card) === */
.ft-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .ft-links-grid {
        grid-template-columns: 1fr;
    }
}

.ft-link-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    background: var(--ft-link-card-bg);
    border: 1px solid var(--ft-link-card-border);
    color: var(--ft-link-color);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ft-link-card:hover {
    background: var(--ft-link-card-hover-bg);
    border-color: var(--ft-link-card-hover-border);
    color: var(--ft-link-hover);
    transform: translateX(3px);
}

.ft-link-icon {
    font-size: 0.7rem;
    color: var(--ft-link-card-icon);
    width: 20px;
    text-align: center;
    transition: transform 0.25s ease;
}

.ft-link-card:hover .ft-link-icon {
    transform: scale(1.15);
}

/* === Links List === */
.ft-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.ft-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--ft-link-color);
    font-size: 0.8125rem;
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ft-link:hover {
    color: var(--ft-link-hover);
    background: var(--ft-link-hover-bg);
    transform: translateX(3px);
}

.ft-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.ft-link:hover .ft-dot {
    transform: scale(1.8);
    box-shadow: 0 0 6px currentColor;
}

.ft-empty {
    font-size: 0.8125rem;
    color: var(--ft-empty-color);
    padding: 0.5rem;
    font-style: italic;
}

/* === Contact === */
.ft-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ft-contact {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.ft-contact:hover {
    transform: translateX(3px);
}

.ft-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ft-icon-bg);
    border: 1px solid var(--ft-icon-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--ft-icon-color);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.ft-contact:hover .ft-contact-icon {
    background: var(--ft-icon-hover-bg);
    border-color: var(--ft-icon-hover-border);
    color: var(--ft-icon-hover-color);
}

.ft-contact-label {
    display: block;
    font-size: 0.625rem;
    color: var(--ft-label-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.ft-contact-value {
    display: block;
    font-size: 0.8125rem;
    color: var(--ft-value-color);
    font-weight: 600;
    transition: color 0.2s ease;
}

.ft-contact:hover .ft-contact-value {
    color: var(--ft-value-hover);
}

/* === Socials === */
.ft-socials {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ft-social {
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0 0.875rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.ft-social::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    border-radius: inherit;
}

.ft-social span {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.ft-social:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ft-social.facebook {
    background: linear-gradient(135deg, #1877f2, #0c5dc7);
}

.ft-social.twitter {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.ft-social.instagram {
    background: linear-gradient(135deg, #e11d48, #9f1239);
}

.ft-social.youtube {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.ft-social.tiktok {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* === Legal Bar === */
.ft-legal-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ft-legal-bar a {
    color: var(--ft-legal-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.ft-legal-bar a:hover {
    color: var(--ft-legal-hover);
}

.ft-legal-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ft-sep-color);
    flex-shrink: 0;
}

/* === Bottom === */
.ft-bottom {
    text-align: center;
    padding: 1.25rem 0;
    border-top: 1px solid var(--ft-border-light);
}

.ft-copy {
    color: var(--ft-copy-color);
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
}

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

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

.ft-card {
    animation: ftSlideUp 0.45s ease backwards;
}

.ft-card:nth-child(1) {
    animation-delay: 0.05s;
}

.ft-card:nth-child(2) {
    animation-delay: 0.1s;
}

.ft-card:nth-child(3) {
    animation-delay: 0.15s;
}

.ft-card:nth-child(4) {
    animation-delay: 0.2s;
}

@keyframes ftStatIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.ft-stat {
    animation: ftStatIn 0.35s ease backwards;
}

.ft-stat:nth-child(1) {
    animation-delay: 0.05s;
}

.ft-stat:nth-child(3) {
    animation-delay: 0.1s;
}

.ft-stat:nth-child(5) {
    animation-delay: 0.15s;
}

@keyframes ftCtaIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

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

.ft-cta {
    animation: ftCtaIn 0.5s ease backwards;
}