:root {
    --primary-blue: #002d72;
    /* Deep Navy */
    --accent-pink: #e94560;
    --bg-light: #f6f8ff;
    --card-white: #ffffff;
    --text-dark: #1a1c24;
    --text-gray: #7d8a9d;
    --border-soft: #edf1f7;
    --shadow-soft: 0 8px 30px rgba(0, 45, 114, 0.05);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* Header Section */
.app-header {
    background: var(--primary-blue);
    padding: 2.5rem 1.5rem 3.5rem;
    border-radius: 0 0 50px 50px;
    color: white;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 45, 114, 0.2);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.menu-pill {
    font-size: 1.2rem;
    cursor: pointer;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.last-update {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 300;
}

/* Hero Countdown Card Redesign */
.hero-countdown-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.hero-badge {
    display: inline-block;
    background: var(--accent-pink);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.hero-countdown-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.timer-segment {
    display: flex;
    flex-direction: column;
}

.timer-segment span {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.timer-segment label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 4px;
}

#heroDate {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.5s ease;
}

.celebration-content {
    text-align: center;
    animation: zoomIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ribbon-box {
    width: 80px;
    height: 80px;
    background: var(--accent-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

.ribbon-icon {
    font-size: 2.5rem;
    animation: tada 2s infinite;
}

.celebration-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.celebration-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 2px;
}

/* Contact List Styles */
.contact-form {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.add-mini-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    width: 60px;
    height: 45px;
    cursor: pointer;
}

.contacts-list {
    max-height: 300px;
    overflow-y: auto;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.contact-info strong {
    display: block;
    font-size: 1rem;
}

.contact-info span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.contact-actions {
    display: flex;
    gap: 10px;
}

.call-btn {
    color: #2e7d32;
    font-size: 1.2rem;
}

.del-mini {
    color: #c62828;
    font-size: 1rem;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes tada {
    0% {
        transform: scale(1);
    }

    10%,
    20% {
        transform: scale(0.9) rotate(-3deg);
    }

    30%,
    50%,
    70%,
    90% {
        transform: scale(1.1) rotate(3deg);
    }

    40%,
    60%,
    80% {
        transform: scale(1.1) rotate(-3deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* Main Content */
.app-main {
    padding: 4rem 1.5rem 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--card-white);
    padding: 1.25rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    transition: var(--transition);
}

.stat-box:active {
    transform: scale(0.95);
}

.stat-box.active {
    background: var(--primary-blue);
    color: white;
}

.icon-wrap {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.icon-wrap.yearly {
    background: rgba(233, 69, 96, 0.1);
    color: #e94560;
}

.icon-wrap.monthly {
    background: rgba(0, 196, 255, 0.1);
    color: #00c4ff;
}

.icon-wrap.weekly {
    background: rgba(255, 172, 51, 0.1);
    color: #ffac33;
}

.icon-wrap.all {
    background: rgba(0, 45, 114, 0.1);
    color: var(--primary-blue);
}

.stat-box.active .icon-wrap {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.stat-val {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-name {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
}

/* Events Section */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.list-tabs {
    display: flex;
    gap: 12px;
}

.tab {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
}

.tab.active {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Reminder Cards */
.reminders-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    background: white;
    padding: 1.25rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    animation: slideUp 0.4s ease-out;
}

.event-avatar {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.event-info {
    flex: 1;
}

.event-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.event-meta {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-status {
    text-align: right;
}

.badge-tag {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 6px;
}

.badge-upcoming {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-ended {
    background: #ffebee;
    color: #c62828;
}

.days-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.nav-item {
    color: var(--text-gray);
    font-size: 1.3rem;
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary-blue);
}

.fab-wrapper {
    position: relative;
    top: -25px;
}

.fab-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 45, 114, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.fab-btn:active {
    transform: scale(0.9);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 114, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 40px 40px 0 0;
    padding: 2rem;
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-modal {
    background: var(--bg-light);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 6px;
    display: block;
}

input,
select {
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: var(--bg-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
}

.btn-submit {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1rem;
    cursor: pointer;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Scroll Hide */
::-webkit-scrollbar {
    display: none;
}