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

:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: white;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --icon-color: #999;
    --shadow: rgba(0,0,0,0.08);
    --shadow-hover: rgba(0,0,0,0.12);
    --status-color: #4caf50;
    
    --font-size-small: 14px;   
    --font-size-normal: 16px;  
    --font-size-medium: 18px;  
    --font-size-large: 21px;   
    --font-size-xl: 24px;      
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #121212;
        --bg-secondary: #1e1e1e;
        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
        --text-muted: #808080;
        --icon-color: #666; /* Цвет иконок для темной темы */
        --shadow: rgba(0,0,0,0.3);
        --shadow-hover: rgba(0,0,0,0.5);
        --status-color: #81c784;
    }
    
    meta[name="theme-color"] {
        content: #121212;
    }
}

/* Поддержка высокой контрастности */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --text-muted: #666666;
        --shadow: rgba(0,0,0,0.2);
        --shadow-hover: rgba(0,0,0,0.3);
    }
}



@media (prefers-contrast: high) and (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --text-muted: #b0b0b0;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    font-size: var(--font-size-normal);
    line-height: 1.4;
}

.profile-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 24px;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 4px 24px var(--shadow);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-small);
    color: var(--status-color);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--status-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Compact header */
.profile-header {
    display: flex;
    gap: 20px;
    padding-left: 16px;
    margin-bottom: 4px;
    align-items: flex-start;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--status-color);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.name-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

h1 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0;
}

.verified {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verified svg {
    width: 18px;
    height: 18px;
}

.verified svg {
    stroke: none;
    fill: none;
}

.verified svg path:first-child {
    fill: #1DA1F2 !important;
    stroke: none !important;
}

.verified svg path:last-child {
    fill: none !important;
    stroke: white !important;
    stroke-width: 2 !important;
}

.bio-text {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    line-height: 1.5;
}

.bio-text div {
    margin: 0;
}

/* Minimal social divider */
.social-divider {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom:6px;
    padding: 4px 0;
}

.social-link {
    display: block;
    width: 24px;
    height: 24px;
    padding: 4px;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.social-link:hover {
    opacity: 0.6;
}

.social-link svg {
    width: 100%;
    height: 100%;
    stroke: var(--icon-color);
}

/* Content blocks */
.content-blocks {
    display: flex;
    flex-direction: column;
}

.content-block {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    cursor: pointer;
    transition: transform 0.1s;
    text-decoration: none;
    display: block;
    margin-bottom: 28px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block.primary {
    box-shadow: 0 4px 20px var(--shadow-hover);
    position: relative;
}

.content-block:active {
    transform: scale(0.98);
}

.placeholder-content {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 соотношение сторон */
    overflow: hidden;
}

.placeholder-content > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.primary .placeholder-content video {
    object-fit: cover;
}

.placeholder-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.placeholder-instagram {
    background-image: image-set(
        url('instagram.jpg') 1x,
        url('instagram@2x.jpg') 2x
    );
    background-image: -webkit-image-set(
        url('instagram.jpg') 1x,
        url('instagram@2x.jpg') 2x
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.placeholder-tiktok {
    background-image: image-set(
        url('tiktok.jpg') 1x,
        url('tiktok@2x.jpg') 2x
    );
    background-image: -webkit-image-set(
        url('tiktok.jpg') 1x,
        url('tiktok@2x.jpg') 2x
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.placeholder-coffee {
    background-image: image-set(
        url('coffee.jpg') 1x,
        url('coffee@2x.jpg') 2x
    );
    background-image: -webkit-image-set(
        url('coffee.jpg') 1x,
        url('coffee@2x.jpg') 2x
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.platform-info {
    background: var(--bg-secondary);
    padding: 16px 20px;
}

.platform-name {
    font-size: var(--font-size-medium);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1px;
}

.platform-description {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Shared notification styles */
.bookmark-notification,
.email-notification,
.pwa-notification,
.info-notification,
.share-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bookmark-notification.show,
.email-notification.show,
.pwa-notification.show,
.info-notification.show,
.share-notification.show {
    transform: translateY(0);
    pointer-events: auto;
}

.bookmark-notification-content,
.email-notification-content,
.pwa-notification-content,
.info-notification-content,
.share-notification-content {
    background: rgba(248, 249, 250, 0.6);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .bookmark-notification-content,
    .email-notification-content,
    .pwa-notification-content,
    .info-notification-content,
    .share-notification-content {
        background: rgba(30, 30, 30, 0.6);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
}

.bookmark-message,
.email-message,
.pwa-message,
.info-message,
.share-message {
    font-size: var(--font-size-normal);
    color: var(--text-primary);
    line-height: 1.5;
    flex: 1;
    text-align: center;
}

.bookmark-close,
.email-close,
.pwa-close,
.info-close,
.share-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.bookmark-close:hover,
.email-close:hover,
.pwa-close:hover,
.info-close:hover,
.share-close:hover {
    background: var(--shadow);
    color: var(--text-primary);
}



/* Email link styling */
.email-link {
    color: var(--text-primary);
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s;
}

.email-link:hover {
    opacity: 0.7;
}

/* SVG icons in notifications */
.email-message svg,
.bookmark-message svg,
.pwa-message svg {
    stroke: var(--text-primary);
    flex-shrink: 0;
}

/* Support Me Section */
.support-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
    .support-section {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

.support-title {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.thank-you-title {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 0;
    text-align: center;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.crypto-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

@media (prefers-color-scheme: dark) {
    .crypto-item {
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.02);
    }
}

.crypto-item:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px var(--shadow);
}

@media (prefers-color-scheme: dark) {
    .crypto-item:hover {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.crypto-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.crypto-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.crypto-icon.bitcoin {
    background: #f7931a;
}

.crypto-icon.ethereum {
    background: #627eea;
}

.crypto-icon.usdc {
    background: #2775ca;
}

.crypto-icon.usdt {
    background: #26a17b;
}

.crypto-name {
    font-size: var(--font-size-normal);
    font-weight: 600;
    color: var(--text-primary);
}

.qr-code {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px auto;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-color-scheme: dark) {
    .qr-code {
        background: #2a2a2a;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.address-section {
    position: relative;
}

.crypto-address {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.02);
    padding: 10px 34px 10px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    word-break: break-all;
    line-height: 1;
}

@media (prefers-color-scheme: dark) {
    .crypto-address {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

.copy-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    .copy-btn:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

.copy-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Copy notification */
.copy-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.copy-notification.show {
    transform: translateY(0);
    pointer-events: auto;
}

.copy-notification-content {
    background: rgba(248, 249, 250, 0.6);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

@media (prefers-color-scheme: dark) {
    .copy-notification-content {
        background: rgba(30, 30, 30, 0.6);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
}



@media (max-width: 480px) {
    .crypto-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .crypto-item {
        padding: 12px;
    }
    
    .crypto-address {
        font-size: max(14px, 0.875rem);
        padding: 6px 46px 6px 6px;
        line-height: 1.3;
    }
    
    .copy-btn {
        right: 4px;
        width: 40px;
        height: 40px;
        padding: 0;
    }
    
    .copy-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .copy-notification-content {
        padding: 16px 18px;
        font-size: 15px;
    }
    
    .profile-card {
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
        padding: 20px;
    }
    
    body {
        padding: 0;
        background: var(--bg-secondary);
    }
    
    .bookmark-notification-content,
    .email-notification-content,
    .pwa-notification-content,
    .info-notification-content,
    .share-notification-content {
        padding: 16px 18px;
        font-size: 15px;
    }
}