/* =================================================================
   coin.css — donation / tipping page (vibeinpocket.com/coin)
   Layered on top of landing.css, which provides fonts, theme tokens,
   navbar styles, and the gradient ocean background.
   ================================================================= */

.coin-body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep, #0a0e1a);
    color: var(--text-white, #f8fafc);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Make the navbar live above the hero glow without sticking. */
.coin-navbar {
    position: relative;
}

/* ============ Page shell ============ */
.coin-page {
    max-width: 880px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ============ Hero ============ */
.coin-hero {
    position: relative;
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.coin-hero-glow {
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 380px;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(245, 158, 11, 0.35), transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.35), transparent 60%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    animation: coin-glow-pulse 6s ease-in-out infinite;
}

@keyframes coin-glow-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.05); }
}

/* The big spinning coin / coffee disc */
.coin-coin {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: conic-gradient(
        from 90deg,
        #fde68a, #f59e0b, #fbbf24, #d97706, #fde68a
    );
    box-shadow:
        0 20px 60px rgba(245, 158, 11, 0.4),
        inset 0 -8px 16px rgba(0, 0, 0, 0.25),
        inset 0 8px 16px rgba(255, 255, 255, 0.4);
    display: grid;
    place-items: center;
    animation: coin-spin 8s linear infinite;
    z-index: 1;
}

.coin-face {
    width: 86%;
    height: 86%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent 50%),
        linear-gradient(145deg, #fbbf24, #f59e0b);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.coin-emoji {
    font-size: 3rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
    /* Counter-rotate so the emoji stays upright while the coin spins. */
    animation: coin-spin-counter 8s linear infinite;
}

.coin-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, transparent 50%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes coin-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes coin-spin-counter {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.coin-title {
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0.75rem 0 1rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 1;
}

.coin-lede {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.6;
    z-index: 1;
}

/* ============ Card frame ============ */
.coin-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .coin-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
    border-color: rgba(0, 0, 0, 0.08);
    color: #0a0a0f;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* ============ Amount grid ============ */
.amount-heading,
.soon-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}

@media (max-width: 720px) {
    .amount-grid { grid-template-columns: repeat(2, 1fr); }
}

.amount-card {
    position: relative;
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.4rem 0.75rem 1.1rem;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    font: inherit;
}

.amount-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.15);
}

.amount-card.selected {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.18), rgba(139, 92, 246, 0.10));
    box-shadow:
        0 0 0 4px rgba(245, 158, 11, 0.18),
        0 18px 40px rgba(245, 158, 11, 0.25);
}

.amount-card.popular {
    border-color: rgba(245, 158, 11, 0.45);
}

.amount-emoji { font-size: 1.9rem; line-height: 1; }
.amount-usd {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fbbf24;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}
.amount-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}
[data-theme="light"] .amount-label { color: rgba(0, 0, 0, 0.55); }

.amount-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Custom amount card uses an input instead of fixed text. */
.amount-custom .usd-prefix { font-size: 1.4rem; opacity: 0.85; }
.amount-custom input {
    width: 70px;
    background: transparent;
    border: 0;
    border-bottom: 2px dashed rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    padding: 0 4px;
    -moz-appearance: textfield;
}
.amount-custom input::-webkit-outer-spin-button,
.amount-custom input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.amount-custom input:focus {
    border-bottom-color: #fbbf24;
}

/* ============ Message field ============ */
.message-row {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message-row label {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}
[data-theme="light"] .message-row label { color: rgba(0, 0, 0, 0.78); }

.message-row .optional {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.message-row textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    color: inherit;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.message-row textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.message-row textarea:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
}
[data-theme="light"] .message-row textarea {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

.message-count {
    align-self: flex-end;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ============ Checkout CTA ============ */
.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #8b5cf6 100%);
    color: white;
    border: 0;
    border-radius: 18px;
    padding: 1.1rem 1.5rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.checkout-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.45);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.checkout-btn.loading .checkout-text::after {
    content: ' …';
}

.checkout-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}
.checkout-btn:not(:disabled):hover .checkout-arrow {
    transform: translateX(4px);
}

.trust-line {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}
.trust-line a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }
[data-theme="light"] .trust-line { color: rgba(0, 0, 0, 0.55); }
[data-theme="light"] .trust-line a { color: #0a0a0f; }

/* ============ Coming soon ============ */
.soon-section { position: relative; }

.soon-heading .soon-sparkle {
    display: inline-block;
    transform: translateY(-2px);
    margin-right: 4px;
    animation: soon-sparkle-bounce 2.4s ease-in-out infinite;
}
@keyframes soon-sparkle-bounce {
    0%, 100% { transform: translateY(-2px) rotate(0deg); }
    50%      { transform: translateY(-6px) rotate(15deg); }
}

.soon-lede {
    margin: -0.5rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}
[data-theme="light"] .soon-lede { color: rgba(0, 0, 0, 0.65); }

.soon-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (max-width: 640px) {
    .soon-grid { grid-template-columns: 1fr; }
}

.soon-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.soon-item:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}
.soon-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.soon-item h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 600;
}
.soon-item p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
}
[data-theme="light"] .soon-item p { color: rgba(0, 0, 0, 0.6); }

/* ============ FAQ ============ */
.coin-faq {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 0.5rem;
}
.coin-faq details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    transition: border-color 0.2s ease;
}
.coin-faq details[open] { border-color: rgba(245, 158, 11, 0.4); }
.coin-faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.coin-faq summary::after {
    content: '+';
    font-size: 1.3rem;
    transition: transform 0.2s ease;
    line-height: 0.8;
    margin-left: 1rem;
}
.coin-faq details[open] summary::after { content: '−'; }
.coin-faq summary::-webkit-details-marker { display: none; }
.coin-faq p {
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
}
.coin-faq a { color: var(--accent-secondary, #06b6d4); }
[data-theme="light"] .coin-faq p { color: rgba(0, 0, 0, 0.65); }

/* ============ Toast ============ */
.coin-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.85rem 1.4rem;
    font-size: 0.92rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
    max-width: 90vw;
    text-align: center;
}
.coin-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.coin-toast.success { border-color: rgba(16, 185, 129, 0.5); }
.coin-toast.error   { border-color: rgba(239, 68, 68, 0.55); }
.coin-toast.info    { border-color: rgba(245, 158, 11, 0.5); }

/* ============ Footer ============ */
.coin-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    padding: 2rem 1rem 3rem;
}
.coin-footer a { color: inherit; text-decoration: underline; }
[data-theme="light"] .coin-footer { color: rgba(0, 0, 0, 0.5); }
