:root {
    --bg: #f9fafb;
    --card: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --text-muted: #6b7280;
    --primary: #111827;
    --danger: #dc2626;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

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

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

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

.toast-enter {
    animation: toastIn 0.35s ease forwards;
}
.toast-exit {
    animation: toastOut 0.3s ease forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, -12px); }
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.card-hover:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(243,244,246,0.8);
}
.nav-inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.nav-brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-brand span { font-weight: 700; font-size: 1.2rem; }
.nav-back {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}
.nav-back:hover { color: var(--text); }

.page-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 96px 24px 64px;
}

.section {
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}
.section-header i { color: var(--text-muted); }

.sidebar-item { transition: all 0.15s ease; }
.sidebar-item:hover { background: #f3f4f6; }
.sidebar-item.active { background: #111827; color: #fff; }
.sidebar-item.active i { color: #fff; }

/* 移动端 tab 滚动条 */
.mobile-tabs-bar {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.mobile-tabs-bar::-webkit-scrollbar { height: 4px; }
.mobile-tabs-bar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: modalIn 0.2s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f3f4f6;
}
.modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.9rem;
}
.modal-close:hover { background: #e5e7eb; color: #111827; }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.tw-modal-overlay { transition: opacity 0.2s ease; }
.tw-modal-panel { transition: all 0.2s ease; }

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1);
}
input:checked + .slider {
    background: #111827;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
input:checked + .slider:before {
    transform: translateX(24px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.1);
}
input:focus + .slider {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 3px rgba(0,0,0,0.05);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-primary { background: #f3f4f6; color: #374151; }
.badge-warning { background: #f9fafb; color: #6b7280; }
.badge-danger { background: #fef2f2; color: #dc2626; }
.badge-success { background: #f0fdf4; color: #16a34a; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #111827;
    background: #fff;
    transition: all 0.15s ease;
    outline: none;
    box-sizing: border-box;
}
.form-control:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.form-control::placeholder { color: #9ca3af; }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 36px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
}
.btn-parrots { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.btn-parrots:hover { background: #e5e7eb; border-color: #d1d5db; }
.btn-edit { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.btn-edit:hover { background: #e5e7eb; border-color: #d1d5db; }
.btn-delete { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.btn-delete:hover { background: #fee2e2; border-color: #fca5a5; }
.btn-delete:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-vip { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.btn-vip:hover { background: #e5e7eb; border-color: #d1d5db; }
.btn-address { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.btn-address:hover { background: #e5e7eb; border-color: #d1d5db; }
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--primary);
    color: #fff;
}
.btn-submit:hover { background: #1f2937; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
    color: #374151;
}
.btn-cancel:hover { background: #f9fafb; border-color: #d1d5db; }

.tab-content { display: none; }
.tab-content.active { display: block; }
.sub-panel { display: none; }
.sub-panel.active { display: block; }
.guide-body { display: none; }
.guide-body.active { display: block; }

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
}
.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    color: #d1d5db;
}
.empty-state p { font-size: 0.9rem; margin: 0; }

.auth-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}
.auth-input::placeholder { color: #c0c4cc; }

.search-input {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}
.search-input::placeholder { color: #c0c4cc; }

.tab-group {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}
.tab-btn {
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.tab-btn.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.tab-btn:not(.active):hover { color: #374151; }

.platform-tag {
    background: #FF3B30;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    padding: 20px 24px;
}
.stat-item {
    text-align: center;
    padding: 20px 16px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid #f3f4f6;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.stat-item:hover {
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stat-item.active { background: #f0fdf4; border-color: #86efac; }
.stat-item.active .stat-value { color: #16a34a; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.stat-item-clickable:hover { transform: translateY(-2px); }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: max-content;
}
.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #f3f4f6;
    white-space: nowrap;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    white-space: nowrap;
}
.data-table tr:hover td { background: #f9fafb; }

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: max-content;
}
.user-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #f3f4f6;
    white-space: nowrap;
}
.user-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    white-space: nowrap;
}
.user-table tr:hover td { background: #f9fafb; }
.user-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

.table-wrapper {
    width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
}
.table-wrapper::-webkit-scrollbar { height: 8px; }
.table-wrapper::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 4px; }
.table-wrapper::-webkit-scrollbar-thumb { background: #9ca3af; border-radius: 4px; }
.table-wrapper::-webkit-scrollbar-thumb:hover { background: #6b7280; }
.table-wrapper { scrollbar-width: thin; scrollbar-color: #9ca3af #f3f4f6; }

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-scroll::-webkit-scrollbar { height: 6px; }
.table-scroll::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 4px; }
.table-scroll::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: #fafafa;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.info-bar strong { color: var(--text); }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border-top: 1px solid #f3f4f6;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--card);
    text-decoration: none;
    transition: all 0.15s;
}
.page-btn:hover { border-color: #9ca3af; color: var(--text); background: #f9fafb; }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #f3f4f6; flex-shrink: 0; }
.user-name { font-weight: 600; color: #111827; font-size: 0.85rem; }
.user-email { font-size: 0.75rem; color: #9ca3af; margin-top: 1px; }
.action-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.product-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid #f3f4f6; flex-shrink: 0; }
.product-thumb-placeholder { display: flex; align-items: center; justify-content: center; background: #f9fafb; color: #9ca3af; font-size: 0.85rem; }
.product-name { font-weight: 500; }

.vip-badge-tip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #111827;
    color: #fff;
    cursor: help;
    position: relative;
}
.vip-badge-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 10;
}
.vip-badge-tip:hover::after { opacity: 1; }
.vip-badge-admin { background: #dc2626; }
.vip-badge-admin::after { background: #991b1b; }

.parrot-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 20px 24px;
}
.parrot-review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
}
.parrot-review-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); border-color: #d1d5db; }
.parrot-review-card.rejected { border-color: #fecaca; background: #fefdfd; }
.parrot-review-header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid #f3f4f6; }
.parrot-review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #f3f4f6; }
.parrot-review-info { flex: 1; min-width: 0; }
.parrot-review-name { font-weight: 600; font-size: 0.9rem; color: #111827; }
.parrot-review-id { font-size: 0.75rem; color: #9ca3af; font-family: monospace; margin-top: 2px; }
.parrot-review-body { padding: 12px 16px; }
.parrot-review-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f9fafb; font-size: 0.82rem; }
.parrot-review-row:last-child { border-bottom: none; }
.parrot-review-label { color: #6b7280; }
.parrot-review-value { color: #111827; font-weight: 500; text-align: right; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parrot-review-footer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #f3f4f6; background: #fafbfc; }
.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}
.btn-edit-link { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.btn-edit-link:hover { background: #e5e7eb; }
.btn-approve { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.btn-approve:hover { background: #e5e7eb; }
.btn-reject { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.btn-reject:hover { background: #fee2e2; }

.address-detail { background: #f9fafb; border-radius: 12px; padding: 4px 0; }
.address-row { display: flex; align-items: flex-start; padding: 12px 16px; gap: 12px; }
.address-row + .address-row { border-top: 1px solid #f3f4f6; }
.address-label { flex-shrink: 0; width: 72px; font-size: 0.82rem; color: #9ca3af; font-weight: 500; padding-top: 1px; }
.address-value { flex: 1; font-size: 0.9rem; color: #111827; word-break: break-all; line-height: 1.5; }

.guide-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    width: 100%;
    box-sizing: border-box;
}
.guide-tabs::-webkit-scrollbar { height: 4px; }
.guide-tabs::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.guide-tab {
    padding: 8px 18px;
    border: none;
    background: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
}
.guide-tab:hover { color: #111827; background: rgba(0,0,0,0.04); }
.guide-tab.active { color: #fff; background: #111827; }
.guide-form-area { padding: 20px 24px; border-bottom: 1px solid #f3f4f6; }
.guide-form-area h4 { font-size: 0.9rem; color: #111827; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }

.settings-body { padding: 24px; }
.settings-form { display: flex; flex-direction: column; gap: 16px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-grid-2 { grid-template-columns: 1fr 1fr; }
.settings-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.settings-field { margin-bottom: 4px; }
.settings-field label { display: block; font-size: 0.85rem; font-weight: 500; color: #374151; margin-bottom: 6px; }
.settings-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #f3f4f6; }
.settings-toggle-row:last-of-type { border-bottom: none; }
.settings-toggle-info { flex: 1; min-width: 0; }
.settings-toggle-title { font-size: 0.85rem; font-weight: 600; color: #111827; }
.settings-toggle-desc { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }
.settings-hint { font-size: 0.78rem; color: #6b7280; margin-top: 4px; }
.settings-sub-section { margin-top: 8px; padding: 16px; background: #f9fafb; border-radius: 12px; border: 1px solid #f3f4f6; }
.settings-sub-header { font-size: 0.85rem; font-weight: 600; color: #111827; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.settings-actions { padding-top: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.lh-badge { display: inline-block; padding: 4px 14px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; font-family: monospace; letter-spacing: 1px; }
.lh-badge-baozi { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; }
.lh-badge-shunzi { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; }
.lh-badge-duizi { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; }
.lh-badge-custom { background: #111827; color: #fff; }
.lh-type-tag { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 600; }
.lh-type-baozi { background: #fef2f2; color: #dc2626; }
.lh-type-shunzi { background: #eff6ff; color: #2563eb; }
.lh-type-duizi { background: #fffbeb; color: #d97706; }
.lh-type-custom { background: #f3f4f6; color: #374151; }

.vip-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:9999; justify-content:center; align-items:center; }
.vip-modal.show { display:flex; }
.vip-modal-content { background:#fff; border-radius:16px; width:90%; max-width:400px; max-height:85vh; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.vip-modal-header { background:#111827; padding:20px; display:flex; justify-content:space-between; align-items:center; }
.vip-modal-header h3 { margin:0; font-size:1.1rem; color:#fff; display:flex; align-items:center; gap:8px; }
.vip-modal-close { background:none; border:none; font-size:1.5rem; cursor:pointer; color:#9ca3af; opacity:0.7; }
.vip-modal-close:hover { opacity:1; }
.vip-modal-body { padding:20px; overflow-y:auto; flex:1; min-height:0; }
.vip-plans { display:flex; gap:10px; margin-bottom:20px; }
.vip-plan { flex:1; padding:15px 10px; border:2px solid #e5e7eb; border-radius:12px; text-align:center; cursor:pointer; transition:all 0.2s; position:relative; }
.vip-plan:hover { border-color:#9ca3af; }
.vip-plan.active { border-color:#111827; background:#f9fafb; }
.vip-plan-name { font-size:0.85rem; color:#6b7280; margin-bottom:4px; }
.vip-plan-price { font-size:1.2rem; font-weight:700; color:#1f2937; }
.vip-plan-badge { position:absolute; top:-8px; right:-8px; background:#111827; color:#fff; font-size:0.65rem; padding:2px 6px; border-radius:4px; }
.vip-features { background:#f9fafb; border-radius:8px; padding:12px; }
.vip-feature { font-size:0.85rem; color:#374151; padding:6px 0; display:flex; align-items:center; gap:8px; }
.vip-feature i { color:#111827; }
.vip-modal-footer { padding:0 20px 20px; }
.vip-pay-btn { width:100%; padding:14px; background:#111827; border:none; border-radius:10px; font-size:1rem; font-weight:600; color:#fff; cursor:pointer; transition:transform 0.2s; }
.vip-pay-btn:hover { transform:scale(1.02); }
.vip-pay-btn:disabled { opacity:0.7; cursor:not-allowed; }
.vip-qrcode { padding:20px; text-align:center; border-top:1px solid #e5e7eb; display:flex; flex-direction:column; align-items:center; }
.vip-qrcode-title { font-size:0.9rem; color:#374151; margin-bottom:12px; }
.vip-qrcode img { display:block; margin:0 auto; max-width:180px; width:100%; height:auto; border:1px solid #e5e7eb; border-radius:8px; padding:10px; background:#fff; box-sizing:border-box; }
.vip-qrcode-tip { font-size:0.8rem; color:#6b7280; margin-top:8px; }
.vip-qrcode-status { font-size:0.85rem; color:#374151; margin-top:8px; }

@media (max-width: 768px) {
    .settings-grid, .settings-grid-2, .settings-grid-3 { grid-template-columns: 1fr; }
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .parrot-review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px; }
    .stat-item { padding: 14px 10px; }
    .stat-value { font-size: 1.4rem; }
    .section-header { padding: 14px 16px; }
    .info-bar { padding: 8px 16px; }
    .data-table th, .data-table td { padding: 10px 12px; }
    .page-container { padding: 88px 16px 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-item { transition: none !important; }
    .fade-in, .slide-up, .toast-enter, .toast-exit { animation: none !important; opacity: 1 !important; transform: none !important; }
    .card-hover { transition: none !important; }
    .modal-overlay, .modal-body { transition: none !important; }
}
