:root {
    --bg-dark: #0a0a0c;
    --gold: #d4af37;
    --green: #009b3a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Dynamic animated background inspired by Toronto nights & Jamaican colours */
.background-anim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 155, 58, 0.1) 0%, transparent 50%);
    animation: pulse 15s infinite alternate ease-in-out;
}

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

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

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.greeting {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.clock {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
    margin-top: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glassmorphism utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.date-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--gold), #f3c951);
    color: #000;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.affirmation-text {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 600;
    margin: 1.5rem 0;
    color: var(--text-primary);
    transition: opacity 0.3s ease-in-out;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover,
.icon-btn:active {
    background: var(--gold);
    color: #000;
    transform: scale(1.05);
}

.countdown {
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.countdown h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.timer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 10px;
    border-radius: 16px;
    min-width: 65px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-unit span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 5px;
}

.time-unit label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes slideUpFade {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Toast Notification for share */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gold);
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}