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

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --accent: #764ba2;
    --success: #38ef7d;
    --info: #11998e;
    --warning: #f7971e;
    --danger: #fc5c7d;
    --text: #ffffff;
    --text-dark: #1a1a2e;
    --text-light: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    --card-bg: rgba(255, 255, 255, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #0f0c29;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: var(--text);
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 115, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(100, 220, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(167, 119, 227, 0.2) 0%, transparent 40%);
    animation: bgFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.hidden {
    display: none !important;
}

/* Glass Morphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Auth Page */
.page {
    min-height: 100vh;
}

#auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

#auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    border-radius: 50%;
    top: -250px;
    right: -100px;
    opacity: 0.3;
    animation: pulse 8s ease-in-out infinite;
}

#auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #38ef7d, #11998e);
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
    opacity: 0.2;
    animation: pulse 6s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 48px 36px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo i {
    font-size: 56px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.4));
}

.auth-logo h1 {
    font-size: 26px;
    margin-top: 14px;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.auth-logo p {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0 14px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.form-group:focus-within {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.15);
}

.form-group label {
    color: var(--text-light);
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.form-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 10px;
    font-size: 14px;
    background: transparent;
    color: #fff;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

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

.btn-success {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(56, 239, 125, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(79, 172, 254, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(247, 151, 30, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(247, 151, 30, 0.4);
}

.btn-block {
    width: 100%;
    padding: 15px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-light);
}

.auth-switch a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-switch a:hover {
    color: #c4b5fd;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(15, 12, 41, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
}

.header-left i {
    font-size: 22px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-vip {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-light);
}

.user-vip.is-vip {
    background: linear-gradient(135deg, #f6d365, #fda085);
    border: none;
    color: #1a1a2e;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(246, 211, 101, 0.3);
}

.user-menu {
    font-size: 26px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.user-menu:hover {
    color: #fff;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 60px;
    right: 16px;
    background: rgba(30, 27, 60, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    min-width: 150px;
    z-index: 200;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
    padding: 14px 18px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    color: var(--text-light);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Main Content */
.main-content {
    padding: 24px 16px;
    padding-bottom: 90px;
}

.parse-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.parse-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #38ef7d);
    background-size: 300% 100%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.parse-section h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.parse-tip {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 24px;
}

.parse-input-wrap {
    position: relative;
    margin-bottom: 20px;
}

.parse-input-wrap textarea {
    width: 100%;
    height: 110px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    resize: none;
    outline: none;
    color: #fff;
    transition: all 0.3s;
}

.parse-input-wrap textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.parse-input-wrap textarea:focus {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 24px rgba(102, 126, 234, 0.15);
}

.btn-paste {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-paste:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-parse {
    font-size: 16px;
    padding: 16px;
    border-radius: 14px;
    letter-spacing: 1px;
}

.parse-count {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.parse-count a {
    color: #a78bfa;
    text-decoration: none;
    margin-left: 6px;
    transition: color 0.3s;
}

.parse-count a:hover {
    color: #c4b5fd;
}

/* Notice Bar */
.notice-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 215, 0, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.notice-icon {
    color: #ffd200;
    font-size: 13px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
    overflow: hidden;
    height: 20px;
}

.notice-scroll {
    display: flex;
    flex-direction: column;
    animation: scrollNotice 12s ease-in-out infinite;
}

.notice-scroll span {
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

@keyframes scrollNotice {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-20px); }
    50%, 70% { transform: translateY(-40px); }
    75%, 95% { transform: translateY(-60px); }
    100% { transform: translateY(0); }
}

/* Section Title */
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid;
    border-image: linear-gradient(135deg, #667eea, #764ba2) 1;
}

/* Platform Section */
.platform-section {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px 20px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.platform-item:hover {
    transform: translateY(-3px);
}

.platform-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.platform-icon i {
    font-size: 20px;
    color: #fff;
}

.platform-item span {
    font-size: 11px;
    color: var(--text-light);
}

/* Steps Section */
.steps-section {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px 20px;
}

.steps-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.step-num {
    position: absolute;
    top: -4px;
    right: 10px;
    font-size: 28px;
    font-weight: 800;
    color: rgba(102, 126, 234, 0.15);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i {
    font-size: 18px;
    background: linear-gradient(135deg, #667eea, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-text {
    text-align: center;
}

.step-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.step-desc {
    font-size: 10px;
    color: var(--text-light);
    line-height: 1.4;
}

.step-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    margin: 0 2px;
    margin-bottom: 30px;
}

/* Stats Section */
.stats-section {
    margin-top: 24px;
}

.stats-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px 16px;
}

.stats-item {
    flex: 1;
    text-align: center;
}

.stats-num {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.stats-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* Activity Section */
.activity-section {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px 20px;
    overflow: hidden;
}

.activity-title {
    position: relative;
    z-index: 2;
    margin-bottom: 14px;
}

.activity-scroll-wrap {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.activity-scroll-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.9), transparent);
    pointer-events: none;
    z-index: 1;
}

.activity-list {
    animation: scrollActivity 15s linear infinite;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.activity-item i {
    color: #38ef7d;
    font-size: 12px;
    flex-shrink: 0;
}

.activity-item span {
    flex: 1;
    font-size: 12px;
    color: var(--text-light);
}

.activity-item em {
    font-style: normal;
    color: #a78bfa;
    font-weight: 500;
}

.activity-item time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

@keyframes scrollActivity {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Result */
.result-section {
    margin-top: 24px;
    animation: slideUp 0.4s ease;
}

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

.result-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

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

.result-header h3 {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.result-platform {
    font-size: 11px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.video-preview-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
}

.video-preview-wrap video {
    width: 100%;
    max-height: 420px;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 10;
}

.result-actions-simple {
    padding-top: 4px;
}

.btn-save {
    font-size: 16px;
    padding: 15px;
    border-radius: 12px;
    letter-spacing: 1px;
}

/* Loading */
.loading-section {
    text-align: center;
    padding: 50px 20px;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-right-color: #764ba2;
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: spin 0.8s linear infinite;
}

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

.loading-section p {
    font-size: 14px;
    color: var(--text-light);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 19px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #a78bfa;
}

.nav-item.active i {
    filter: drop-shadow(0 2px 6px rgba(167, 139, 250, 0.5));
}

/* VIP Page */
.vip-content {
    padding: 20px 16px;
    padding-bottom: 30px;
}

.vip-user-info {
    text-align: center;
    padding: 36px 0;
}

.vip-avatar i {
    font-size: 64px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-username {
    font-size: 20px;
    font-weight: 700;
    margin-top: 12px;
}

.vip-level {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

.vip-plans {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px 20px;
}

.vip-plans h3 {
    font-size: 17px;
    margin-bottom: 18px;
    font-weight: 600;
}

.plan-list {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.plan-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.plan-card.active,
.plan-card:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.plan-card.recommended {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.08);
}

.plan-tag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 10px;
    padding: 3px 12px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.plan-name {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-symbol {
    font-size: 14px;
}

.plan-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 8px;
}

.btn-pay {
    margin-bottom: 28px;
    font-size: 16px;
    letter-spacing: 1px;
}

.vip-features {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.vip-features h4 {
    font-size: 15px;
    margin-bottom: 14px;
}

.vip-features ul {
    list-style: none;
}

.vip-features li {
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.vip-features li i {
    background: linear-gradient(135deg, #38ef7d, #11998e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 10px;
    font-size: 14px;
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 27, 60, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    animation: fadeIn 0.3s;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Ad Reward Section */
.ad-reward-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-reward-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(247, 151, 30, 0.1), rgba(253, 210, 0, 0.05));
    border: 1px solid rgba(247, 151, 30, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.3s;
}

.ad-reward-card:hover {
    border-color: rgba(247, 151, 30, 0.4);
    box-shadow: 0 4px 16px rgba(247, 151, 30, 0.15);
}

.ad-reward-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ad-reward-icon i {
    font-size: 18px;
    color: #fff;
}

.ad-reward-info {
    flex: 1;
}

.ad-reward-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffd200;
}

.ad-reward-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
}

.ad-reward-desc strong {
    color: #ffd200;
}

.btn-ad-reward {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(247, 151, 30, 0.3);
}

.btn-ad-reward:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(247, 151, 30, 0.4);
}

.ad-reward-progress {
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Ad Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: rgba(30, 27, 60, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ad-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-modal-header h3 i {
    color: #ffd200;
}

.modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.ad-modal-body {
    padding: 24px 20px;
}

.ad-video-container {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
}

.ad-placeholder i {
    font-size: 36px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ad-placeholder p {
    font-size: 14px;
}

.ad-placeholder span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.ad-countdown {
    text-align: center;
    margin-bottom: 20px;
}

.countdown-ring {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
}

.countdown-ring svg {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
}

.countdown-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 2.5;
}

.countdown-progress {
    fill: none;
    stroke: url(#countdown-gradient);
    stroke: #667eea;
    stroke-width: 2.5;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.ad-countdown p {
    font-size: 12px;
    color: var(--text-light);
}

.btn-claim {
    font-size: 15px;
    padding: 14px;
}

.btn-claim:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-claim.ready {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    box-shadow: 0 8px 24px rgba(56, 239, 125, 0.35);
    animation: pulseBtn 1.5s ease infinite;
}

@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 8px 24px rgba(56, 239, 125, 0.35); }
    50% { box-shadow: 0 8px 32px rgba(56, 239, 125, 0.55); }
}

/* Responsive */
@media (max-width: 375px) {
    .auth-container {
        padding: 36px 24px;
    }
    .result-actions {
        flex-direction: column;
    }
    .plan-card {
        padding: 12px 8px;
    }
}

@media (min-width: 768px) {
    .main-content {
        max-width: 600px;
        margin: 0 auto;
    }
    .vip-content {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ======= 解析记录页 ======= */
.page-header {
    padding: 0 0 16px;
}

.page-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

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

.record-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.record-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}

.record-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.record-title {
    font-size: 14px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}

.record-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.record-platform {
    background: rgba(124, 58, 237, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    color: #a78bfa;
    font-size: 11px;
}

.record-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.btn-download-record {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.btn-delete-record {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.empty-text, .loading-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 60px 20px;
    font-size: 14px;
}

/* ======= 我的页面 ======= */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.profile-phone {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.profile-stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #a78bfa;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.sign-section {
    text-align: center;
}

.btn-sign {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 12px;
}

.sign-tip {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.exchange-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: #a78bfa;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.15);
}

.profile-menu-list {
    display: flex;
    flex-direction: column;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: color 0.2s;
}

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

.profile-menu-item:hover {
    color: #fff;
}

.profile-menu-item i:first-child {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    color: #a78bfa;
}

.profile-menu-item span {
    flex: 1;
}

.profile-menu-item i:last-child {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.profile-card .form-group {
    margin-bottom: 12px;
}

.profile-card .form-group label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.profile-card .form-group input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.profile-card .form-group input:focus {
    border-color: rgba(124, 58, 237, 0.5);
}

/* 页面头部带返回按钮 */
.page-header-with-back {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.page-header-with-back h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.btn-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* VIP 到期时间 */
.profile-expire {
    font-size: 12px;
    color: #fbbf24;
    margin-top: 4px;
}

/* 未读消息红点 */
.unread-dot {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    text-align: center;
    margin-left: 6px;
}

/* 通知列表 */
.notifications-list {
    padding: 0 16px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.notification-item.unread {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 14px;
}

.notification-item.unread .notification-icon {
    background: rgba(102, 126, 234, 0.3);
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-content {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 6px;
}

.notification-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.btn-mark-all-read {
    padding: 6px 14px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--primary);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.btn-mark-all-read:hover {
    background: rgba(102, 126, 234, 0.3);
}

/* 头部用户图标红点 */
.user-menu {
    position: relative;
}
.header-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 1.5px solid #1a1a2e;
}

/* 商品ID显示 */
.result-product-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.product-label {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
}

.product-id {
    font-size: 14px;
    font-weight: 600;
    color: #fbbf24;
    word-break: break-all;
}

.btn-copy-product {
    margin-left: auto;
    padding: 5px 12px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--primary);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-copy-product:active {
    background: rgba(102, 126, 234, 0.4);
}

.result-product-info {
    flex-wrap: wrap;
}

.product-detail {
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.product-name {
    color: var(--text-light);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    color: #ef4444;
    font-weight: 600;
}

.product-sales {
    color: rgba(255, 255, 255, 0.5);
}
