@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

body, html {
    background-color: #F8F8F8;
    width: 100%;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 480px;
    background-color: #F8F8F8;
    min-height: 100vh;
    position: relative;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    border-bottom: 1px solid #F0F0F0;
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-text {
    font-weight: 800;
    font-size: 19px;
    color: #121212;
    letter-spacing: -0.4px;
}

.header-right {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.points-pill-link {
    text-decoration: none;
}

.points-pill, .ticket-pill {
    display: flex;
    align-items: center;
    border: 1px solid #EBEBEB;
    border-radius: 20px;
    height: 30px;
    padding: 0 10px 0 3px;
    background-color: #FFFFFF;
}

.ticket-pill {
    padding: 0 10px;
    gap: 6px;
}

.coin-icon {
    width: 22px;
    height: 22px;
    background-color: #F8B52E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    box-shadow: inset 0 -2px 0 rgba(222, 149, 13, 0.8), inset 0 2px 0 rgba(255, 221, 107, 0.8);
    border: 1px solid #DF9C1B;
}

.coin-p {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 14px;
}

.points-value {
    font-weight: 800;
    font-size: 13.5px;
    color: #121212;
    margin-right: 6px;
}

.cash-out {
    font-weight: 700;
    font-size: 13px;
    color: #FE2C55;
}

.ticket-value {
    font-weight: 700;
    font-size: 13px;
    color: #121212;
}

/* Inset Outer Wrapper */
.pink-card-wrapper {
    padding: 12px 14px 24px 14px;
}

/* Pink Content Card */
.main-content-card {
    background-color: #FE2C55; /* Vibrant TikTok Pink */
    border-radius: 24px;
    padding: 24px 18px 28px 18px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(254, 44, 85, 0.25);
}

.hero-section {
    position: relative;
    margin-bottom: 24px;
    z-index: 2;
}

.date-range {
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.95;
}

.main-title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.highlight-yellow {
    color: #FAFE54;
    font-size: 38px;
    font-weight: 900;
    display: block;
    margin-top: 2px;
}

.subtitle {
    font-size: 13.5px;
    line-height: 1.45;
    font-weight: 500;
    opacity: 0.95;
    max-width: 220px;
}

.hero-text-container {
    position: relative;
    z-index: 2;
    width: 65%;
}

.hero-image {
    position: absolute;
    top: -4px;
    right: -6px;
    width: 180px;
    z-index: 1;
    pointer-events: none;
}

/* 4 Yellow Reward Pills */
.avatars-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.avatar-item {
    background-color: #FAFE54;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    width: 68px;
    height: 108px;
    box-sizing: border-box;
}

.avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #FE2C55;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.avatar-circle svg {
    width: 28px;
    height: 28px;
    stroke: #FAFE54;
}

.avatar-amount {
    color: #121212;
    font-weight: 900;
    font-size: 15px;
    margin-top: auto;
    margin-bottom: 6px;
}

/* Claim Button */
.claim-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    background-color: #FAFE54;
    color: #121212;
    font-size: 18px;
    font-weight: 900;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease, background-color 0.2s ease;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.claim-btn:hover {
    background-color: #F8FB36;
}

.claim-btn:active {
    transform: scale(0.98);
}

/* Invite Code Footer */
.invite-code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13.5px;
    color: #FFFFFF;
    font-weight: 500;
}

.invite-code {
    color: #FAFE54;
    font-weight: 800;
    text-decoration: underline;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

/* Summary Section */
.summary-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

.summary-sub {
    font-size: 13.5px;
    line-height: 1.45;
    opacity: 0.9;
    margin-bottom: 18px;
}

.activity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.check-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #FAFE54;
    color: #FE2C55;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    flex-shrink: 0;
}

.criteria-footer-note {
    font-size: 13.5px;
    line-height: 1.45;
    opacity: 0.95;
    margin-top: 20px;
    font-weight: 500;
}

.section-divider-dashed {
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    margin: 24px 0;
}

/* How You Earned Section */
.how-earned-section {
    display: flex;
    flex-direction: column;
}

.how-earned-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.earned-item {
    display: flex;
    flex-direction: column;
}

.earned-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.earned-item-text {
    font-size: 14.5px;
    line-height: 1.45;
    font-weight: 600;
    color: #FFFFFF;
    flex: 1;
}

.completed-badge {
    background-color: #D91E47;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    flex-shrink: 0;
}

.earned-amount {
    color: #FAFE54;
    font-weight: 900;
    font-size: 17px;
    margin-top: 8px;
}

/* Days Progress Timeline */
.days-progress-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-top: 24px;
    padding: 0 10px;
}

.timeline-track-line {
    position: absolute;
    top: 36px;
    left: 20px;
    right: 20px;
    height: 4px;
    background-color: #FAFE54;
    z-index: 1;
}

.progress-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.days-badge {
    background-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.node-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #FAFE54;
    color: #FE2C55;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    box-shadow: 0 0 0 3px #FE2C55;
    margin-bottom: 8px;
}

.node-amount {
    color: #FAFE54;
    font-weight: 900;
    font-size: 13.5px;
}

/* View Details Row */
.view-details-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-details-link {
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.view-details-link:hover {
    opacity: 0.85;
}

/* FAQ Modal Drawer */
.faq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.faq-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.faq-modal-container {
    width: 100%;
    max-width: 480px;
    height: 88vh;
    background-color: #F8F8F8;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
}

.faq-modal-overlay.active .faq-modal-container {
    transform: translateY(0);
}

.faq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #FFFFFF;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom: 1px solid #EBEBEB;
}

.faq-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-modal-title {
    font-size: 17px;
    font-weight: 800;
    color: #121212;
    text-align: center;
}

.faq-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.faq-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #EBEBEB;
}

.faq-item {
    border-bottom: 1px solid #F0F0F0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #121212;
    cursor: pointer;
    line-height: 1.4;
}

.chevron-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.faq-item.active .chevron-icon {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 16px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 16px 16px 16px;
}

.faq-answer p {
    font-size: 13px;
    line-height: 1.5;
    color: #666666;
}
