/*
  Author: Saeed Masoudi
  Website: https://www.saeedmasoudie.ir/
  GitHub: https://github.com/saeedmasoudie
  Role: Python developer, website/software/app designer
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input, button, textarea, select {
    font-family: inherit;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #0B0E11;
    color: #ffffff;
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

#animated-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: float 25s infinite ease-in-out;
}

.orb:nth-child(1) {
    background: radial-gradient(circle, rgba(14, 203, 129, 0.4), rgba(14, 203, 129, 0.1), transparent);
}

.orb:nth-child(2) {
    background: radial-gradient(circle, rgba(4, 165, 106, 0.3), rgba(14, 203, 129, 0.1), transparent);
}

.orb:nth-child(3) {
    background: radial-gradient(circle, rgba(14, 203, 129, 0.2), transparent);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #0ECB81;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(14, 203, 129, 0.5);
    animation: particle 10s infinite ease-in-out;
}

.hexagon {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(14, 203, 129, 0.2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexFloat 20s infinite linear;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(150px, -150px) scale(1.3);
    }
}

@keyframes particle {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
        scale: 0;
    }
    50% {
        opacity: 0.6;
        scale: 1;
    }
}

@keyframes hexFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-200px) rotate(360deg);
        opacity: 0.1;
    }
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 14, 17, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(43, 49, 57, 0.5);
    z-index: 50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.logo-button:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0ECB81, #04A56A);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(14, 203, 129, 0.3);
    font-size: 20px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.desktop-menu {
    display: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    background: none;
    border: none;
    color: #848E9C;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #0ECB81;
}

.btn-telegram-header {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #0ECB81, #04A56A);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-telegram-header:hover {
    box-shadow: 0 8px 24px rgba(14, 203, 129, 0.3);
    transform: scale(1.05);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    background: rgba(30, 35, 41, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(43, 49, 57, 0.5);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 400px;
    }
}

.mobile-menu-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    background: none;
    border: none;
    color: #848E9C;
    font-size: 16px;
    font-weight: 500;
    padding: 0.5rem 0;
    text-align: right;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.mobile-nav-link.active {
    color: #0ECB81;
}

.btn-telegram-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #0ECB81, #04A56A);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 203, 129, 0.3);
}

main {
    position: relative;
    z-index: 1;
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-small {
    max-width: 896px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-section {
    padding: 8rem 1rem 3rem;
}

.price-card {
    background: rgba(30, 35, 41, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(43, 49, 57, 0.5);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.price-card-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(43, 49, 57, 0.5);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ruble-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0ECB81, #04A56A);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(14, 203, 129, 0.4);
}

.main-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #0ECB81;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(14, 203, 129, 0.8);
    animation: pulse 2s infinite;
}

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

.subtitle {
    color: #848E9C;
    font-size: 14px;
}

.persian-clock {
    background: rgba(11, 14, 17, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(43, 49, 57, 0.5);
}

.clock-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #848E9C;
    font-size: 12px;
    margin-bottom: 0.25rem;
}

.clock-time {
    color: white;
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
}

.price-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.loading-state {
    font-size: 24px;
    color: #848E9C;
    animation: fade 1.5s infinite;
}

@keyframes fade {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.price-content {
    display: block;
}

.current-price-section {
    margin-bottom: 1.5rem;
}

.price-label {
    font-size: 14px;
    color: #848E9C;
    margin-bottom: 0.5rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-value {
    font-size: 48px;
    font-weight: 700;
    animation: scaleIn 0.3s;
}

@keyframes scaleIn {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

.price-unit {
    font-size: 24px;
    color: #848E9C;
}

.price-arrow {
    font-size: 24px;
    animation: fadeIn 0.3s;
}

.arrow-up {
    color: #0ECB81;
}

.arrow-down {
    color: #F6465D;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.price-change {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.change-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.change-badge.positive {
    background: rgba(14, 203, 129, 0.15);
    color: #0ECB81;
    border: 1px solid rgba(14, 203, 129, 0.3);
}

.change-badge.negative {
    background: rgba(246, 70, 93, 0.15);
    color: #F6465D;
    border: 1px solid rgba(246, 70, 93, 0.3);
}

.change-label {
    color: #848E9C;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.stat-card {
    background: rgba(11, 14, 17, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(43, 49, 57, 0.5);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.03);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #848E9C;
    font-size: 12px;
}

.stat-icon-up {
    color: #0ECB81;
}

.stat-icon-down {
    color: #F6465D;
}

.stat-icon-activity,
.stat-icon-refresh {
    color: #0ECB81;
}

.stat-value {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.stat-high {
    color: #0ECB81;
}

.stat-low {
    color: #F6465D;
}

.update-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #0ECB81;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.update-text {
    font-weight: 700;
    font-size: 14px;
}

.chart-section {
    background: rgba(11, 14, 17, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(43, 49, 57, 0.3);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.chart-title svg {
    color: #0ECB81;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 203, 129, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(14, 203, 129, 0.2);
}

.live-badge-dot {
    width: 8px;
    height: 8px;
    background: #0ECB81;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(14, 203, 129, 0.8);
    animation: pulse 2s infinite;
}

.live-badge span,
.live-badge-text {
    color: #0ECB81;
    font-size: 12px;
    font-weight: 700;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 345px;
  border-radius: 10px;
  overflow: hidden;
}

#price-chart {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.chart-container { min-height: 220px; }
@media (max-width: 640px) {
  .chart-container { height: 220px; }
}

.btn-buy-ruble {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, #0ECB81, #04A56A);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy-ruble:hover {
    box-shadow: 0 8px 24px rgba(14, 203, 129, 0.4);
    transform: scale(1.01);
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.widget {
    background: rgba(11, 14, 17, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(43, 49, 57, 0.5);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.widget:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.widget-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(79, 70, 229, 0.1));
}

.widget-green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(5, 150, 105, 0.1));
}

.widget-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(147, 51, 234, 0.1));
}

.widget-yellow {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(245, 158, 11, 0.1));
}

.widget-icon {
    margin: 0 auto 0.5rem;
}

.widget-blue .widget-icon {
    color: #60a5fa;
}

.widget-green .widget-icon {
    color: #4ade80;
}

.widget-purple .widget-icon {
    color: #c084fc;
}

.widget-yellow .widget-icon {
    color: #fbbf24;
}

.widget-label {
    color: #848E9C;
    font-size: 12px;
    margin-bottom: 0.25rem;
}

.widget-value {
    font-weight: 700;
    font-size: 14px;
}

.market-section {
    padding: 2rem 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.market-table-container {
    background: rgba(30, 35, 41, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(43, 49, 57, 0.5);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.table-loading {
    padding: 3rem;
    text-align: center;
    color: #848E9C;
    animation: fade 1.5s infinite;
}

.crypto-mobile-view {
    display: block;
}

.crypto-mobile-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(43, 49, 57, 0.5);
    transition: background 0.3s;
}

.crypto-mobile-item:hover {
    background: rgba(43, 49, 57, 0.3);
}

.crypto-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.crypto-mobile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.crypto-icon-mobile {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.crypto-symbol {
    font-weight: 700;
    font-size: 16px;
}

.crypto-name {
    color: #848E9C;
    font-size: 12px;
}

.crypto-mobile-price {
    text-align: left;
}

.price-value-mobile {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 0.25rem;
}

.change-mobile {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
    font-size: 12px;
    font-weight: 700;
}

.change-mobile.positive {
    color: #0ECB81;
}

.change-mobile.negative {
    color: #F6465D;
}

.crypto-mobile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.stat-item {
    background: rgba(11, 14, 17, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(43, 49, 57, 0.3);
}

.stat-label {
    color: #848E9C;
    font-size: 10px;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-value-high {
    color: #0ECB81;
    font-size: 12px;
    font-weight: 600;
}

.stat-value-low {
    color: #F6465D;
    font-size: 12px;
    font-weight: 600;
}

.stat-value-volume {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.crypto-desktop-view {
    display: none;
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
}

.crypto-table thead tr {
    border-bottom: 1px solid rgba(43, 49, 57, 0.5);
    background: rgba(30, 35, 41, 0.4);
}

.crypto-table th {
    padding: 1rem 1.5rem;
    text-align: right;
    color: #848E9C;
    font-weight: 500;
    font-size: 14px;
}

.crypto-table tbody tr {
    border-bottom: 1px solid rgba(43, 49, 57, 0.5);
    transition: background 0.3s;
}

.crypto-table tbody tr:hover {
    background: rgba(43, 49, 57, 0.3);
}

.crypto-table td {
    padding: 1rem 1.5rem;
}

.crypto-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.crypto-icon-desktop {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.table-price {
    font-weight: 700;
    font-size: 16px;
    margin-left: 0.5rem;
}

.change-cell {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 700;
    font-size: 14px;
}

.change-cell.positive {
    color: #0ECB81;
}

.change-cell.negative {
    color: #F6465D;
}

.table-high {
    color: #0ECB81;
    font-weight: 600;
}

.table-low {
    color: #F6465D;
    font-weight: 600;
}

.features-section {
    padding: 3rem 1rem;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: rgba(30, 35, 41, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(43, 49, 57, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(14, 203, 129, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(14, 203, 129, 0.3);
}

.feature-icon-shield {
    background: rgba(14, 203, 129, 0.1);
    color: #0ECB81;
}

.feature-icon-zap {
    background: rgba(14, 203, 129, 0.1);
    color: #0ECB81;
}

.feature-icon-clock {
    background: rgba(14, 203, 129, 0.1);
    color: #0ECB81;
}

.feature-icon-dollar {
    background: rgba(14, 203, 129, 0.1);
    color: #0ECB81;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #848E9C;
    line-height: 1.6;
}

.how-it-works-section {
    padding: 3rem 1rem;
    background: rgba(30, 35, 41, 0.3);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.step-card {
    background: rgba(11, 14, 17, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(43, 49, 57, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: #0ECB81;
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #0ECB81, #04A56A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(14, 203, 129, 0.3);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: #848E9C;
}

.faq-section {
    padding: 3rem 1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(30, 35, 41, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(43, 49, 57, 0.5);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: white;
    padding: 1.25rem 1.5rem;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(43, 49, 57, 0.3);
}

.faq-icon {
    color: #0ECB81;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: #848E9C;
    line-height: 1.6;
}

.footer {
    padding: 3rem 1rem 1.5rem;
    background: rgba(30, 35, 41, 0.4);
    border-top: 1px solid rgba(43, 49, 57, 0.5);
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 20px;
    font-weight: 700;
}

.footer-brand p {
    color: #848E9C;
    font-size: 14px;
}

.footer-links,
.footer-contact {
    text-align: center;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
    display: block;
    color: #848E9C;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #0ECB81;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(43, 49, 57, 0.5);
    color: #848E9C;
    font-size: 14px;
}

.rules-section,
.contact-section {
    padding: 8rem 1rem 3rem;
    min-height: 100vh;
}

.content-card {
    background: rgba(30, 35, 41, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(43, 49, 57, 0.5);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.header-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(14, 203, 129, 0.3);
}

.header-icon-lock {
    background: linear-gradient(135deg, #0ECB81, #04A56A);
}

.header-icon-message {
    background: linear-gradient(135deg, #0ECB81, #04A56A);
}

.card-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.rules-content {
    line-height: 1.8;
}

.rule-section {
    margin-bottom: 2rem;
}

.rule-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0ECB81;
}

.rule-section ul {
    list-style: disc;
    padding-right: 1.5rem;
    color: #848E9C;
}

.rule-section li {
    margin-bottom: 0.5rem;
}

.warning-box {
    display: flex;
    gap: 1rem;
    background: rgba(252, 213, 53, 0.1);
    border: 1px solid rgba(252, 213, 53, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.warning-box svg {
    color: #FCD535;
    flex-shrink: 0;
}

.warning-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.warning-box p {
    color: #848E9C;
    font-size: 14px;
    line-height: 1.6;
}

.btn-back {
    background: rgba(43, 49, 57, 0.8);
    color: white;
    border: 1px solid rgba(43, 49, 57, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s;
}

.btn-back:hover {
    background: rgba(59, 66, 74, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: rgba(11, 14, 17, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(43, 49, 57, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 32px rgba(14, 203, 129, 0.1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(14, 203, 129, 0.3);
}

.contact-icon-telegram,
.contact-icon-group,
.contact-icon-email,
.contact-icon-clock,
.contact-icon-help {
    background: rgba(14, 203, 129, 0.1);
    color: #0ECB81;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-desc {
    color: #848E9C;
    font-size: 14px;
    margin-bottom: 1rem;
}

.contact-link {
    color: #0ECB81;
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-value {
    color: white;
    font-weight: 600;
}

.cta-box {
    background: rgba(11, 14, 17, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(43, 49, 57, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-box p {
    color: #848E9C;
    margin-bottom: 1.5rem;
}

.btn-telegram-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #0ECB81, #04A56A);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(14, 203, 129, 0.3);
    transition: all 0.3s;
}

.btn-telegram-cta:hover {
    transform: scale(1.02);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: rgba(30, 35, 41, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(14, 203, 129, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 512px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(14, 203, 129, 0.1);
    animation: scaleIn 0.3s;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.warning-icon {
    width: 56px;
    height: 56px;
    background: rgba(252, 213, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(252, 213, 53, 0.3);
    color: #FCD535;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.modal-body {
    margin-bottom: 1.5rem;
    color: #848E9C;
}

.modal-body ul {
    list-style: disc;
    padding-right: 1.25rem;
    margin-top: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, #0ECB81, #04A56A);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(14, 203, 129, 0.3);
}

.btn-secondary {
    background: #2B3139;
    color: white;
}

.btn-secondary:hover {
    background: #3B4149;
}

.btn-tertiary {
    background: #374151;
    color: white;
}

.btn-tertiary:hover {
    background: #4B5563;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }

    .btn-telegram-header {
        display: flex;
    }

    .hidden-mobile {
        display: flex !important;
    }

    .mobile-menu-btn {
        display: none;
    }

    .logo-text {
        display: block;
    }

    .price-card {
        padding: 2rem;
    }

    .price-card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .ruble-icon {
        width: 64px;
        height: 64px;
        font-size: 36px;
    }

    .main-title {
        font-size: 28px;
    }

    .price-grid {
        grid-template-columns: 5fr 7fr;
    }

    .price-value {
        font-size: 56px;
    }

    .widgets-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .crypto-mobile-view {
        display: none;
    }

    .crypto-desktop-view {
        display: block;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: right;
    }

    .footer-brand {
        text-align: right;
    }

    .footer-logo {
        justify-content: flex-start;
    }

    .footer-links,
    .footer-contact {
        text-align: right;
    }

    .footer-links a,
    .footer-contact a {
        text-align: right;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-footer {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.price-card, .market-table-container, .content-card {
    background: rgba(20, 25, 31, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

canvas#price-chart {
    filter: drop-shadow(0 0 8px rgba(14, 203, 129, 0.3));
}

.crypto-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 700;
    color: #a0aebf;
}

.btn-buy-ruble {
    animation: pulse-green 3s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(14, 203, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); }
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 32px;
    color: #4B5563;
    transition: color 0.2s;
    line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #FCD535;
}

.reviews-section { padding: 4rem 1rem; background: rgba(30, 35, 41, 0.2); }

.reviews-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; max-width: 1000px; margin-left: auto; margin-right: auto;
}

.btn-write-review {
    display: flex; align-items: center; gap: 8px;
    background: rgba(14, 203, 129, 0.1); color: #0ECB81;
    border: 1px solid rgba(14, 203, 129, 0.3);
    padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-write-review:hover { background: #0ECB81; color: white; }

.reviews-slider-container {
    position: relative; max-width: 1000px; margin: 0 auto;
    display: flex; align-items: center; gap: 1rem;
}

.reviews-track-wrapper {
    overflow: hidden; width: 100%;
}

.reviews-track {
    display: flex; gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-slide {
    min-width: 100%;
    background: rgba(30, 35, 41, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(43, 49, 57, 0.5);
    border-radius: 16px; padding: 2rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .review-slide { min-width: calc(50% - 10px); }
}

.slider-btn {
    background: rgba(43, 49, 57, 0.8); border: none; color: white;
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: 0.2s; z-index: 2;
}
.slider-btn:hover { background: #0ECB81; }

.review-modal-content { max-width: 450px; }
.close-modal-btn { background: none; border: none; color: #848E9C; font-size: 24px; cursor: pointer; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; color: #848E9C; margin-bottom: 0.5rem; font-size: 14px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; background: rgba(11, 14, 17, 0.6);
    border: 1px solid rgba(43, 49, 57, 0.5); color: white;
    border-radius: 10px; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: #0ECB81; }

.toast-container {
    position: fixed; top: 100px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: 10px;
    width: 90%; max-width: 400px; pointer-events: none;
}

.toast {
    background: rgba(30, 35, 41, 0.95); backdrop-filter: blur(10px);
    border: 1px solid rgba(43, 49, 57, 0.5); border-right: 4px solid;
    color: white; padding: 16px; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: space-between;
    animation: toastIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}
.toast.success { border-right-color: #0ECB81; }
.toast.error { border-right-color: #F6465D; }
.toast-content { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 14px; }
.toast-close { background: none; border: none; color: #848E9C; cursor: pointer; font-size: 18px; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reviews-section { padding: 4rem 1rem; position: relative; z-index: 10; }
.reviews-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 2rem; max-width: 1000px; margin-left: auto; margin-right: auto;
}

.btn-write-review {
    display: flex; align-items: center; gap: 8px;
    background: rgba(14, 203, 129, 0.1); color: #0ECB81;
    border: 1px solid rgba(14, 203, 129, 0.3);
    padding: 10px 24px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-write-review:hover { background: #0ECB81; color: white; box-shadow: 0 4px 12px rgba(14, 203, 129, 0.3); }

.reviews-slider-container {
    position: relative; max-width: 1000px; margin: 0 auto;
    display: flex; align-items: center; gap: 1rem;
}

.reviews-track-wrapper { overflow: hidden; width: 100%; border-radius: 16px; }

.reviews-track {
    display: flex; gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.reviews-track.centered { justify-content: center; }

.review-slide {
    min-width: 100%;
    background: rgba(30, 35, 41, 0.6); backdrop-filter: blur(20px);
    border: 1px solid rgba(43, 49, 57, 0.5); border-radius: 16px; padding: 1.5rem;
    box-sizing: border-box; transition: transform 0.3s;
}
.review-slide:hover { border-color: rgba(14, 203, 129, 0.3); transform: translateY(-2px); }

@media (min-width: 768px) {
    .review-slide { min-width: calc(50% - 10px); }
}

.slider-btn {
    background: rgba(43, 49, 57, 0.8); border: none; color: white;
    width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 20px; transition: 0.2s; z-index: 2; flex-shrink: 0;
}
.slider-btn:hover { background: #0ECB81; transform: scale(1.1); }
.slider-btn.hidden { opacity: 0; pointer-events: none; }

.review-modal-content { width: 95%; max-width: 450px; }

.services-section {
    padding: 2rem 1rem 4rem;
}

.services-track {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-track {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: rgba(30, 35, 41, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(43, 49, 57, 0.5);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 203, 129, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.service-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 32px;
    position: relative;
    z-index: 1;
}

.service-icon-box.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.service-icon-box.yellow { background: rgba(234, 179, 8, 0.1); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.service-icon-box.purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    color: #848E9C;
    line-height: 1.8;
    font-size: 14px;
}

.custom-footer-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(43, 49, 57, 0.5);
    font-size: 13px;
    color: #848E9C;
}

@media (min-width: 768px) {
    .custom-footer-row {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-col-right, .footer-col-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-role { opacity: 0.7; }
.footer-name { color: white; font-weight: 600; }

@media (min-width: 768px) {
    .footer-content {
        text-align: center !important;
    }

    .footer-brand {
        text-align: center !important;
    }

    .footer-logo {
        justify-content: center !important;
    }

    .footer-links, 
    .footer-contact {
        text-align: center !important;
    }

    .footer-links a, 
    .footer-contact a {
        text-align: center !important;
    }
}

.designer-link {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.designer-link:hover {
    color: #0ECB81;
    text-shadow: 0 0 8px rgba(14, 203, 129, 0.5);
}