/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media screen and (max-width: 768px) {
    /* Navigation */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-container {
        padding: 12px 16px;
        max-width: 100%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-left {
        display: flex;
        align-items: center;
    }

    .logo-image {
        height: 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-wallet-btn {
        padding: 8px 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    /* Add padding to main content to account for fixed header */
    main {
        padding-top: 0;
    }

    /* Hero Section */
    .hero {
        padding: 0 16px;
    }

    .hero-content {
        flex-direction: column;
        text-align: left;
    }

    .hero-left {
        width: 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        margin: 16px 0;
    }

    .stat-item {
        padding: 10px;
        font-size: 0.9em;
    }

    .stat-icon {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .stat-value {
        font-size: 18px;
        font-weight: 600;
        margin: 2px 0;
    }

    .stat-label {
        font-size: 12px;
        color: #666;
        margin: 2px 0;
    }

    .stat-change {
        font-size: 11px;
        color: #00b67a;
    }

    /* Стили для карточек */
    .hero-cards-container {
        position: relative;
        margin-top: 20px;
        transform: scale(0.7);
        transform-origin: left center;
    }

    .hero-card {
        position: absolute;
        width: 140px;
        padding: 10px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        animation: floatingCard 3s ease-in-out infinite;
    }

    .hero-card.floating-1 {
        top: 510px;
        left: -140px;
        z-index: 3;
        animation-delay: 0s;
        transform: rotate(5deg);
    }

    .hero-card.floating-2 {
        top: 350px;
        left: -205px;
        z-index: 2;
        animation-delay: 0.5s;
        width: 180px;
        padding: 14px;
        transform: rotate(5deg);
    }

    .hero-card.floating-2 .card-content {
        padding: 12px;
    }

    .hero-card.floating-2 h3 {
        font-size: 18px;
        margin: 8px 0 4px;
    }

    .hero-card.floating-2 p {
        font-size: 14px;
    }

    .hero-card.floating-3 {
        top: 210px;
        left: -110px;
        z-index: 1;
        animation-delay: 1s;
        transform: rotate(5deg);
    }

    @keyframes floatingCard {
        0% {
            transform: translateY(0) rotate(5deg);
        }
        50% {
            transform: translateY(-15px) rotate(5deg);
        }
        100% {
            transform: translateY(0) rotate(5deg);
        }
    }

    .hero-card .card-content {
        padding: 8px;
    }

    .hero-card h3 {
        font-size: 14px;
        margin: 6px 0 3px;
    }

    .hero-card p {
        font-size: 12px;
        margin: 0;
        color: #666;
    }

    .card-icon {
        font-size: 16px;
        color: #1652f0;
    }

    /* Modal */
    .modal {
        padding: 16px;
    }

    .modal-content {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        background: white;
        border-radius: 16px;
        overflow: hidden;
    }

    .modal-header {
        padding: 16px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .modal-header h2 {
        font-size: 18px;
        margin: 0;
        font-weight: 600;
    }

    .modal-body {
        padding: 16px;
    }

    .steps-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0 4px;
    }

    .step {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        position: relative;
        padding-right: 24px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #1652f0;
        color: white;
        border-radius: 50%;
        font-size: 16px;
    }

    .step-content {
        flex: 1;
        min-width: 0;
    }

    .step-content h3 {
        font-size: 16px;
        margin: 0 0 6px 0;
        font-weight: 600;
    }

    .step-content p {
        font-size: 14px;
        margin: 0 0 12px 0;
        color: #666;
        line-height: 1.4;
    }

    .step-status {
        position: absolute;
        right: 0;
        top: 12px;
    }

    .status-dot {
        display: none;
    }

    .address-box {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 12px;
        position: relative;
        margin: 0 -4px;
    }

    .address-box code {
        display: block;
        font-size: 14px;
        line-height: 1.4;
        word-break: break-all;
        background: white;
        padding: 12px;
        padding-right: 44px;
        border-radius: 6px;
        border: 1px solid #eee;
    }

    .copy-btn {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        padding: 8px;
        font-size: 16px;
        background: #1652f0;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .amount-box {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin: 0 -4px;
    }

    .amount-box span {
        font-size: 14px;
        line-height: 1.4;
    }

    .network {
        color: #666;
    }

    .progress-bar {
        height: 4px;
        margin: 12px -4px 0;
        background: #f0f0f0;
        border-radius: 2px;
        overflow: hidden;
    }

    .progress {
        height: 100%;
        background: #1652f0;
        width: 0;
        animation: progress 2s linear infinite;
    }

    .claim-btn {
        margin: 12px -4px 0;
        width: calc(100% + 8px);
        padding: 14px;
        font-size: 15px;
        background: #1652f0;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: not-allowed;
        opacity: 0.7;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .claim-btn i {
        font-size: 16px;
    }

    .close-modal {
        background: none;
        border: none;
        font-size: 20px;
        color: #666;
        cursor: pointer;
        padding: 8px;
    }

    @keyframes progress {
        0% { width: 0; }
        100% { width: 100%; }
    }

    /* Info box styles */
    .info-box {
        padding: 12px;
        margin: -4px 0 16px;
        border-radius: 12px;
    }

    .info-icon {
        font-size: 18px;
        margin-right: 8px;
    }

    .info-content {
        font-size: 0.9em;
    }

    .info-header {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .info-value {
        font-size: 16px;
        font-weight: 600;
    }

    /* Button styles */
    .hero-buttons {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        margin-top: 16px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 14px;
        flex: 1;
    }

    .btn i {
        font-size: 14px;
        margin-right: 6px;
    }

    @media (max-width: 768px) {
        .modal-step {
            margin-left: 0;
            padding: 0;
            margin-bottom: 16px;
        }

        .step-number {
            margin-right: 12px;
        }

        .step-icon {
            width: 32px;
            height: 32px;
            min-width: 32px;
        }

        .step-title {
            font-size: 15px;
            margin-bottom: 4px;
        }

        .step-description {
            font-size: 13px;
            margin: 0;
            line-height: 1.3;
        }

        .modal-header {
            padding: 14px;
        }

        .address-box {
            padding: 8px;
            margin: 8px 0;
        }

        .modal-content {
            padding: 16px;
        }

        .hero-buttons {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            gap: 10px;
            margin-top: -14px;
            padding: 0 20px;
            margin-right: 2pt;
        }

        .btn {
            padding: 10px 20px;
            font-size: 14px;
            flex: 1;
            border-radius: 8px;
            border: none;
            font-weight: 500;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn:hover {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .btn-connect {
            background: #0052FF;
            color: white;
            border: none;
        }

        .btn-connect:hover {
            background: #0045CC;
            border: none;
        }

        .btn i {
            font-size: 14px;
            margin-right: 8px;
        }
    }

    /* Footer */
    .footer-content {
        padding: 32px 16px;
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 32px;
    }

    .footer-logo img {
        height: 24px;
    }

    .footer-description {
        font-size: 14px;
        margin: 16px 0;
    }

    .social-links {
        justify-content: center;
        gap: 20px;
        margin: 16px 0;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        text-align: left;
    }

    .footer-column {
        width: 100%;
    }

    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 16px;
        color: #050f19;
    }

    .footer-column ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .footer-column li {
        margin-bottom: 12px;
    }

    .footer-column a {
        color: #5b616e;
        text-decoration: none;
        font-size: 14px;
    }

    .footer-bottom {
        padding: 16px;
        border-top: 1px solid #eee;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-legal {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .footer-legal a {
        color: #5b616e;
        text-decoration: none;
        font-size: 12px;
    }

    .copyright {
        color: #5b616e;
        font-size: 12px;
    }
}
