* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
  }
  
  /* NAVBAR */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 64px;
    max-height: 80px;
  }
  
  .logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }
  
  .wide-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s, letter-spacing 0.2s;
    font-family: 'Segoe UI', Arial, sans-serif;
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: #14f1c6;
    letter-spacing: 0.13em;
  }
  
  .wallet-container {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .wallet-dropdown {
    position: relative;
  }
  
  .connect-wallet-btn {
    background: linear-gradient(135deg, #14f195, #00d4aa);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 1rem;
  }
  
  .connect-wallet-btn:hover {
    transform: translateY(-2px);
  }
  
  .logout-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
    margin-top: 0.5rem;
  }
  
  .wallet-dropdown.connected .logout-dropdown {
    opacity: 1;
    visibility: visible;
  }
  
  .logout-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    color: #333;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-weight: 500;
  }
  
  .logout-btn:hover {
    background-color: #f5f5f5;
  }
  
  /* HAMBURGER MENU */
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
  }
  
  .hamburger span {
    width: 100%;
    height: 3px;
    background-color: #14f195;
    transition: all 0.3s;
    border-radius: 2px;
  }
  
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1050;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
  }
  
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .mobile-menu li {
    border-bottom: 1px solid #eee;
  }
  
  .mobile-menu li:last-child {
    border-bottom: none;
  }
  
  .mobile-menu a {
    color: #333;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    transition: background 0.2s;
  }
  
  .mobile-menu a:hover,
  .mobile-menu a.active {
    background: #f5f5f5;
    color: #14f1c6;
  }
  
  /* MAIN CONTENT */
  main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background-color: #f8f9fa;
  }
  
  .assets-section {
    padding: 4rem 0;
  }
  
  .page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
  }
  
  .assets-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }
  
  .asset-block {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
  }
  
  .asset-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  }
  
  .block-title {
    background: linear-gradient(135deg, #14f195, #00d4aa);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.5rem 2rem;
    margin: 0;
    text-align: center;
  }
  
  .block-content {
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(248, 249, 250, 0.5);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  
  .ghost-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
  }
  
  .empty-message {
    color: #999;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
  }
  
  .create-token-btn {
    background: linear-gradient(135deg, #14f195, #00d4aa);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(20,241,198,0.2);
  }
  
  .create-token-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20,241,198,0.3);
  }
  
  /* MEDIA QUERIES */
  
  /* Tablet */
  @media (max-width: 1024px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .page-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
  }
  
  /* Mobile Large */
  @media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .wide-logo {
        max-width: 320px;
        max-height: 40px;
    }
    
    .assets-section {
        padding: 3rem 0;
    }
    
    .page-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .block-title {
        font-size: 1.3rem;
        padding: 1.2rem 1.5rem;
    }
    
    .block-content {
        padding: 3rem 1.5rem;
        min-height: 220px;
    }
    
    .ghost-icon {
        font-size: 3.5rem;
    }
    
    .empty-message {
        font-size: 1rem;
    }
    
    .create-token-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
  }
  
  /* Mobile Small */
  @media (max-width: 600px) {
    .navbar {
        padding: 0.5rem 1rem;
        max-height: 64px;
    }
    
    .connect-wallet-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .wide-logo {
        max-width: 200px;
        max-height: 32px;
    }
    
    .assets-section {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .block-title {
        font-size: 1.2rem;
        padding: 1rem 1rem;
    }
    
    .block-content {
        padding: 2.5rem 1rem;
        min-height: 200px;
        gap: 1.5rem;
    }
    
    .ghost-icon {
        font-size: 3rem;
    }
    
    .empty-message {
        font-size: 0.95rem;
    }
    
    .create-token-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
  }
  
  /* Mobile Extra Small */
  @media (max-width: 480px) {
    .navbar {
        padding: 0.3rem 0.5rem;
        max-height: 56px;
    }
    
    .wide-logo {
        max-width: 160px;
        max-height: 28px;
    }
    
    .connect-wallet-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .page-title {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }
    
    .block-title {
        font-size: 1.1rem;
        padding: 0.8rem 0.8rem;
    }
    
    .block-content {
        padding: 2rem 0.8rem;
        min-height: 180px;
    }
    
    .ghost-icon {
        font-size: 2.5rem;
    }
    
    .empty-message {
        font-size: 0.9rem;
    }
    
    .create-token-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
  }

/* Стили для модального окна ограничений */
.restriction-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.restriction-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: restrictionModalSlideIn 0.5s ease-out;
}

@keyframes restrictionModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.restriction-modal-header {
    background: linear-gradient(135deg, var(--primary-color, #14f1c6), var(--secondary-color, #764ba2));
    color: white;
    padding: 2rem;
    text-align: center;
}

.restriction-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.restriction-modal-content {
    padding: 2rem;
}

.restriction-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.restriction-payment-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.restriction-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color, #14f1c6);
    margin-bottom: 1rem;
}

.restriction-qr-code {
    margin: 2rem 0;
}

.restriction-qr-code img {
    width: 200px;
    height: 200px;
    border: 4px solid white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.restriction-sol-address {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin: 1rem 0;
    color: #333;
}

.restriction-pay-btn {
    background: linear-gradient(135deg, var(--primary-color, #14f1c6), var(--secondary-color, #764ba2));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0.5rem;
}

.restriction-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.restriction-check-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0.5rem;
    transition: all 0.3s;
}

.restriction-check-btn:hover {
    background: #218838;
}

.restriction-check-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.restriction-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: restrictionSpin 1s linear infinite;
    margin-left: 0.5em;
}

@keyframes restrictionSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.restriction-result-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.restriction-result-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.restriction-result-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.restriction-domain-info {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 0.9rem;
}

/* Блюр основного контента когда открыто модальное окно */
body.restriction-modal-open > *:not(.restriction-modal-overlay) {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

/* Убираем возможность взаимодействия с фоновым контентом */
body.restriction-modal-open {
    overflow: hidden;
}

/* Респонсивность для модального окна */
@media (max-width: 768px) {
    .restriction-modal {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .restriction-modal-header,
    .restriction-modal-content {
        padding: 1.5rem;
    }
    
    .restriction-title {
        font-size: 1.5rem;
    }
    
    .restriction-amount {
        font-size: 2rem;
    }
    
    .restriction-qr-code img {
        width: 150px;
        height: 150px;
    }
    
    .restriction-pay-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}