:root {
    --bg-dark: #0a1020;
    --surface-color: #16213a;
    --surface-elevated: #1e2944;
    --text-primary: #f1f5fa;
    --text-secondary: #d8d8d8;
    --text-muted: #6b7fa7;
    --primary: #2563eb;
    --accent-orange: #f59e0b;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --accent-ton: #0098EA;
    --border-dim: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --card-shadow: 0 8px 32px 0 rgba(10, 16, 32, 0.4);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #1a237e 0%, #0a1020 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Можно убрать или оставить пустым, так как мы добавили padding в main */
.header-safe-area {
    display: none;
}

main {
    padding: 1rem;
    padding-top: 90px;
    /* Отступ под WebApp кнопки */
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 850px;
    background: var(--surface-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- HERO --- */
.support-hero {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-dim);
}

.support-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.support-hero p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.heart-icon {
    display: inline-block;
    color: #f87171;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.1);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* --- TOOLS WRAPPER (DOUBLE GRADIENT BORDER) --- */
.tools-wrapper-styled {
    position: relative;
    padding: 2.5rem 0.5rem 2.5rem 0.5rem;
    margin-bottom: 1rem;
}

.tools-wrapper-styled:last-child {
    margin-bottom: 0;
}

/* Верхняя градиентная рамка */
.tools-wrapper-styled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    border: 2px solid #6b7fa7;
    -webkit-mask-image: linear-gradient(to bottom, black 0px, black 1px, transparent 25px);
    mask-image: linear-gradient(to bottom, black 0px, black 1px, transparent 25px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* Нижняя градиентная рамка */
.tools-wrapper-styled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    border: 2px solid #6b7fa7;
    -webkit-mask-image: linear-gradient(to top, black 0px, black 1px, transparent 25px);
    mask-image: linear-gradient(to top, black 0px, black 1px, transparent 25px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.tools-header-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--surface-color);
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7fa7;
    white-space: nowrap;
    z-index: 2;
}

/* --- ENDPOINT CARD (Used for Content) --- */
.endpoint-card {
    background: var(--surface-elevated);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-dim);
    position: relative;
    z-index: 1;
}

.endpoint-card:last-child {
    margin-bottom: 0;
}

/* --- NFT ELEMENTS --- */
.nft-full-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0 auto 1.5rem auto;
}

.nft-info-block {
    text-align: center;
    margin-bottom: 1.5rem;
}

.nft-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.nft-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-elevated);
    color: var(--text-primary);
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border-dim);
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.donate-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --- CRYPTO SECTION --- */
.ton-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    text-align: left;
}

.wallet-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.wallet-address {
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-all;
    text-align: left;
    line-height: 1.4;
}

.copy-btn-large {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copy-btn-large:active {
    transform: scale(0.95);
    background: rgba(59, 130, 246, 0.3);
}