* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Хедер */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.logo i {
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #667eea;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Основной контент */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Контейнер сообщений */
.message-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Карточка сообщения */
.message-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
    border-left: 6px solid;
}

.message-card.error {
    border-left-color: #f44336;
}

.message-card.success {
    border-left-color: #4CAF50;
}

.message-card.info {
    border-left-color: #2196F3;
}

.message-card.warning {
    border-left-color: #FF9800;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.message-card.error .message-icon {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.message-card.success .message-icon {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.message-card.info .message-icon {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.message-card.warning .message-icon {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.message-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.message-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.message-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid;
}

.message-card.error .message-details {
    border-left-color: #f44336;
}

.message-card.success .message-details {
    border-left-color: #4CAF50;
}

.message-card.info .message-details {
    border-left-color: #2196F3;
}

.message-card.warning .message-details {
    border-left-color: #FF9800;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e5e9;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span:first-child {
    font-weight: 600;
    color: #333;
}

.detail-item span:last-child {
    color: #666;
    font-family: monospace;
    text-align: right;
}

.error-code {
    color: #f44336 !important;
    font-weight: 600;
}

.amount {
    color: #4CAF50 !important;
    font-weight: 600;
}

.transaction-hash {
    font-size: 0.9rem;
    word-break: break-all;
}

.notification-type {
    color: #2196F3 !important;
    font-weight: 600;
}

.impact-level {
    color: #FF9800 !important;
    font-weight: 600;
}

.device-info {
    color: #666;
}

.timestamp {
    color: #999;
    font-size: 0.9rem;
}

/* Кнопки действий */
.message-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary.danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.btn-primary.danger:hover {
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
}

/* Дополнительная информация */
.additional-info {
    max-width: 800px;
    margin: 0 auto;
}

.info-tips h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.tip-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.tip-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Футер */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.footer-section p,
.footer-section a {
    color: #666;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.security-labels {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.security-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #666;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Анимации */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav {
        gap: 0.5rem;
    }

    .message-card {
        padding: 2rem 1.5rem;
    }

    .message-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        min-width: 100%;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }

    .message-card {
        padding: 1.5rem 1rem;
    }

    .message-title {
        font-size: 1.5rem;
    }

    .message-text {
        font-size: 1rem;
    }

    .message-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}