
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
    background: #f7f8fa;
    padding-bottom: 70px;
    color: #1a1a1a;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.loaded {
    opacity: 1;
}

.page { 
    min-height: 100vh; 
    padding: 16px;
    max-width: 500px;
    margin: 0 auto;
}


.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.8);
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
    letter-spacing: -0.2px;
}


.btn {
    all: unset;
    cursor: pointer;
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    background: linear-gradient(-75deg, rgba(34, 197, 94, 0.3), rgba(74, 222, 128, 0.5), rgba(34, 197, 94, 0.3));
    border-radius: 999vw;
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05), inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5), 0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2), 0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(20, 83, 45, 1);
}

.btn:hover {
    transform: scale(0.975);
}

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

.btn:disabled {
    background: rgba(200, 200, 200, 0.5);
    cursor: not-allowed;
    color: #999;
}

.btn-plain {
    background: transparent;
    color: #07c160;
    border: 1.5px solid #07c160;
}

.btn-plain:active {
    background: rgba(7, 193, 96, 0.05);
}

.btn-small {
    padding: 10px 18px;
    font-size: 14px;
    display: inline-block;
    width: auto;
    border-radius: 10px;
}

.btn-gray {
    background: #f5f5f5;
    color: #666;
}


input, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #07c160;
    background: #fff;
}

input::placeholder, textarea::placeholder {
    color: #bbb;
}


.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 0.5px solid #e5e5e5;
    display: flex;
    align-items: center;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-item.active { 
    color: #07c160;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    display: block;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}


.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.skeleton-btn {
    height: 48px;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


.loading {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 14px;
}

.empty {
    text-align: center;
    padding: 48px 24px;
    color: #999;
    font-size: 14px;
}


.hidden {
    display: none !important;
}


.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}
