/* ========================================
   速度签UDID查询 - 高级简约主题
   ======================================== */

/* === CSS Variables === */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #f43f5e;
    --accent-light: #fb7185;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
    background: #f8fafc;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(244, 63, 94, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* === Navigation === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0 1.5rem;
    transition: all 0.3s ease;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.navbar-logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.navbar-logo .logo-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* PC Navigation */
.nav-links {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-right: 40px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.mobile-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .mobile-right {
        display: none;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    font-weight: 600;
}

.nav-link svg {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-dropdown.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-dropdown-inner {
    padding: 12px;
}

.mobile-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.mobile-dropdown-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

.mobile-dropdown-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

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

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 0 0 3px 3px;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

.bottom-nav-item span {
    letter-spacing: 0.02em;
}

/* Add padding to main content for mobile bottom nav */
@media (max-width: 767px) {
    body {
        padding-bottom: 72px;
    }
}

/* === Main Container === */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    flex-grow: 1;
    width: 100%;
    padding: 2rem 1.5rem;
}

@media (max-width: 768px) {
    .main-container {
        padding: 1.5rem 1rem;
    }
}

/* === Title Box === */
.title-box {
    text-align: center;
    margin-bottom: 2rem;
}

.title-box h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .title-box h1 {
        font-size: 1.75rem;
    }
}

/* === Glass Card === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

/* === Form Elements === */
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: #fff;
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: var(--gradient-4);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-accent {
    background: var(--gradient-2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.4);
}

.btn-info {
    background: var(--gradient-3);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.btn-outline:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* === Feature Cards === */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.feature-card-icon.purple {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.feature-card-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.feature-card-icon.pink {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent);
}

.feature-card-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Upload Area === */
.upload-area {
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
    transform: translateY(-2px);
}

.upload-area.file-selected {
    border-color: var(--success);
    border-style: solid;
    background: rgba(16, 185, 129, 0.04);
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-name {
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 600;
    color: var(--success);
}

/* === Upload Grid === */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .upload-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .upload-area {
        min-height: 130px;
        padding: 1.5rem 1rem;
    }
}

/* === Password Grid === */
.password-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .password-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* === Progress Bar === */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-main);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* === Loading Spinner === */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

/* === Messages === */
.message {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: none;
    text-align: center;
    font-weight: 500;
}

.message.error {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.message.success {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* === Recent Logs === */
.recent-logs-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    height: 40px;
    overflow: hidden;
    line-height: 40px;
}

.logs-marquee {
    animation: scrollUp 30s linear infinite;
}

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

.log-item {
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    height: 40px;
}

.log-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.udid-masked {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-weight: 600;
    color: var(--success);
    font-size: 0.78rem;
}

.device-info {
    color: var(--text-secondary);
    font-size: 0.75rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.time-ago {
    color: var(--text-muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

/* === Footer === */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.site-footer p {
    margin: 8px 0;
}

.site-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 12px 0;
}

.site-footer-links a {
    color: var(--primary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.site-footer-links a:hover {
    background: rgba(99, 102, 241, 0.08);
}

.site-footer-links .divider {
    color: var(--text-muted);
    margin: 0 2px;
}

.beian-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.beian-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.beian-info a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

.beian-info img {
    width: 14px;
    height: 14px;
}

/* === iOS Glass Modal (SweetAlert2) === */
.glass-popup .swal2-popup {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: var(--radius-2xl) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
    padding: 0 !important;
    overflow: hidden;
}

.glass-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    max-height: 65vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.glass-popup .swal2-html-container::-webkit-scrollbar {
    width: 5px;
}

.glass-popup .swal2-html-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

.glass-popup .swal2-actions {
    padding: 0 24px 24px !important;
    gap: 10px !important;
    justify-content: center !important;
}

.glass-popup .swal2-confirm {
    background: var(--gradient-1) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35) !important;
}

.glass-popup .swal2-cancel {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--text-secondary) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 28px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

.glass-popup .swal2-cancel:hover {
    background: rgba(0, 0, 0, 0.07) !important;
}

/* Status Card in Modal */
.g-status {
    padding: 36px 28px 28px;
    text-align: center;
}

.g-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 34px;
}

.g-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.g-detail {
    font-size: 14px;
    opacity: 0.88;
}

.g-status.g-valid .g-icon { 
    background: rgba(16, 185, 129, 0.12); 
    color: #059669; 
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15); 
}
.g-status.g-valid .g-title { color: #047857; }
.g-status.g-valid .g-detail { color: #059669; }

.g-status.g-banned .g-icon { 
    background: rgba(239, 68, 68, 0.12); 
    color: #dc2626; 
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15); 
}
.g-status.g-banned .g-title { color: #b91c1c; }
.g-status.g-banned .g-detail { color: #dc2626; }

.g-status.g-expired .g-icon { 
    background: rgba(245, 158, 11, 0.12); 
    color: #d97706; 
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15); 
}
.g-status.g-expired .g-title { color: #b45309; }
.g-status.g-expired .g-detail { color: #d97706; }

/* Info Section in Modal */
.g-section {
    padding: 0 24px 18px;
}

.g-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.g-section-title i {
    font-size: 13px;
    opacity: 0.5;
}

.g-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.g-table td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.g-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 38%;
}

.g-table td:last-child {
    color: var(--text-primary);
    word-break: break-all;
}

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

.g-table tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.015);
}

/* Permission Toggle in Modal */
.g-perm-wrap {
    padding: 0 24px 8px;
}

.g-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 14px;
}

.g-toggle-btn {
    flex: 1;
    padding: 9px 0;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: var(--text-muted);
}

.g-toggle-btn.active {
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.g-perm {
    padding: 10px 14px;
    margin: 6px 0;
    border-radius: 10px;
    border-left: 3px solid transparent;
}

.g-perm.g-on {
    background: rgba(16, 185, 129, 0.06);
    border-left-color: var(--success);
}

.g-perm.g-off {
    background: rgba(239, 68, 68, 0.04);
    border-left-color: rgba(239, 68, 68, 0.3);
    opacity: 0.75;
}

.g-pname {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.g-on .g-pname { color: #065f46; }
.g-off .g-pname { color: #991b1b; }

.g-pdesc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.g-pkey {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, monospace;
}

.g-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 28px 0;
    font-size: 14px;
}

/* === Action Buttons === */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.action-button {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-button.primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.action-button.secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* === Info Cards (Check Page) === */
.info-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h3 i {
    color: var(--primary);
}

/* === WeChat Tip === */
#weixin-tip {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.weixin-tip-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-2xl);
    padding: 32px 36px;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.weixin-tip-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 8px 16px rgba(0, 0, 0, 0.25);
}

.weixin-tip-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.weixin-tip-text {
    font-size: clamp(22px, 5.5vw, 30px);
    line-height: 1.8;
    font-weight: 500;
    letter-spacing: 0.4px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .glass-popup .swal2-popup {
        border-radius: var(--radius-xl) !important;
        margin: 10px !important;
    }
    
    .g-status {
        padding: 28px 20px 22px;
    }
    
    .g-title {
        font-size: 22px;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
}

/* === Utilities === */
.hidden {
    display: none !important;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
