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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #fff5f8 0%, #fef3e6 100%);
    color: #5a4a4a;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

body.dark-mode {
    background: linear-gradient(135deg, #2d2a2a 0%, #1a1a1a 100%);
    color: #e0d0d0;
}

#app {
    max-width: 100vw;
    min-height: 100vh;
    padding-bottom: 70px;
}

.pages {
    width: 100%;
}

.page {
    display: none;
    width: 100%;
}

.page.active {
    display: block;
}

.header {
    background: linear-gradient(135deg, #ff758c 0%, #ffa07a 50%, #ff7eb3 100%);
    color: white;
    padding: 25px 20px;
    padding-top: 50px;
    border-radius: 0 0 35px 35px;
    box-shadow: 0 10px 30px rgba(255, 117, 140, 0.35);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: shimmer 6s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.dark-mode .header {
    background: linear-gradient(135deg, #5a4a6a 0%, #7a5a7a 50%, #6a4a5a 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(100, 80, 120, 0.4);
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.category-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tabs .tab {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    color: #a08080;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.category-tabs .tab.active {
    background: linear-gradient(135deg, #ff758c 0%, #ffa07a 50%, #ff7eb3 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 117, 140, 0.4);
}

.dark-mode .category-tabs .tab {
    background: rgba(60, 50, 50, 0.5);
}

.dark-mode .category-tabs .tab.active {
    background: linear-gradient(135deg, #ff758c 0%, #ffa07a 50%, #ff7eb3 100%);
}

.wish-tree-container {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    background: radial-gradient(ellipse at center bottom, rgba(255, 200, 210, 0.4) 0%, rgba(255, 240, 245, 0.2) 50%, transparent 70%);
}

.wish-tree {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tree-trunk {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 100px;
    background: linear-gradient(to right, #6B4423, #8B5A2B, #A0724A, #8B5A2B, #6B4423);
    border-radius: 4px;
    box-shadow: 
        inset -2px 0 5px rgba(0,0,0,0.2),
        0 0 20px rgba(139, 90, 43, 0.3);
}

.tree-crown {
    position: absolute;
    left: 50%;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 30px rgba(255, 150, 180, 0.3);
}

.crown-1 {
    width: 190px;
    height: 100px;
    bottom: 90px;
    background: radial-gradient(ellipse at center 70%, 
        #FFE4EC 0%, 
        #FFB8D0 30%, 
        #FF9BB8 60%, 
        #FF7EA0 85%, 
        rgba(255, 126, 160, 0) 100%
    );
    filter: blur(1px);
}

.crown-2 {
    width: 160px;
    height: 90px;
    bottom: 140px;
    background: radial-gradient(ellipse at center 70%, 
        #FFEDF2 0%, 
        #FFC8DD 30%, 
        #FFAFCD 60%, 
        #FF96BD 85%, 
        rgba(255, 150, 189, 0) 100%
    );
    filter: blur(1px);
}

.crown-3 {
    width: 120px;
    height: 75px;
    bottom: 180px;
    background: radial-gradient(ellipse at center 70%, 
        #FFF5F8 0%, 
        #FFD9E8 30%, 
        #FFC0D8 60%, 
        #FFA7C8 85%, 
        rgba(255, 167, 200, 0) 100%
    );
    filter: blur(1px);
}

.light-ray {
    position: absolute;
    width: 2px;
    height: 50px;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform-origin: center bottom;
    animation: ray 3s ease-in-out infinite;
}

.ray-1 { left: 50%; bottom: 140px; transform: rotate(-60deg); animation-delay: 0s; }
.ray-2 { left: 50%; bottom: 140px; transform: rotate(-30deg); animation-delay: 0.3s; }
.ray-3 { left: 50%; bottom: 140px; transform: rotate(0deg); animation-delay: 0.6s; }
.ray-4 { left: 50%; bottom: 140px; transform: rotate(30deg); animation-delay: 0.9s; }
.ray-5 { left: 50%; bottom: 140px; transform: rotate(60deg); animation-delay: 1.2s; }

@keyframes ray {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 1; height: 60px; }
}

.flower {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 120, 160, 0.6);
    animation: bloom 2.5s ease-in-out infinite, float 4s ease-in-out infinite;
}

.flower::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    animation: sparkle 2s ease-in-out infinite;
}

.flower-1 {
    width: 16px;
    height: 16px;
    bottom: 140px;
    left: 22%;
    background: radial-gradient(circle, #FFF, #FFE4F0, #FF8FB8);
    animation-delay: 0s, 0s;
}

.flower-2 {
    width: 16px;
    height: 16px;
    bottom: 140px;
    left: 70%;
    background: radial-gradient(circle, #FFF, #FFE4F0, #FF8FB8);
    animation-delay: 0.3s, 0.5s;
}

.flower-3 {
    width: 18px;
    height: 18px;
    bottom: 115px;
    left: 28%;
    background: radial-gradient(circle, #FFF, #FFDAEC, #FF7EA8);
    animation-delay: 0.6s, 1s;
}

.flower-4 {
    width: 18px;
    height: 18px;
    bottom: 115px;
    left: 64%;
    background: radial-gradient(circle, #FFF, #FFDAEC, #FF7EA8);
    animation-delay: 0.9s, 1.5s;
}

.flower-5 {
    width: 14px;
    height: 14px;
    bottom: 170px;
    left: 38%;
    background: radial-gradient(circle, #FFF, #FFEAF5, #FF9FC0);
    animation-delay: 1.2s, 2s;
}

.flower-6 {
    width: 14px;
    height: 14px;
    bottom: 170px;
    left: 54%;
    background: radial-gradient(circle, #FFF, #FFEAF5, #FF9FC0);
    animation-delay: 1.5s, 2.5s;
}

.flower-7 {
    width: 15px;
    height: 15px;
    bottom: 100px;
    left: 42%;
    background: radial-gradient(circle, #FFF, #FFD0E4, #FF6D98);
    animation-delay: 1.8s, 3s;
}

.flower-8 {
    width: 15px;
    height: 15px;
    bottom: 100px;
    left: 50%;
    background: radial-gradient(circle, #FFF, #FFD0E4, #FF6D98);
    animation-delay: 2.1s, 3.5s;
}

@keyframes bloom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.petal {
    position: absolute;
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, 
        rgba(255, 200, 220, 0.95), 
        rgba(255, 150, 190, 0.85)
    );
    border-radius: 50% 0 50% 50%;
    animation: falling linear infinite;
    box-shadow: 0 0 8px rgba(255, 180, 210, 0.6);
}

.petal-1 { left: 12%; animation-duration: 4.5s; animation-delay: 0s; }
.petal-2 { left: 25%; animation-duration: 5s; animation-delay: 0.8s; }
.petal-3 { left: 40%; animation-duration: 4s; animation-delay: 1.6s; }
.petal-4 { left: 55%; animation-duration: 5.5s; animation-delay: 2.4s; }
.petal-5 { left: 70%; animation-duration: 4.2s; animation-delay: 3.2s; }
.petal-6 { left: 85%; animation-duration: 4.8s; animation-delay: 4s; }
.petal-7 { left: 5%; animation-duration: 3.8s; animation-delay: 1.2s; }
.petal-8 { left: 90%; animation-duration: 5.2s; animation-delay: 2s; }

@keyframes falling {
    0% {
        transform: translateY(-50px) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-25px) translateX(0) rotate(0deg) scale(0.8);
    }
    25% {
        transform: translateY(25px) translateX(20px) rotate(90deg) scale(1);
    }
    50% {
        transform: translateY(100px) translateX(-10px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(175px) translateX(30px) rotate(270deg) scale(0.7);
    }
    100% {
        transform: translateY(250px) translateX(0) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

.countdown-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 50%, transparent 70%);
    padding: 20px 30px;
    border-radius: 50%;
}

.dark-mode .countdown-overlay {
    background: radial-gradient(circle, rgba(50,40,40,0.9) 0%, rgba(50,40,40,0.6) 50%, transparent 70%);
}

.countdown-days {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #ffb86c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(255, 117, 140, 0.3);
}

.countdown-label {
    font-size: 12px;
    color: #a08080;
    margin-top: 8px;
}

.dark-mode .countdown-label {
    color: #c0a0a0;
}

.content {
    padding: 15px 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 20px;
    color: #8a6a6a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    border-radius: 2px;
}

.dark-mode .section-title {
    color: #c0a0a0;
}

.reminder-list, .festival-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reminder-item, .festival-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(255, 180, 180, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 200, 200, 0.3);
}

.reminder-item:hover, .festival-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 180, 180, 0.25);
}

.dark-mode .reminder-item,
.dark-mode .festival-item {
    background: rgba(60, 55, 55, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(80, 70, 70, 0.3);
}

.reminder-info, .festival-info {
    flex: 1;
}

.reminder-title, .festival-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #6a4a4a;
}

.dark-mode .reminder-title,
.dark-mode .festival-title {
    color: #f0e0e0;
}

.reminder-date, .festival-date {
    font-size: 13px;
    color: #b09090;
}

.dark-mode .reminder-date,
.dark-mode .festival-date {
    color: #907070;
}

.reminder-countdown, .festival-countdown {
    text-align: right;
}

.countdown-number {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.countdown-label {
    font-size: 12px;
    color: #c09090;
}

.reminder-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 10px;
    font-weight: 500;
}

.type-birthday {
    background: linear-gradient(135deg, #ffe0e6 0%, #ffd1dc 100%);
    color: #e85d75;
}

.type-anniversary {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe8cc 100%);
    color: #e67e22;
}

.type-countdown {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

.type-other {
    background: linear-gradient(135deg, #f5f0f0 0%, #ebe6e6 100%);
    color: #8a6a6a;
}

.dark-mode .type-birthday {
    background: linear-gradient(135deg, #5d4045 0%, #4d353a 100%);
}

.dark-mode .type-anniversary {
    background: linear-gradient(135deg, #5d5040 0%, #4d4235 100%);
}

.dark-mode .type-countdown {
    background: linear-gradient(135deg, #3d4d5d 0%, #304050 100%);
}

.dark-mode .type-other {
    background: linear-gradient(135deg, #4a4545 0%, #3d3838 100%);
}

.add-btn {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: white;
    padding: 16px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(255, 117, 140, 0.4);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 117, 140, 0.5);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tool-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 180, 180, 0.15);
    border: 1px solid rgba(255, 200, 200, 0.3);
}

.tool-item:active {
    transform: scale(0.95);
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 180, 180, 0.25);
}

.dark-mode .tool-item {
    background: rgba(60, 55, 55, 0.9);
}

.tool-icon {
    font-size: 32px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-name {
    font-size: 13px;
    color: #8a6a6a;
    font-weight: 500;
}

.dark-mode .tool-name {
    color: #c0a0a0;
}

.user-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(255, 180, 180, 0.15);
    border: 1px solid rgba(255, 200, 200, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.user-info:hover {
    transform: translateY(-2px);
}

.dark-mode .user-info {
    background: rgba(60, 55, 55, 0.9);
}

.avatar {
    font-size: 55px;
    color: #ff9a9e;
    margin-right: 18px;
}

.nickname {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #6a4a4a;
}

.dark-mode .nickname {
    color: #f0e0e0;
}

.user-desc {
    font-size: 13px;
    color: #b09090;
}

.balance-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffecd2 100%);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #7a4a4a;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.35);
}

.dark-mode .balance-card {
    background: linear-gradient(135deg, #5d4045 0%, #4d353a 50%, #4a3d35 100%);
}

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

.balance-label {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 8px;
    font-weight: 500;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
}

.recharge-btn {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.recharge-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.menu-list {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 180, 180, 0.15);
    border: 1px solid rgba(255, 200, 200, 0.3);
}

.dark-mode .menu-list {
    background: rgba(60, 55, 55, 0.9);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 220, 220, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.menu-item:hover {
    background: rgba(255, 180, 180, 0.1);
}

.dark-mode .menu-item {
    border-bottom: 1px solid rgba(80, 70, 70, 0.5);
}

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

.menu-icon {
    font-size: 20px;
    width: 36px;
    margin-right: 12px;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #6a4a4a;
}

.dark-mode .menu-item span {
    color: #e0d0d0;
}

.menu-arrow {
    color: #d0b0b0;
    font-size: 14px;
}

.switch {
    width: 48px;
    height: 26px;
    background: #f0d8d8;
    border-radius: 13px;
    position: relative;
    transition: background 0.3s;
}

.switch.active {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.switch.active::after {
    transform: translateX(22px);
}

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 200, 200, 0.3);
    z-index: 200;
    padding: 8px 0 12px;
}

.dark-mode .tab-bar {
    background: rgba(50, 45, 45, 0.95);
    border-top: 1px solid rgba(80, 70, 70, 0.3);
}

.tab-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    color: #c0a0a0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-bar-item.active {
    color: #ff758c;
    transform: translateY(-3px);
}

.tab-bar-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.tab-bar-item span {
    font-size: 11px;
    font-weight: 500;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 70, 70, 0.4);
    backdrop-filter: blur(5px);
    z-index: 300;
    align-items: flex-end;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 500px;
    border-radius: 30px 30px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(255, 154, 158, 0.25);
}

.dark-mode .modal-content {
    background: rgba(50, 45, 45, 0.98);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 25px;
    border-bottom: 1px solid rgba(255, 220, 220, 0.5);
}

.dark-mode .modal-header {
    border-bottom: 1px solid rgba(80, 70, 70, 0.5);
}

.modal-header h3 {
    font-size: 19px;
    font-weight: 600;
    color: #6a4a4a;
}

.dark-mode .modal-header h3 {
    color: #f0e0e0;
}

.close {
    font-size: 26px;
    color: #c0a0a0;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ff758c;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #8a6a6a;
    font-weight: 500;
}

.dark-mode .form-group label {
    color: #b09090;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 200, 200, 0.5);
    border-radius: 15px;
    font-size: 15px;
    outline: none;
    background: rgba(255, 250, 250, 0.8);
    transition: all 0.3s;
    color: #6a4a4a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff9a9e;
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.2);
    background: white;
}

.dark-mode .form-group input,
.dark-mode .form-group select,
.dark-mode .form-group textarea {
    background: rgba(70, 60, 60, 0.8);
    border: 1px solid rgba(100, 80, 80, 0.5);
    color: #f0e0e0;
}

.dark-mode .form-group input:focus,
.dark-mode .form-group select:focus,
.dark-mode .form-group textarea:focus {
    border-color: #ff758c;
    box-shadow: 0 0 0 3px rgba(255, 117, 140, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    width: 20px !important;
    height: 20px;
    accent-color: #ff758c;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: #8a6a6a;
}

.dark-mode .checkbox-label span {
    color: #b09090;
}

.lunar-display {
    margin-top: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 100%);
    border-radius: 12px;
    font-size: 13px;
    color: #d47878;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ffe4e4;
}

.dark-mode .lunar-display {
    background: linear-gradient(135deg, #4a3a3a 0%, #4a423a 100%);
    color: #e8b0b0;
    border-color: #6a4a4a;
}

.lunar-display i {
    font-size: 16px;
}

#toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

@keyframes toastIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 25px 30px;
    border-top: 1px solid rgba(255, 220, 220, 0.5);
}

.dark-mode .modal-footer {
    border-top: 1px solid rgba(80, 70, 70, 0.5);
}

.btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cancel {
    background: rgba(255, 220, 220, 0.5);
    color: #8a6a6a;
}

.btn-cancel:hover {
    background: rgba(255, 200, 200, 0.6);
}

.dark-mode .btn-cancel {
    background: rgba(80, 70, 70, 0.5);
    color: #c0a0a0;
}

.btn-confirm {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 117, 140, 0.35);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 117, 140, 0.45);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #c0a0a0;
}

.login-container {
    padding: 40px 25px;
    max-width: 450px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(255, 117, 140, 0.4);
}

.login-icon i {
    font-size: 42px;
    color: white;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    font-size: 14px;
    color: #a08080;
}

.dark-mode .login-header p {
    color: #908080;
}

.login-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 30px;
}

.dark-mode .login-tabs {
    background: rgba(60, 50, 50, 0.6);
}

.login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #908080;
    cursor: pointer;
    transition: all 0.3s;
}

.login-tab.active {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.3);
}

.login-form {
    display: none;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.login-form.active {
    display: block;
    z-index: 10;
    pointer-events: auto;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0a0a0;
    font-size: 18px;
}

.input-with-icon input {
    padding-left: 50px !important;
}

.btn-primary {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 117, 140, 0.35);
}

.btn-block {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 117, 140, 0.45);
}

.login-tip {
    margin-top: 30px;
    padding: 15px 20px;
    background: rgba(255, 240, 245, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #a07070;
}

.dark-mode .login-tip {
    background: rgba(70, 55, 55, 0.8);
    color: #c0a0a0;
}

.login-tip i {
    font-size: 18px;
    color: #ff758c;
}

.back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    color: #908080;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-home:hover {
    color: #ff758c;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state p {
    font-size: 15px;
}

.recharge-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.recharge-item {
    border: 2px solid rgba(255, 200, 200, 0.5);
    border-radius: 15px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 250, 250, 0.5);
}

.recharge-item:hover {
    transform: scale(1.03);
}

.dark-mode .recharge-item {
    border-color: rgba(100, 80, 80, 0.5);
    background: rgba(70, 60, 60, 0.5);
}

.recharge-item.active {
    border-color: #ff758c;
    background: rgba(255, 117, 140, 0.1);
    transform: scale(1.03);
}

.recharge-item .amount {
    font-size: 22px;
    font-weight: 700;
    color: #ff758c;
}

.code-input-group {
    display: flex;
    gap: 12px;
}

.code-input-group input {
    flex: 1;
}

.send-code-btn {
    padding: 14px 18px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.send-code-btn:disabled {
    background: #f0d8d8;
    cursor: not-allowed;
}

.form-tip {
    font-size: 13px;
    color: #b09090;
    margin-top: 12px;
}

.phone-text {
    color: #ff758c;
    font-size: 14px;
    margin-right: 10px;
    font-weight: 500;
}

.reminder-lunar {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #43a047;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.demo-label {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ef6c00;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
