/* ===== DIAMOND CORE — style.css ===== */

/* ---------- VARIABLES ---------- */
:root {
    --bg: #00140E;
    --bg-card: #00140E;
    --text: #00FFAA;
    --accent: #FFD47F;
    --accent2: #FFF8EB;
    --border: #00FFAA;
    --shadow: #00FFAA;
    --net-line: #003D2B;
    --glass: #00140E;
}

.theme-light {
    --bg: #FFD47F;
    --bg-card: #FFD47F;
    --text: #00140E;
    --accent: #00140E;
    --accent2: #FFF8EB;
    --border: #00140E;
    --shadow: rgba(0, 0, 0, .15);
    --net-line: rgba(0, 0, 0, .08);
    --glass: #FFD47F;
}

.theme-light .nav {
    background: rgba(255, 212, 127, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 20, 14, 0.2);
    box-shadow: 0 0 5px 0.05px rgba(0, 0, 0, 0.1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background .15s, color .15s;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--net-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--net-line) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: .15;
    pointer-events: none;
    z-index: -1;
}

a { text-decoration: none; }

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    background: rgba(0, 20, 14, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(127, 255, 212, 0.3);
    border-radius: 40px;
    padding: 12px 24px;
    box-shadow: 0 0 5px 0.05px rgba(127, 255, 212, 0.2);
    transition: all .4s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .5px;
    transition: opacity .2s;
}
.nav-logo:hover { opacity: .75; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s;
    height: 36px;
    font-family: inherit;
}
.nav-btn:hover { background: var(--text); color: var(--bg); }
.nav-btn--accent { border-color: var(--accent); color: var(--accent); }
.nav-btn--accent:hover { background: var(--accent); color: var(--bg); }

/* ---------- MAIN ---------- */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 160px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------- HERO ---------- */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-main {
    font-size: clamp(3rem, 9vw, 8rem);
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(63deg, var(--accent), var(--text), var(--accent2));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: grad 16s ease-in-out infinite;
    line-height: 1.05;
}

@keyframes grad {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.typewriter-wrap {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 24px auto 0;
    min-height: 90px;
    white-space: nowrap;
    text-align: center;
}

.typewriter-text {
    display: inline-block;
    font-size: clamp(1.8rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: clamp(8px, 3vw, 40px);
    text-transform: uppercase;
    background: linear-gradient(80deg, var(--accent), var(--text), var(--accent2));
    background-size: 250% 250%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 1em;
    line-height: 1;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--accent);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink .7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ---------- PRICING ---------- */
.pricing {
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* ---- CORE TOGGLE ---- */
.core-toggle-wrap {
    display: flex;
    justify-content: center;
}

.core-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4px;
    gap: 0;
    cursor: pointer;
}

/* скользящий фон */
.core-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: var(--text);
    border-radius: 18px;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    z-index: 0;
}

.core-slider.right {
    transform: translateX(calc(100% + 4px));
}

.core-btn {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    border-radius: 18px;
    padding: 9px 22px;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    transition: color .35s;
    white-space: nowrap;
    outline: none;
}

.core-btn.active {
    color: var(--bg);
}

/* ---- CARDS ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    transition: opacity .3s, transform .3s;
}

.pricing-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
}

/* анимация смены */
.pricing-grid {
    animation: fadeUp .35s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cards-hidden {
    display: none !important;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 0 5px 0.1px var(--shadow);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 10px 1px var(--shadow);
}

.card--featured {
    border-color: var(--accent);
    box-shadow: 0 0 5px 0.1px var(--accent);
    position: relative;
}

.card--featured::before {
    content: '✦ Popular';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-card);
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.card--featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 10px 1px var(--accent);
}

.card-badge {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .7;
    color: var(--text);
}

.card-price {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.card-price span { font-size: 1rem; font-weight: 400; opacity: .6; }

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.card-features li {
    font-size: .85rem;
    color: var(--text);
    opacity: .85;
    padding: 8px 0;
    border-bottom: 1px solid rgba(127, 255, 212, .1);
}
.card-features li:last-child { border-bottom: none; }
.card-features li::before { content: '◇ '; opacity: .5; font-size: .7rem; }

.card-btn {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--text);
    border-radius: 20px;
    color: var(--text);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all .25s;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    text-align: center;
}
.card-btn:hover { background: var(--text); color: var(--bg); }
.card--featured .card-btn { border-color: var(--accent); color: var(--accent); }
.card--featured .card-btn:hover { background: var(--accent); color: var(--bg); }

/* ---------- DONATE ---------- */
.donate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
}

.donate-label {
    font-size: 2.1rem;
    color: #00FFAA;
    letter-spacing: 2px;
    /*text-transform: uppercase;*/
    opacity: 1;
}

.donate-btns { display: flex; gap: 14px; }

.crypto-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .25s;
    overflow: hidden;
}
.crypto-copy-btn:hover { background: var(--text); color: var(--bg); box-shadow: 0 0 16px var(--shadow); }
.crypto-copy-btn.copied { border-color: #00ffaa; color: #00ffaa; background: rgba(0,255,170,.08); }
.crypto-icon { font-size: 1.1rem; }

.copy-status {
    font-size: .85rem;
    min-height: 22px;
    color: #00FFAA;
    font-weight: 600;
    letter-spacing: .5px;
    opacity: 0;
    transition: opacity .3s;
}
.copy-status.visible { opacity: 1; }

/* ---------- CONTENT / CONTACT ---------- */
.content, .contact {
    font-size: .9rem;
    padding: 14px 28px;
    border: 1px solid var(--border);
    border-radius: 42px;
    background: var(--bg-card);
    color: var(--text);
    opacity: .75;
    margin-top: 40px;
}
.content { margin-top: 1px; }
.contact a, .content a { color: var(--accent); font-weight: 600; transition: opacity .2s; }
.contact a:hover, .content a:hover { opacity: .7; }

/* ---------- CABINET PAGE ---------- */
.cabinet-main { justify-content: center; min-height: 80vh; }

.cabinet-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    padding-top: 40px;
}

.cabinet-icon { font-size: 3rem; opacity: .6; }
.cabinet-title { font-size: 2rem; font-weight: 800; letter-spacing: 2px; color: var(--text); }
.cabinet-sub { font-size: .95rem; opacity: .6; max-width: 380px; line-height: 1.5; }

.cabinet-placeholder {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    margin-top: 8px;
}

.placeholder-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(127, 255, 212, .08);
    gap: 16px;
}
.placeholder-row:last-child { border-bottom: none; }

.ph-label { font-size: .75rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: .5; flex-shrink: 0; }
.ph-value { font-size: .85rem; font-family: monospace; color: var(--text); opacity: .8; text-align: right; word-break: break-all; }
.ph-blur { filter: blur(5px); user-select: none; opacity: .4; }

.cabinet-cta { margin-top: 8px; padding: 12px 36px; font-size: 1rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .header { top: 16px; width: 94%; }
    .nav { padding: 10px 16px; gap: 16px; }
    .btn-label { display: none; }
    .nav-btn { padding: 7px; width: 36px; height: 36px; justify-content: center; }
    .main { padding: 120px 14px 40px; gap: 50px; }
    .typewriter-wrap { min-height: 60px; }
    .pricing-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pricing-grid--2 { grid-template-columns: 1fr; max-width: 100%; }
    .card { padding: 22px 14px; gap: 14px; border-radius: 20px; }
    .card-price { font-size: 2rem; }
    .donate-btns { flex-direction: column; width: 100%; }
    .crypto-copy-btn { justify-content: center; }
    .placeholder-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .ph-value { text-align: left; }
    .core-btn { padding: 8px 14px; font-size: .72rem; letter-spacing: 1px; }
}

@media (max-width: 400px) {
    .pricing-grid { grid-template-columns: 1fr; }
}
