/* FinanceCyberIT page styles */

.finance-container {
    max-width: 1200px;
    margin: 0 auto;
    width: min(1200px, 100%);
    padding: 20px;
    overflow-x: hidden;
}

.finance-header-actions {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.finance-header-actions .section-header-small,
.finance-header-actions .back-btn {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    margin: 0;
}

.finance-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
    margin: 40px 0 60px;
}

.finance-hero > * {
    min-width: 0;
}

.finance-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.finance-hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), #8bffb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.finance-hero-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.7;
}

.finance-hero-media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.finance-hero-media img,
.finance-hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.finance-section {
    margin-bottom: 60px;
    min-width: 0;
}

.finance-section-title {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    margin-bottom: 18px;
    color: #ffffff;
}

.finance-section-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.finance-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.finance-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.finance-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
}

.finance-list li::before {
    content: '•';
    color: #8bffb4;
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

.finance-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.finance-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.3s ease;
    min-width: 0;
}

.finance-card:hover {
    border-color: rgba(139, 255, 180, 0.5);
    box-shadow: 0 10px 30px rgba(139, 255, 180, 0.18);
    transform: translateY(-4px);
}

.finance-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    color: #8bffb4;
    margin-bottom: 12px;
}

.finance-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.finance-demo-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.finance-demo-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 260px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.finance-demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 255, 180, 0.15), transparent);
    transition: left 0.5s ease;
}

.finance-demo-card:hover::before {
    left: 100%;
}

.finance-demo-card:hover {
    border-color: rgba(139, 255, 180, 0.6);
    box-shadow: 0 0 30px rgba(139, 255, 180, 0.3);
    transform: translateY(-5px);
}

.finance-demo-icon {
    width: clamp(70px, 10vw, 110px);
    height: clamp(70px, 10vw, 110px);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(139, 255, 180, 0.08));
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.finance-demo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.finance-demo-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
}

.finance-demo-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    text-align: center;
}

.finance-demo-cta {
    display: flex;
    align-items: center;
    color: #8bffb4;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    justify-content: center;
}

.finance-demo-cta::after {
    content: '→';
    margin-left: 10px;
    transition: margin-left 0.3s ease;
}

.finance-demo-card:hover .finance-demo-cta {
    margin-left: 5px;
}

.finance-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    min-width: 0;
}

.finance-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finance-gallery img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.finance-gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 18, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
    backdrop-filter: blur(8px);
}

.finance-gallery-modal.open {
    display: flex;
}

.finance-gallery-modal-content {
    position: relative;
    width: min(92vw, 1100px);
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.finance-gallery-modal-image {
    max-width: 100%;
    max-height: 86vh;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    background: rgba(255, 255, 255, 0.02);
}

.finance-gallery-close,
.finance-gallery-nav {
    position: absolute;
    background: rgba(139, 255, 180, 0.12);
    border: 1px solid rgba(139, 255, 180, 0.3);
    color: #f0fff7;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.finance-gallery-close:hover,
.finance-gallery-nav:hover {
    box-shadow: 0 0 18px rgba(139, 255, 180, 0.35);
    transform: translateY(-2px);
}

.finance-gallery-close {
    top: -18px;
    right: -18px;
}

.finance-gallery-nav.prev {
    left: -10px;
}

.finance-gallery-nav.next {
    right: -10px;
}

@media (max-width: 900px) {
    .finance-hero {
        grid-template-columns: 1fr;
    }

    .finance-hero-title {
        font-size: 36px;
    }

    .finance-header-actions {
        flex-direction: column;
    }

    .finance-container {
        padding: 16px;
    }

    .finance-card-grid,
    .finance-gallery,
    .finance-demo-grid {
        grid-template-columns: 1fr;
    }

    .finance-hero-badge {
        letter-spacing: 1px;
        font-size: 11px;
    }

    .finance-hero-title,
    .finance-section-title,
    .finance-card h3,
    .finance-demo-card h3 {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 700px) {
    .finance-hero-title {
        font-size: 32px;
    }

    .finance-hero-subtitle {
        font-size: 15px;
    }

    .finance-gallery img {
        height: 150px;
    }

    .finance-gallery-nav.prev {
        left: 6px;
    }

    .finance-gallery-nav.next {
        right: 6px;
    }

    .finance-gallery-close {
        top: 6px;
        right: 6px;
    }
}

@media (max-width: 640px) {
    .finance-container {
        padding: 12px;
    }

    .finance-hero {
        gap: 20px;
        margin: 22px 0 34px;
    }

    .finance-hero-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .finance-hero-badge {
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.45;
    }

    .finance-section {
        margin-bottom: 34px;
    }

    .finance-section-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .finance-glass,
    .finance-card,
    .finance-demo-card {
        padding: 16px;
    }

    .finance-gallery {
        gap: 12px;
    }

    .finance-gallery img {
        height: 170px;
    }
}
