:root {
    /* Premium Light Mode Colors (Bold & Vibrant Sunset/Lilac Backdrop) */
    --bg-color: #fdf2f8; /* Pink 50 */
    --bg-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 35%, #a1c4fd 100%);
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    --card-bg: rgba(255, 255, 255, 0.4); /* High transparency glass */
    --card-border: rgba(255, 255, 255, 0.45);
    --primary: #4f46e5; /* Indigo 600 */
    --buy-color: #f43f5e; /* Rose 500 (Muted Red) */
    --sell-color: #10b981; /* Emerald 500 (Muted Green) */
    --nav-bg: rgba(255, 255, 255, 0.65);
    --nav-active: #4f46e5;
    --input-bg: rgba(255, 255, 255, 0.25); /* Glass inputs */
    --input-border: rgba(255, 255, 255, 0.35);
    --surface: rgba(255, 255, 255, 0.2); /* Semi-transparent inner items */
    --border: rgba(255, 255, 255, 0.2);

    /* Background Blob Colors */
    --blob-1: rgba(255, 117, 140, 0.45); /* Vibrant Pink */
    --blob-2: rgba(112, 161, 255, 0.45); /* Vibrant Blue */
    --blob-3: rgba(255, 190, 118, 0.4);  /* Vibrant Orange/Yellow */
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Premium Dark Mode Colors (Deep Midnight with Neon Accents) */
        --bg-color: #0b071e; /* Deep purple-black */
        --bg-gradient: linear-gradient(135deg, #0b071e 0%, #170d3a 50%, #05020f 100%);
        --text-main: #f8fafc; /* Slate 50 */
        --text-muted: #94a3b8; /* Slate 400 */
        --card-bg: rgba(18, 12, 38, 0.45); /* Deep dark glass */
        --card-border: rgba(255, 255, 255, 0.06);
        --primary: #818cf8; /* Indigo 400 */
        --buy-color: #fb7185; /* Rose 400 */
        --sell-color: #34d399; /* Emerald 400 */
        --nav-bg: rgba(11, 7, 26, 0.85);
        --nav-active: #818cf8;
        --input-bg: rgba(255, 255, 255, 0.03);
        --input-border: rgba(255, 255, 255, 0.05);
        --surface: rgba(255, 255, 255, 0.03);
        --border: rgba(255, 255, 255, 0.04);

        /* Background Blob Colors */
        --blob-1: rgba(236, 72, 153, 0.25); /* Neon Pink */
        --blob-2: rgba(6, 182, 212, 0.25);  /* Neon Cyan */
        --blob-3: rgba(99, 102, 241, 0.25);  /* Neon Indigo */
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 90px; /* Space for nav */
    transition: background 0.4s ease;
    overflow-x: hidden;
}

/* Background Glow Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 1;
    animation: float 25s infinite alternate ease-in-out;
    will-change: transform;
}

.blob-1 {
    top: -10%;
    left: -15%;
    width: 45vw;
    height: 45vw;
    min-width: 300px;
    min-height: 300px;
    background: var(--blob-1);
}

.blob-2 {
    bottom: -15%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    min-width: 350px;
    min-height: 350px;
    background: var(--blob-2);
}

.blob-3 {
    top: 35%;
    left: 55%;
    width: 35vw;
    height: 35vw;
    min-width: 250px;
    min-height: 250px;
    background: var(--blob-3);
    animation-delay: -5s;
    animation-duration: 30s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(4vw, -6vh) scale(1.1);
    }
    100% {
        transform: translate(-2vw, 3vh) scale(0.95);
    }
}

/* Header */
header {
    padding: 24px 20px;
    text-align: center;
}

header h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    /* Sleek gradient text */
    background: linear-gradient(135deg, #6366f1, #3b82f6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

header p {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

/* Layout container */
.container {
    flex: 1;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Premium Glassmorphism Card */
.card {
    width: 100%;
    max-width: 480px; /* Slightly wider for data tables */
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: none;
    animation: cardEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card.active {
    display: block;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

input,
select {
    width: 100%;
    padding: 13px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    background: var(--surface);
}

/* Quick Select Tags */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    background: var(--input-bg);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--input-border);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.tag:active {
    transform: scale(0.96);
}

.tag.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

/* Segment Controller (Tab buttons inside cards) */
.tab-group {
    display: flex;
    background: var(--input-bg);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 24px;
    border: 1px solid var(--input-border);
}

.tab-btn {
    flex: 1;
    padding: 11px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active-buy {
    background: var(--buy-color);
    color: white;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

.tab-btn.active-sell {
    background: var(--sell-color);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Modern Gradient Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.submit-btn:active {
    transform: scale(0.97);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mode Specific Buttons */
#stockSubmitBtn.mode-buy {
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.25);
}
#stockSubmitBtn.mode-buy:hover {
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
}

#stockSubmitBtn.mode-sell {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
#stockSubmitBtn.mode-sell:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 25%;
    height: 100%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.nav-item ion-icon {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.nav-item.active {
    color: var(--nav-active);
}

.nav-item.active ion-icon {
    transform: translateY(-4px) scale(1.1);
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

/* Loading Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dashboard Report Controls */
.dashboard-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.dashboard-controls select {
    flex: 1;
}

/* Balance Card (Top of Dashboard) */
.balance-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.03));
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
    padding: 22px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.balance-card h4 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.balance-card .amount {
    font-size: 30px;
    font-weight: 800;
    color: var(--sell-color);
    letter-spacing: -0.5px;
}

.chart-container {
    margin-top: 15px;
    position: relative;
    height: 280px;
    width: 100%;
}

/* Investment Summary box */
.invest-list-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.invest-list-box h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.invest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.invest-row.total {
    border-top: 1px dashed var(--border);
    margin-top: 6px;
    padding-top: 12px;
    font-weight: 700;
    color: var(--text-main);
}

/* Recent items list */
.recent-list-box {
    margin-top: 24px;
    margin-bottom: 20px;
}

.recent-list-box h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
    transition: all 0.25s ease;
}

.recent-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02);
    border-color: rgba(99, 102, 241, 0.15);
}

.recent-item .info {
    display: flex;
    flex-direction: column;
}

.recent-item .info .date {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.recent-item .info .name {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 600;
}

.recent-item .amt {
    font-size: 15px;
    font-weight: 700;
    color: var(--buy-color);
}

/* History Data Management Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
}

.history-table th,
.history-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.history-table th {
    background: var(--input-bg);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.history-table td {
    color: var(--text-main);
    font-weight: 500;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover td {
    background: rgba(99, 102, 241, 0.03);
}

/* Row Action Buttons */
.action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.08);
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn.edit {
    color: var(--primary);
}

.action-btn.delete {
    color: var(--buy-color);
}

/* Premium Modals Overlay & Content */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 15, 0.4); /* Dark tinted overlay */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.25s ease;
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid var(--card-border);
    width: 90%;
    max-width: 440px;
    padding: 28px;
    border-radius: 28px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

.modal-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-btn.cancel {
    background: var(--input-bg);
    color: var(--text-muted);
    border: 1px solid var(--input-border);
}

.modal-btn.cancel:hover {
    background: var(--input-border);
    color: var(--text-main);
}

.modal-btn.save {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.modal-btn.save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.modal-btn.save:active {
    transform: scale(0.97);
}

.modal-btn.save.stock-save {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive History Card List */
.history-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.history-card-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-card-item:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-card-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-card-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.history-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.history-card-note {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

.history-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.history-card-amount {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* Badges */
.buyer-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.2px;
}

.buyer-badge.buyer-yang {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.buyer-badge.buyer-yun {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.action-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.2px;
}

.action-badge.action-buy {
    background: rgba(244, 63, 94, 0.1);
    color: var(--buy-color);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.action-badge.action-sell {
    background: rgba(16, 185, 129, 0.1);
    color: var(--sell-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Actions Row */
.history-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px dashed var(--border);
    padding-top: 12px;
}

.history-card-btn {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.history-card-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.history-card-btn.delete:hover {
    background: rgba(244, 63, 94, 0.08);
    border-color: var(--buy-color);
    color: var(--buy-color);
}

.history-card-btn:active {
    transform: scale(0.96);
}

/* Yun Yun Assistant Easter Egg */
.yun-assistant-container {
    position: fixed;
    bottom: 92px; /* Placed above bottom nav */
    right: 20px;
    z-index: 999;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.yun-assistant-container:hover {
    transform: scale(1.08) translateY(-2px);
}

.yun-assistant-container:active {
    transform: scale(0.95);
}

.yun-helper-avatar {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    animation: yunIdle 6s infinite ease-in-out;
}

/* Bubble speech balloon */
.yun-bubble {
    position: absolute;
    bottom: 72px;
    right: 5px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    max-width: 200px;
    width: max-content;
    display: none;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
}

.yun-bubble.show {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.yun-bubble-arrow {
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 10px;
    height: 10px;
    background: var(--card-bg);
    border-right: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    transform: rotate(45deg);
}

/* Animation Poses */
@keyframes yunIdle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(2deg);
    }
}

.yun-bounce {
    animation: yunBounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes yunBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.25) translateY(-8px); }
    50% { transform: scale(0.9) translateY(2px); }
    70% { transform: scale(1.05) translateY(-2px); }
    100% { transform: scale(1) translateY(0); }
}

.yun-shake {
    animation: yunShake 0.5s ease-in-out;
}

@keyframes yunShake {
    0%, 100% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(-8deg); }
    40%, 80% { transform: rotate(8deg); }
}
