:root {
    --lilac: #A78BFA;
    --bg: #FCFCFC;
    --white: #FFFFFF;
    --black: #0A0A0A;
    --gray: #737373;
    --gray-light: #E5E5E5;
    --orange: #FB923C;
    --red: #FCA5A5;
    --green: #86EFAC;
    --yellow: #FCD34D;
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.app-container {
    width: 390px;
    height: 844px;
    background: var(--white);
    border-radius: 48px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--black);
    overflow-y: auto;
    overflow-x: hidden;
}

.app-container::-webkit-scrollbar {
    display: none;
}

.app-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.logo {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--black);
}

.date {
    font-size: 14px;
    color: var(--gray);
}

.greeting-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.greeting {
    font-size: 20px;
    color: var(--black);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.greeting i {
    color: var(--lilac);
    font-size: 20px;
}

.chat-button {
    width: 44px;
    height: 44px;
    background: var(--lilac);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.chat-button i {
    font-size: 24px;
    color: var(--white);
}

.ai-insights {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #F3E8FF 0%, #E0E7FF 100%);
    border: 1.5px solid var(--lilac);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.ai-insights i {
    font-size: 24px;
    color: var(--lilac);
    flex-shrink: 0;
}

.ai-insights p {
    font-size: 13px;
    color: var(--black);
    line-height: 1.5;
    margin: 0;
}

.ai-insight-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 8px;
}

.ai-insight-text i {
    font-size: 16px;
    color: var(--lilac);
    flex-shrink: 0;
}

.ai-insight-text span {
    font-size: 11px;
    color: var(--gray);
    line-height: 1.4;
}

.balance-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid var(--orange);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 146, 60, 0.2);
}

.balance-label {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

.balance-amount {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.balance-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.balance-change.positive {
    color: #16A34A;
}

.balance-change.negative {
    color: #DC2626;
}

.balance-change i {
    font-size: 16px;
}

.insights-card {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.period-toggle {
    display: flex;
    gap: 8px;
}

.period-toggle button {
    background: transparent;
    border: 1px solid var(--gray-light);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    transition: all 0.2s ease;
}

.period-toggle button.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.insights-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.chart {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
}

.pie-chart {
    width: 100%;
    height: 100%;
}

.stats {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 80px;
}

.stat-bar {
    width: 28px;
    border-radius: 8px;
    max-height: 70px;
    margin: 0 auto;
}

.stat-label {
    font-size: 11px;
    color: var(--gray);
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.stat-amount {
    font-size: 10px;
    font-weight: 600;
    color: var(--black);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.chart-segment {
    transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease;
}

.chart-center-label {
    font-size: 10px;
    fill: var(--gray);
    font-family: 'Manrope', sans-serif;
}

.chart-center-value {
    font-size: 16px;
    font-weight: 600;
    fill: var(--black);
    font-family: 'Instrument Sans', sans-serif;
}

.list-enter-active,
.list-leave-active {
    transition: all 0.3s ease;
}

.list-enter-from {
    opacity: 0;
    transform: translateY(-10px);
}

.list-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

.transactions-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.transaction-column {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 20px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 260px;
    box-sizing: border-box;
}

.transaction-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.column-header {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
    width: 100%;
    min-width: 0;
}

.column-header i {
    font-size: 18px;
}

.column-header.debits {
    color: var(--black);
}

.column-header.credits {
    color: var(--black);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.transaction-item {
    padding: 8px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    height: 48px;
    box-sizing: border-box;
}

.transaction-item.debit {
    background: #FEE2E2;
    border: 1.5px solid var(--red);
}

.transaction-item.credit {
    background: #DCFCE7;
    border: 1.5px solid var(--green);
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.transaction-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--black);
    word-wrap: break-word;
}

.transaction-date {
    font-size: 11px;
    color: var(--gray);
}

.transaction-amount {
    font-size: 13px;
    font-weight: 600;
    font-family: 'Instrument Sans', sans-serif;
    flex-shrink: 0;
    white-space: nowrap;
}

.transaction-item.debit .transaction-amount {
    color: #DC2626;
}

.transaction-item.credit .transaction-amount {
    color: #16A34A;
}

.update-time {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
}

.page-container {
    width: 390px;
    height: 844px;
    background: var(--white);
    border-radius: 48px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--black);
    overflow-y: auto;
    overflow-x: hidden;
}

.page-container::-webkit-scrollbar {
    display: none;
}

.page-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.page-header h2 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 32px;
    font-weight: 600;
}

.page-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.page-stats>i {
    font-size: 48px;
    color: var(--lilac);
}

.red-icon {
    color: #DC2626 !important;
}

.green-icon {
    color: #16A34A !important;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
}

.stat-value {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 40px;
    font-weight: 600;
}

.stat-value.positive {
    color: #16A34A;
}

.stat-value.negative {
    color: #DC2626;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.transaction-item.debit .transaction-icon {
    background: #FEE2E2;
}

.transaction-item.credit .transaction-icon {
    background: #DCFCE7;
}

.transaction-icon i {
    font-size: 24px;
}

.transaction-emoji {
    font-size: 24px;
}

.transaction-item.debit .transaction-icon i {
    color: #DC2626;
}

.transaction-item.credit .transaction-icon i {
    color: #16A34A;
}

.transactions-list .transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    overflow: hidden;
}

.transactions-list .transaction-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.transactions-list .transaction-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transactions-list .transaction-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transactions-list .transaction-type {
    font-size: 12px;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transactions-list .transaction-date {
    font-size: 12px;
    color: var(--gray);
    opacity: 0.7;
    white-space: nowrap;
}

.transactions-list .transaction-date::before {
    content: "•";
    margin-right: 8px;
}

.transactions-list .transaction-amount {
    flex-shrink: 0;
    white-space: nowrap;
}

.balance-summary {
    text-align: center;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid var(--orange);
    border-radius: 24px;
    padding: 32px 24px;
    margin-bottom: 28px;
    overflow: hidden;
}

.balance-summary>i {
    font-size: 48px;
    color: var(--orange);
    margin-bottom: 12px;
}

.summary-amount {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-label {
    font-size: 15px;
    color: var(--gray);
}

.back-button {
    background: var(--bg);
    border: 1.5px solid var(--gray-light);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: var(--black);
    border-color: var(--black);
}

.back-button:hover i {
    color: var(--white);
}

.back-button i {
    font-size: 20px;
    color: var(--black);
}

.detail-section {
    margin-bottom: 32px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-title i {
    font-size: 24px;
    color: var(--lilac);
}

.section-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
}

.trend-chart {
    background: var(--bg);
    border-radius: 20px;
    padding: 24px 16px;
    margin-bottom: 12px;
}

.line-chart {
    width: 100%;
    height: auto;
}

.trend-value {
    font-size: 11px;
    fill: var(--black);
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
}

.trend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
    padding: 0 16px;
    font-weight: 500;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.breakdown-card {
    background: var(--bg);
    border-radius: 18px;
    padding: 20px 16px;
    text-align: center;
    overflow: hidden;
}

.breakdown-card.positive {
    border: 2px solid #86EFAC;
}

.breakdown-card.negative {
    border: 2px solid #FCA5A5;
}

.breakdown-card>i {
    font-size: 28px;
    margin-bottom: 10px;
}

.breakdown-card.positive>i {
    color: #16A34A;
}

.breakdown-card.negative>i {
    color: #DC2626;
}

.breakdown-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 6px;
}

.breakdown-value {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.net-change {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--black);
    color: var(--white);
    padding: 20px;
    border-radius: 18px;
    overflow: hidden;
}

.net-change>i {
    font-size: 36px;
    flex-shrink: 0;
}

.net-info {
    flex: 1;
    min-width: 0;
}

.net-label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.net-value {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 32px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-item {
    background: var(--bg);
    border-radius: 16px;
    padding: 18px;
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon i {
    font-size: 22px;
    color: var(--white);
}

.category-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-amount {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    flex-shrink: 0;
    white-space: nowrap;
}

.category-bar-container {
    height: 12px;
    background: #E5E5E5;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 8px;
}

.category-bar {
    height: 100%;
    border-radius: 100px;
    transition: width 0.5s ease;
}

.category-percentage {
    text-align: right;
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 100px);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.chat-messages {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-icon {
    width: 36px;
    height: 36px;
    background: var(--lilac);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-icon i {
    font-size: 18px;
    color: var(--white);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-text {
    background: var(--bg);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--black);
}

.chat-message.user .message-text {
    background: var(--black);
    color: var(--white);
    border-radius: 16px 16px 4px 16px;
}

.chat-message.assistant .message-text {
    border-radius: 16px 16px 16px 4px;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--gray);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chat-input-container {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
    margin-top: auto;
}

.chat-input {
    flex: 1;
    background: var(--bg);
    border: 1.5px solid var(--gray-light);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    color: var(--black);
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--lilac);
}

.chat-input::placeholder {
    color: var(--gray);
}

.chat-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.send-button {
    width: 48px;
    height: 48px;
    background: var(--black);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.send-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.send-button i {
    font-size: 20px;
    color: var(--white);
}

@media (max-width: 480px) {
    .app-container {
        padding: 32px 24px;
    }

    .balance-amount {
        font-size: 40px;
    }

    .insights-content {
        flex-direction: column;
        gap: 20px;
    }

    .chart {
        width: 140px;
        height: 140px;
    }

    .stats {
        width: 100%;
    }

    .transactions-section {
        grid-template-columns: 1fr;
    }
}


.wrapped-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Instrument Sans', sans-serif;
}

.wrapped-slide-container {
    width: 390px;
    width: 390px;
    height: 100%;
    max-height: 844px;
    max-height: 844px;
    position: relative;
    background: linear-gradient(135deg, #2D1B69 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 500px) {
    .wrapped-slide-container {
        border-radius: 48px;
        height: 844px;
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    }
}

.wrapped-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.wrapped-close i {
    font-size: 24px;
}

.wrapped-slide {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wrapped-logo {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: auto;
}

.wrapped-content-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.wrapped-hero-icon {
    font-size: 80px;
    color: #FCD34D;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.wrapped-slide h1 {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(to right, #FCD34D, #FCA5A5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wrapped-slide h2 {
    font-size: 32px;
    font-weight: 600;
}

.wrapped-slide p {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    opacity: 0.8;
}

.wrapped-btn-primary {
    background: white;
    color: black;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 40px;
    transition: transform 0.2s;
}

.wrapped-btn-primary:active {
    transform: scale(0.95);
}

.wrapped-header {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-top: 40px;
}

.stat-big-number {
    font-size: 56px;
    font-weight: 700;
    color: #86EFAC;
    margin: 20px 0;
}

.category-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.category-ring i {
    font-size: 48px;
    color: #A78BFA;
}

.category-amount {
    font-size: 24px;
    opacity: 0.9;
    font-family: 'Manrope', sans-serif;
}

.persona-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 32px;
    width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.persona-card i {
    font-size: 64px;
    color: #FCA5A5;
    margin-bottom: 20px;
    display: block;
}

.summary-card {
    background: white;
    color: black;
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 12px;
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-row span:last-child {
    font-weight: 700;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 16px;
}

.summary-row.highlight {
    background: #F3E8FF;
    margin: 0 -10px;
    padding: 10px;
    border-radius: 12px;
    border: none;
    color: #7C3AED;
}

.share-btn {
    width: 100%;
    margin-top: 20px;
    background: #000;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.wrapped-text-btn {
    background: none;
    border: none;
    color: white;
    opacity: 0.6;
    margin-top: 16px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.wrapped-footer {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrapped-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.2s;
}

.wrapped-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wrapped-nav-btn i {
    font-size: 20px;
}

.progress-bars {
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 6px;
}

.bar {
    height: 4px;
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.bar.active {
    background: white;
}


.slide-intro {
    background: linear-gradient(135deg, #4C1D95 0%, #1e1b4b 100%);
}

.slide-total {
    background: linear-gradient(135deg, #064E3B 0%, #022c22 100%);
}

.slide-category {
    background: linear-gradient(135deg, #831843 0%, #500724 100%);
}

.slide-quiz {
    background: linear-gradient(135deg, #B91C1C 0%, #7F1D1D 100%);
}

.slide-whatif {
    background: linear-gradient(135deg, #075985 0%, #0C4A6E 100%);
}

.slide-rhythm {
    background: linear-gradient(135deg, #4338CA 0%, #312E81 100%);
}

.slide-leaderboard {
    background: linear-gradient(135deg, #15803D 0%, #14532D 100%);
}

.slide-persona {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
}

.slide-summary {
    background: linear-gradient(135deg, #7C3AED 0%, #4C1D95 100%);
}


.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    transition: all 0.2s;
}

.quiz-option:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.quiz-option.correct {
    background: #22C55E;
    border-color: #22C55E;
    color: black;
    font-weight: 600;
}

.quiz-option.wrong {
    background: #EF4444;
    border-color: #EF4444;
    opacity: 0.6;
}

.quiz-feedback {
    margin-top: 20px;
    font-weight: 600;
    font-size: 18px;
    animation: fadeIn 0.3s ease;
}


.whatif-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.whatif-item i {
    font-size: 32px;
    color: #FCD34D;
}

.whatif-text {
    flex: 1;
    text-align: left;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.whatif-divider {
    font-weight: 700;
    font-size: 14px;
    opacity: 0.5;
    margin: 10px 0;
}


.rhythm-stat {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 24px;
    border-radius: 30px;
}

.rhythm-stat i {
    color: #A78BFA;
    font-size: 20px;
}


.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
}

.leaderboard-item .rank {
    font-size: 16px;
    font-weight: 700;
    color: #FCD34D;
    width: 24px;
}

.leaderboard-item .vendor-name {
    flex: 1;
    font-weight: 500;
    text-align: left;
    font-size: 14px;
}

.leaderboard-item .vendor-amount {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
}


.summary-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}



.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid #E5E5E5;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--black);
}

.icon-btn:hover {
    background: var(--black);
    color: white;
    border-color: var(--black);
}

.icon-btn i {
    font-size: 18px;
}


.fab-add {
    position: absolute;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--black);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 90;
}

.fab-add:hover {
    transform: scale(1.1) rotate(90deg);
}

.fab-add i {
    font-size: 24px;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 350px;
    border-radius: 24px;
    padding: 24px;
    border: 2px solid var(--black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-card h3 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1.5px solid #E5E5E5;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    background: #FCFCFC;
    color: var(--black);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--black);
}

.modal-btn-primary {
    background: var(--black);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

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



.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FCFCFC;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.welcome-content {
    width: 390px;
    height: 844px;
    background: #FCFCFC;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 32px;
}

@media (min-width: 500px) {
    .welcome-content {
        border-radius: 48px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
        border: 2px solid var(--black);
        height: 800px;
    }
}

.welcome-header {
    margin-top: 40px;
}

.welcome-header h1 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.welcome-header p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--gray);
}

.privacy-card {
    background: #F3F4F6;
    border-radius: 24px;
    padding: 32px 24px;
    margin: 20px 0;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.privacy-badge i {
    color: var(--black);
}

.privacy-section {
    margin-bottom: 20px;
}

.privacy-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.privacy-header.green {
    color: #22C55E;
}

.privacy-header.purple {
    color: #A78BFA;
}

.privacy-header b {
    color: var(--black);
}

.data-bullets {
    list-style: disc;
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-bullets li {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.4;
}

.welcome-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.welcome-footer p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

.welcome-footer b {
    color: var(--black);
}

.welcome-btn {
    background: var(--black);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

.welcome-btn:hover {
    transform: translateY(-2px);
}



.chart-segment {
    transition: all 0.3s ease;
}


.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-info {
    display: flex;
    flex-direction: column;
}

.legend-name {
    font-size: 11px;
    color: var(--gray);
    text-transform: capitalize;
}

.legend-amount {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}