?/* ????????????? - ?????????? V2 */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
    /* ????? - ?????? */
    --primary-dark: #0f1a2f;
    --primary: #1a2c50;
    --primary-light: #2a3f75;
    --primary-lighter: #3c529b;
    
    /* ????? */
    --secondary: #3498db;
    --secondary-light: #5dade2;
    --accent: #00c9ff;
    --accent-gradient: linear-gradient(135deg, #00c9ff 0%, #3498db 100%);
    
    /* ????? */
    --bg-dark: #0c1525;
    --bg-primary: #121d33;
    --bg-secondary: #1a2a44;
    --bg-card: rgba(26, 42, 68, 0.8);
    --bg-card-hover: rgba(42, 63, 117, 0.6);
    
    /* ????? */
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --text-muted: #7a8fb3;
    --text-light: #e0e9ff;
    
    /* ??? */
    --success: #2ecc71;
    --warning: #f39c12;
    --error: #e74c3c;
    --info: #3498db;
    --purple: #9b59b6;
    
    /* ??? */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.5);
    
    /* ??? */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* ???? */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ???????? */
    --glass-bg: rgba(26, 42, 68, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --backdrop-blur: blur(20px);
    --table-head-bg: linear-gradient(135deg, rgba(26, 42, 68, 0.8) 0%, rgba(42, 63, 117, 0.6) 100%);
    --table-row-hover: rgba(255, 255, 255, 0.05);
    --table-border: rgba(255, 255, 255, 0.05);
    --thead-border: rgba(255, 255, 255, 0.1);
    --scroll-track: rgba(0, 0, 0, 0.2);
    --content-glow-a: rgba(0, 201, 255, 0.05);
    --content-glow-b: rgba(52, 152, 219, 0.05);
    --modal-overlay-bg: rgba(12, 21, 37, 0.9);
    --modal-bg: var(--glass-bg);
    --modal-border: var(--glass-border);
    --modal-header-bg: rgba(0, 0, 0, 0.2);
    --modal-header-border: rgba(255, 255, 255, 0.1);
    --modal-close-bg: rgba(255, 255, 255, 0.1);
    --modal-close-color: var(--text-secondary);
    --modal-glow: 0 0 100px rgba(0, 201, 255, 0.1);
    --sidebar-header-bg: rgba(0, 0, 0, 0.2);
    --sidebar-header-border: rgba(255, 255, 255, 0.1);
    --sidebar-logo-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    --sidebar-welcome-color: var(--text-muted);
}

:root[data-theme="light"] {
    --primary-dark: #dfe8f7;
    --primary: #eef4ff;
    --primary-light: #d0def8;
    --primary-lighter: #bdd0f4;

    --secondary: #2f7ae5;
    --secondary-light: #5d9dff;
    --accent: #0ea5e9;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #2f7ae5 100%);

    --bg-dark: #f4f8ff;
    --bg-primary: #edf3ff;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-hover: rgba(224, 235, 255, 0.96);

    --text-primary: #16233b;
    --text-secondary: #49607d;
    --text-muted: #71829a;
    --text-light: #20314f;

    --shadow-sm: 0 2px 10px rgba(32, 67, 128, 0.08);
    --shadow-md: 0 8px 24px rgba(32, 67, 128, 0.12);
    --shadow-lg: 0 14px 36px rgba(32, 67, 128, 0.15);
    --shadow-xl: 0 20px 48px rgba(32, 67, 128, 0.18);

    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(131, 154, 191, 0.22);
    --glass-shadow: 0 12px 32px rgba(32, 67, 128, 0.12);
    --table-head-bg: linear-gradient(135deg, rgba(220, 232, 252, 0.96) 0%, rgba(206, 223, 252, 0.92) 100%);
    --table-row-hover: rgba(47, 122, 229, 0.06);
    --table-border: rgba(131, 154, 191, 0.18);
    --thead-border: rgba(131, 154, 191, 0.2);
    --scroll-track: rgba(181, 197, 226, 0.35);
    --content-glow-a: rgba(56, 189, 248, 0.08);
    --content-glow-b: rgba(47, 122, 229, 0.06);
    --modal-overlay-bg: rgba(28, 41, 66, 0.36);
    --modal-bg: #ffffff;
    --modal-border: rgba(160, 178, 208, 0.42);
    --modal-header-bg: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    --modal-header-border: rgba(160, 178, 208, 0.34);
    --modal-close-bg: rgba(47, 122, 229, 0.08);
    --modal-close-color: #5b6f8e;
    --modal-glow: 0 18px 48px rgba(34, 76, 142, 0.14);
    --sidebar-header-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(245, 249, 255, 0.9) 100%);
    --sidebar-header-border: rgba(160, 178, 208, 0.3);
    --sidebar-logo-shadow: 0 12px 28px rgba(50, 86, 145, 0.14);
    --sidebar-welcome-color: #6b7f99;
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-primary) 50%, var(--primary-dark) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 14px;
    background-attachment: fixed;
}

/* ???????? */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scroll-track);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ??????? */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.spinner {
    width: 80px;
    height: 80px;
    position: relative;
    animation: rotate 2s linear infinite;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: var(--radius-full);
    border: 3px solid transparent;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

.spinner-circle:nth-child(2) {
    border-top-color: var(--secondary);
    animation-delay: -0.5s;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 24px;
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ?????? - ?????? */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c1525 0%, #1a2c50 50%, #0f1a2f 100%);
}

/* ???????? */
.background-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-circle {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(40px);
    opacity: 0.2;
    animation: float 20s infinite linear;
}

.gradient-circle:nth-child(1) {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.gradient-circle:nth-child(2) {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--secondary) 100%);
    bottom: -250px;
    right: -250px;
    animation-delay: -10s;
}

.gradient-circle:nth-child(3) {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--info) 0%, var(--accent) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(100px, 100px) rotate(120deg);
    }
    66% {
        transform: translate(-100px, 50px) rotate(240deg);
    }
}

.auth-box {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    width: 100%;
    max-width: 680px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

.logo-section {
    background: linear-gradient(135deg, 
        rgba(26, 44, 80, 0.8) 0%, 
        rgba(42, 63, 117, 0.6) 50%, 
        rgba(60, 82, 155, 0.4) 100%);
    padding: 48px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 201, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    transition: var(--transition-slow);
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    background: #fff;
}

.logo:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.logo-section h1 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

/* ???? - ?????? */
.auth-tabs {
    padding: 0 32px;
}

.tab-headers {
    display: flex;
    margin: 32px 0 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 4px;
    position: relative;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-md);
}

.tab-indicator {
    position: absolute;
    top: 4px;
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    transition: var(--transition);
    z-index: 0;
    box-shadow: var(--shadow-sm);
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn i {
    font-size: 18px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-light);
}

.tab-content {
    padding: 28px 0;
}

/* ???? - ?????? */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ????????????? */
.auth-form-register {
    gap: 18px;
}

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

/* ?????form-row???????????? */
.form-row:has(.form-group:only-child) {
    grid-template-columns: 1fr;
}

/* ????????????????? */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-box {
        max-width: 480px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.form-group label {
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group label i {
    color: var(--accent);
    font-size: 16px;
}

.form-group input {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

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

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 0 0 4px rgba(0, 201, 255, 0.1),
        0 4px 20px rgba(0, 201, 255, 0.2);
    transform: translateY(-1px);
}

.password-input {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.password-input input {
    width: 100%;
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 44px;
    background: none;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.toggle-password:hover {
    color: var(--accent);
    background: rgba(0, 201, 255, 0.1);
}

.form-hint {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.1) 0%, 
        rgba(0, 201, 255, 0.1) 100%);
    border-left: 3px solid var(--accent);
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-light);
    backdrop-filter: blur(5px);
}

.form-hint p {
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-hint i {
    color: var(--accent);
    font-size: 14px;
}

.form-hint strong {
    color: var(--warning);
    font-weight: 700;
}

/* ??? - ?????? */
.btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--secondary) 100%);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    backdrop-filter: blur(5px);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(52, 152, 219, 0.3);
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover::after {
    opacity: 0.5;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, 
        var(--primary-lighter) 0%, 
        var(--secondary) 100%);
    box-shadow: 
        var(--shadow-md),
        0 4px 20px rgba(52, 152, 219, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, 
        var(--primary-lighter) 0%, 
        var(--secondary) 100%);
    box-shadow: 
        var(--shadow-md),
        0 4px 20px rgba(52, 152, 219, 0.2);
}

.btn-info {
    background: linear-gradient(135deg, 
        var(--info) 0%, 
        var(--secondary-light) 100%);
    box-shadow: 
        var(--shadow-md),
        0 4px 20px rgba(52, 152, 219, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.btn-logout {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.9) 0%, 
        rgba(192, 57, 43, 0.9) 100%);
    border: 1px solid rgba(231, 76, 60, 0.3);
    backdrop-filter: blur(10px);
}

.btn-logout:hover {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 1) 0%, 
        rgba(192, 57, 43, 1) 100%);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(231, 76, 60, 0.3);
}

.auth-footer {
    padding: 24px 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* ?????????? - ?????? */
.main-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* ????? - ?????? */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, 
        var(--primary-dark) 0%, 
        var(--primary) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 201, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-header .logo {
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-welcome {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* ???????? */
.sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: transparent;
    border: none;
    text-align: left;
}

.menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(0, 201, 255, 0.1) 0%, 
        transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.menu-item i {
    font-size: 18px;
    width: 24px;
    transition: var(--transition);
}

.menu-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.menu-item:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.menu-item.active {
    background: linear-gradient(90deg, 
        rgba(0, 201, 255, 0.15) 0%, 
        rgba(52, 152, 219, 0.1) 100%);
    color: var(--text-light);
    border-left: 3px solid var(--accent);
}

.menu-item.active i {
    color: var(--accent);
}

.menu-item.active::after {
    content: '';
    position: absolute;
    right: 16px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--accent);
}

.menu-badge {
    padding: 4px 10px;
    background: var(--accent);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 201, 255, 0.3);
}

/* ???????? */
.sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: var(--shadow-sm);
}

.user-details {
    flex: 1;
}

.username {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.user-role {
    font-size: 12px;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    background: linear-gradient(135deg, var(--purple) 0%, #8e44ad 100%);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.role-user {
    background: linear-gradient(135deg, var(--info) 0%, #2980b9 100%);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* ?????????? */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ???????? */
.top-nav {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.breadcrumb-item {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.breadcrumb-item i {
    font-size: 16px;
}

.breadcrumb-item:hover {
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--accent);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* ???????? - ?????????? */
.content-area {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    position: relative;
}

.content-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, var(--content-glow-a) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, var(--content-glow-b) 0%, transparent 50%);
    pointer-events: none;
}

/* ???????????? */
.content-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.content-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(0, 201, 255, 0.1);
}

.content-card h2 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-card h2 i {
    color: var(--accent);
    font-size: 22px;
}

/* ????? */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.stat-primary {
    border-left: 4px solid var(--accent);
}

.stat-card.stat-success {
    border-left: 4px solid var(--success);
}

.stat-card.stat-warning {
    border-left: 4px solid var(--warning);
}

.stat-card.stat-info {
    border-left: 4px solid var(--info);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-card.stat-primary .stat-icon {
    background: linear-gradient(135deg, 
        rgba(0, 201, 255, 0.2) 0%, 
        rgba(52, 152, 219, 0.1) 100%);
    color: var(--accent);
}

.stat-card.stat-success .stat-icon {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
}

.stat-card.stat-warning .stat-icon {
    background: linear-gradient(135deg, 
        rgba(243, 156, 18, 0.2) 0%, 
        rgba(241, 196, 15, 0.1) 100%);
    color: var(--warning);
}

.stat-card.stat-info .stat-icon {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.2) 0%, 
        rgba(41, 128, 185, 0.1) 100%);
    color: var(--info);
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-content p {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* ??????? */
.table-responsive {
    overflow-x: auto;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.data-table thead {
    background: linear-gradient(135deg, 
        rgba(26, 42, 68, 0.8) 0%, 
        rgba(42, 63, 117, 0.6) 100%);
    backdrop-filter: blur(10px);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.data-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ?????? - ??????? */
.status-badge, .verify-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.status-badge {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.2) 0%, 
        rgba(41, 128, 185, 0.1) 100%);
    color: var(--info);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.verify-badge {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* ??? */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-top: 24px;
}

.pagination-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, 
        rgba(26, 42, 68, 0.8) 0%, 
        rgba(42, 63, 117, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(42, 63, 117, 0.8) 0%, 
        rgba(60, 82, 155, 0.6) 100%);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 180px;
    text-align: center;
}

/* ???? */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 21, 37, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.modal {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 
        var(--glass-shadow),
        0 0 100px rgba(0, 201, 255, 0.1);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-lg {
    max-width: 900px;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.modal-header h3 {
    font-size: 20px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    color: var(--accent);
    font-size: 22px;
}

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.close-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: var(--error);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

/* ?????? */
.message {
    position: fixed;
    top: 32px;
    right: 32px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 300px;
    max-width: 400px;
    z-index: 1001;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        var(--glass-shadow),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message.success {
    border-left: 4px solid var(--success);
}

.message.error {
    border-left: 4px solid var(--error);
}

.message.info {
    border-left: 4px solid var(--info);
}

.message.warning {
    border-left: 4px solid var(--warning);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.message i {
    font-size: 20px;
}

.message.success i {
    color: var(--success);
}

.message.error i {
    color: var(--error);
}

.message.info i {
    color: var(--info);
}

.message.warning i {
    color: var(--warning);
}

.message span {
    flex: 1;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.message-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.message-close:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

/* ??????? */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar-header h2,
    .user-welcome,
    .menu-item span,
    .username,
    .user-role,
    .breadcrumb-item span:not(.icon) {
        display: none;
    }
    
    .sidebar-header {
        padding: 20px;
    }
    
    .sidebar-header .logo {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }
    
    .menu-item {
        justify-content: center;
        padding: 16px;
    }
    
    .user-info {
        justify-content: center;
        padding: 12px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .auth-box {
        max-width: 100%;
        margin: 20px;
    }
    
    .tab-headers {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .nav-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }
    
    .modal {
        max-width: 100%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-box {
        margin: 10px;
    }
    
    .logo-section {
        padding: 32px 20px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .logo-section h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .auth-tabs {
        padding: 0 20px;
    }
    
    .content-area {
        padding: 16px;
    }
    
    .content-card {
        padding: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .message {
        left: 16px;
        right: 16px;
        min-width: auto;
    }
}


/* ?????? - ??????????????? */
.dramas-list {
    position: relative;
}

.dramas-list .list-header {
    margin-bottom: 20px;
}

.dramas-list .list-header h2 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dramas-list .list-header h2 i {
    color: var(--accent);
    font-size: 24px;
}

/* ????????????? */
.dramas-list .list-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ????????? */
.dramas-list .search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.dramas-list .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 16px;
    z-index: 1;
}

.dramas-list .search-box input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.dramas-list .search-box input::placeholder {
    color: var(--text-muted);
}

.dramas-list .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

/* ??????????? */
.dramas-list .filter-select {
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.dramas-list .filter-select:hover {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

.dramas-list .filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

.dramas-list .filter-select option {
    background: var(--primary-dark);
    color: var(--text-primary);
    padding: 10px;
}

/* ??????? */
.data-info {
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.data-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* ???????????? */
.drama-name {
    max-width: 180px;
}

.drama-name strong {
    color: var(--text-light);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.drama-meta {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.pay-badge, .type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.pay-badge {
    background: linear-gradient(135deg, 
        rgba(243, 156, 18, 0.2) 0%, 
        rgba(241, 196, 15, 0.1) 100%);
    color: var(--warning);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.type-badge {
    background: linear-gradient(135deg, 
        rgba(155, 89, 182, 0.2) 0%, 
        rgba(142, 68, 173, 0.1) 100%);
    color: var(--purple);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

/* ????? */
.drama-abstract {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    word-break: keep-all;
    overflow-wrap: break-word;
    padding: 2px 0;
}

/* ?????? */
.chapter-info {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.15) 0%, 
        rgba(41, 128, 185, 0.1) 100%);
    color: var(--info);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* ????????? */
.status-badge.status-1 {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.2) 0%, 
        rgba(41, 128, 185, 0.1) 100%);
    color: var(--info);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.status-badge.status-2 {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.verify-badge.verify-0 {
    background: linear-gradient(135deg, 
        rgba(243, 156, 18, 0.2) 0%, 
        rgba(241, 196, 15, 0.1) 100%);
    color: var(--warning);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.verify-badge.verify-1 {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* ?????????? */
.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.page-size-selector span {
    color: var(--text-secondary);
    font-size: 14px;
}

.page-size-selector select {
    padding: 8px 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.page-size-selector select:hover {
    border-color: var(--secondary);
}

.page-size-selector select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.1);
}

/* ??????? */
@media (max-width: 768px) {
    .dramas-list .list-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dramas-list .search-box {
        width: 100%;
        min-width: 100%;
    }
    
    .dramas-list .filter-select {
        width: 100%;
    }
    
    .dramas-list .list-actions-row .btn {
        width: 100%;
    }
    
    .data-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ??????????????? */
.crawl-panel {
    position: relative;
}

.crawl-panel h2 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.crawl-panel h2 i {
    color: var(--accent);
    font-size: 24px;
}

/* ?????????? */
.crawl-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.control-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.control-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: var(--transition);
}

.control-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(0, 201, 255, 0.15);
}

.control-card:hover::before {
    opacity: 1;
}

.control-card h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-card h3 i {
    color: var(--accent);
    font-size: 20px;
}

.control-card > p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ???????????? */
.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.form-inline .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 140px;
}

.form-inline .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.form-inline .form-control {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
}

.form-inline .form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

.form-inline .form-control:hover {
    border-color: var(--secondary);
}

.form-inline select.form-control {
    cursor: pointer;
}

.form-inline select.form-control option {
    background: var(--primary-dark);
    color: var(--text-primary);
}

.form-inline .btn {
    flex-shrink: 0;
    min-width: 140px;
}

/* ????????? */
.crawl-results {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
}

.crawl-results h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crawl-results h3 i {
    color: var(--accent);
    font-size: 20px;
}

.results-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--info);
    transition: var(--transition);
}

.result-item.success::before {
    background: linear-gradient(180deg, var(--success) 0%, #27ae60 100%);
}

.result-item.error::before,
.result-item.failed::before {
    background: linear-gradient(180deg, var(--error) 0%, #c0392b 100%);
}

.result-item:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateX(4px);
}

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

.result-page {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
}

.result-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-status.success {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.result-status.error,
.result-status.failed {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.2) 0%, 
        rgba(192, 57, 43, 0.1) 100%);
    color: var(--error);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.result-message {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.result-details {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-details::before {
    content: '?';
    color: var(--accent);
    font-weight: bold;
}

/* ??????????? */
.system-info h2 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-info h2 i {
    color: var(--accent);
    font-size: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(0, 201, 255, 0.15);
}

.info-card h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.info-card h3 i {
    color: var(--accent);
    font-size: 20px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
}

.system-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* ??????? */
@media (max-width: 768px) {
    .crawl-controls {
        grid-template-columns: 1fr;
    }
    
    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-inline .form-group {
        min-width: 100%;
    }
    
    .form-inline .btn {
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .system-actions {
        flex-direction: column;
    }
    
    .system-actions .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .control-card {
        padding: 20px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ????????????? */
.projects-panel {
    position: relative;
}

.projects-panel .list-header {
    margin-bottom: 20px;
}

.projects-panel .list-header h2 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.projects-panel .list-header h2 i {
    color: var(--accent);
    font-size: 24px;
}

/* ???????????? */
.projects-panel .search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.projects-panel .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 16px;
    z-index: 1;
}

.projects-panel .search-box input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.projects-panel .search-box input::placeholder {
    color: var(--text-muted);
}

.projects-panel .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

/* ?????? - ?????? */
.list-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.list-actions-row .filter-select {
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    min-width: 140px;
}

.list-actions-row .filter-select:hover {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

.list-actions-row .filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

.list-actions-row .filter-select option {
    background: var(--primary-dark);
    color: var(--text-primary);
}

/* ?????????? - ??????? */
.type-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.type-badge.type-1 {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.2) 0%, 
        rgba(192, 57, 43, 0.1) 100%);
    color: var(--error);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.type-badge.type-2 {
    background: linear-gradient(135deg, 
        rgba(243, 156, 18, 0.2) 0%, 
        rgba(241, 196, 15, 0.1) 100%);
    color: var(--warning);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.type-badge.type-3 {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* ?????????? */
.link-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.link-text:hover {
    color: var(--secondary-light) !important;
    transform: translateX(2px);
}

/* ??????????????????????? select?? */
.form-control {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

.form-control:hover {
    border-color: var(--secondary);
}

select.form-control {
    cursor: pointer;
}

select.form-control option {
    background: var(--primary-dark);
    color: var(--text-primary);
}

/* ??????? */
@media (max-width: 768px) {
    .list-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .list-actions-row .filter-select {
        width: 100%;
    }
    
    .list-actions-row .btn {
        width: 100%;
    }
}


/* ?????????? - ?????? */
.copyright-rejected {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: #ffffff !important;
    font-weight: bold !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4) !important;
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(231, 76, 60, 0.8);
    }
}

/* ??????????????? */
.html-content {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 14px;
}

.html-content p {
    margin-bottom: 8px;
}

.html-content ul, .html-content ol {
    margin-left: 20px;
    margin-bottom: 8px;
}

.html-content li {
    margin-bottom: 4px;
}

.html-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ?????????? */
.copyright-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.copyright-file-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.copyright-file-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.copyright-file-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.copyright-file-item .file-info {
    padding: 8px 12px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.copyright-file-item .file-name {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copyright-file-item .upload-time {
    color: var(--text-muted);
    font-size: 11px;
}

/* ???????????????? */
.copyright-rejected {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9) 0%, rgba(192, 57, 43, 0.9) 100%) !important;
    color: white !important;
    font-weight: 600;
    animation: pulse-red 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(231, 76, 60, 0.8);
    }
}

/* ???????????????? */
.btn-danger-detail {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-danger-detail:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important;
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.6);
    transform: translateY(-2px);
}

/* ?????????????? */
.status-badge {
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
}

/* ?????????????? */
.btn-sm {
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
    gap: 4px;
}

.btn-info {
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
    gap: 4px;
}

/* ????????????? */
.data-table td:nth-child(7) {
    min-width: 450px;
    white-space: nowrap;
}

/* ??????????????? */
.btn-sm {
    white-space: nowrap !important;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

/* ?????????? */
.staff-panel {
    padding: 24px;
}

.role-admin {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.role-user {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.status-active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.status-disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

/* ???????????? */
.btn-action {
    height: 40px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    min-width: 120px;
}

/* ???list-actions-row?????????? */
.list-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

/* ???????? */
.status-1 {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.status-2 {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.status-3 {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.status-4 {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.status-5 {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}



/* ???????? */
.online-waiting {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.online-live {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

/* ???????????? */
.status-auditing {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.status-pass {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.status-reject {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

/* ???????? - ????????? */
.status-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    width: 100%;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    line-height: 1.4;
}

.status-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 28px;
    text-align: right;
    opacity: 0.75;
    flex-shrink: 0;
}

.status-badge-compact {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

/* ?????????????? */
.status-badge-compact.status-auditing {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.85) 0%, rgba(230, 126, 34, 0.85) 100%);
    color: white;
    border: 1px solid rgba(243, 156, 18, 0.25);
    box-shadow: 0 1px 2px rgba(243, 156, 18, 0.15);
    transition: all 0.2s ease;
}

.status-badge-compact.status-auditing:hover {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.95) 0%, rgba(230, 126, 34, 0.95) 100%);
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.25);
    transform: translateY(-1px);
}

.status-badge-compact.status-pass {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.85) 0%, rgba(39, 174, 96, 0.85) 100%);
    color: white;
    border: 1px solid rgba(46, 204, 113, 0.25);
    box-shadow: 0 1px 2px rgba(46, 204, 113, 0.15);
    transition: all 0.2s ease;
}

.status-badge-compact.status-pass:hover {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.95) 0%, rgba(39, 174, 96, 0.95) 100%);
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.25);
    transform: translateY(-1px);
}

.status-badge-compact.status-reject {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.85) 0%, rgba(192, 57, 43, 0.85) 100%);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.25);
    box-shadow: 0 1px 2px rgba(231, 76, 60, 0.15);
    transition: all 0.2s ease;
}

.status-badge-compact.status-reject:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.95) 0%, rgba(192, 57, 43, 0.95) 100%);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.25);
    transform: translateY(-1px);
}

.status-badge-compact.status-pending {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.85) 0%, rgba(41, 128, 185, 0.85) 100%);
    color: white;
    border: 1px solid rgba(52, 152, 219, 0.25);
    box-shadow: 0 1px 2px rgba(52, 152, 219, 0.15);
    transition: all 0.2s ease;
}

.status-badge-compact.status-pending:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95) 0%, rgba(41, 128, 185, 0.95) 100%);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.25);
    transform: translateY(-1px);
}

/* ??????????contract_status?? */
.contract-signed {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.contract-unknown {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.contract-unsigned {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

/* ????????????? */
.btn-copy-link {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    border: none;
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.btn-copy-link:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

.btn-copy-link:active {
    transform: translateY(0);
}

/* ?????????? - ??????? */
.upload-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    grid-template-areas: 
        "left right"
        "extra extra"
        "actions actions";
}

.upload-form-grid .form-column:first-child {
    grid-area: left;
}

.upload-form-grid .form-column:last-child {
    grid-area: right;
}

.upload-form-grid .form-actions {
    grid-area: actions;
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-form-grid .form-actions .btn {
    flex: 1;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ???????????????????? */
@media (max-width: 768px) {
    .upload-form-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "left"
            "right"
            "extra"
            "actions";
    }
}

/* ??????????????? */
.data-table td:has(.status-group) {
    padding: 8px 12px;
    vertical-align: middle;
}

/* ??????hover??????????? */
.data-table tbody tr:hover .status-badge-compact {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ???????????????? */
.dramas-list .data-table th:nth-child(1) { width: 60px; } /* ??? */
.dramas-list .data-table th:nth-child(2) { width: 80px; } /* ID */
.dramas-list .data-table th:nth-child(3) { width: 180px; } /* ??????? */
.dramas-list .data-table th:nth-child(4) { width: 70px; } /* ???? */
.dramas-list .data-table th:nth-child(5) { width: 150px; } /* ??????? */
.dramas-list .data-table th:nth-child(6) { width: 75px; } /* ??? */
.dramas-list .data-table th:nth-child(7) { width: 135px; } /* ????? */
.dramas-list .data-table th:nth-child(8) { width: 240px; } /* ???? */

/* ????????????????? */
.reviews-panel .data-table th:nth-child(1) { width: 80px; } /* ??? */
.reviews-panel .data-table th:nth-child(2) { width: 150px; } /* ???ID */
.reviews-panel .data-table th:nth-child(3) { min-width: 200px; } /* ??????? */
.reviews-panel .data-table th:nth-child(4) { width: 120px; } /* ??????? */
.reviews-panel .data-table th:nth-child(5) { width: 180px; } /* ??????? */

.reviews-panel .data-table td:nth-child(2) {
    padding-right: 20px; /* ???ID????????? */
}

.reviews-panel .data-table td:nth-child(3) {
    padding-left: 20px; /* ???????????????? */
}

/* ?????????? */
.dramas-list .data-table td:nth-child(7) {
    padding: 10px 8px;
    white-space: nowrap;
    vertical-align: middle;
}

/* ????????? */
.dramas-list .data-table td:nth-child(7) {
    padding: 10px 8px;
    white-space: nowrap;
    vertical-align: middle;
}

/* ???????????? */
.dramas-list .data-table tbody tr {
    height: auto;
}

.dramas-list .data-table td {
    vertical-align: middle;
    padding: 12px 10px;
}

/* ???????? */
.status-pending {
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.2) 0%, rgba(127, 140, 141, 0.1) 100%);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.status-processing {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.1) 100%);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.status-completed {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(39, 174, 96, 0.1) 100%);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-reupload {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2) 0%, rgba(230, 126, 34, 0.1) 100%);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

/* ??????????????? */
.tasks-panel .search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.tasks-panel .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.tasks-panel .search-box input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}

.tasks-panel .search-box input::placeholder {
    color: var(--text-muted);
}

.tasks-panel .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.1);
}

/* ?????????? */
.reviews-panel .search-box {
    position: relative;
}

.reviews-panel .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.reviews-panel .search-box input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}

.reviews-panel .search-box input::placeholder {
    color: var(--text-muted);
}

.reviews-panel .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.1);
}

/* ??????????? */
.date-range-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 6px 12px;
}

.date-input {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    padding: 4px 8px;
    cursor: pointer;
    transition: var(--transition);
}

.date-input:focus {
    outline: none;
    color: var(--accent);
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.date-separator {
    color: var(--text-muted);
    font-size: 12px;
    padding: 0 4px;
}

/* ?????????????????????? */
.nav-actions .btn-logout {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.85) 0%, 
        rgba(192, 57, 43, 0.85) 100%);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: white;
}

.nav-actions .btn-logout:hover {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 1) 0%, 
        rgba(192, 57, 43, 1) 100%);?/* ????????????? - ?????????? V2 */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
    /* ????? - ?????? */
    --primary-dark: #0f1a2f;
    --primary: #1a2c50;
    --primary-light: #2a3f75;
    --primary-lighter: #3c529b;
    
    /* ????? */
    --secondary: #3498db;
    --secondary-light: #5dade2;
    --accent: #00c9ff;
    --accent-gradient: linear-gradient(135deg, #00c9ff 0%, #3498db 100%);
    
    /* ????? */
    --bg-dark: #0c1525;
    --bg-primary: #121d33;
    --bg-secondary: #1a2a44;
    --bg-card: rgba(26, 42, 68, 0.8);
    --bg-card-hover: rgba(42, 63, 117, 0.6);
    
    /* ????? */
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --text-muted: #7a8fb3;
    --text-light: #e0e9ff;
    
    /* ??? */
    --success: #2ecc71;
    --warning: #f39c12;
    --error: #e74c3c;
    --info: #3498db;
    --purple: #9b59b6;
    
    /* ??? */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.5);
    
    /* ??? */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* ???? */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ???????? */
    --glass-bg: rgba(26, 42, 68, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --backdrop-blur: blur(20px);
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-primary) 50%, var(--primary-dark) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 14px;
    background-attachment: fixed;
}

/* ???????? */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ??????? */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.spinner {
    width: 80px;
    height: 80px;
    position: relative;
    animation: rotate 2s linear infinite;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: var(--radius-full);
    border: 3px solid transparent;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

.spinner-circle:nth-child(2) {
    border-top-color: var(--secondary);
    animation-delay: -0.5s;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 24px;
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ?????? - ?????? */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c1525 0%, #1a2c50 50%, #0f1a2f 100%);
}

/* ???????? */
.background-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-circle {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(40px);
    opacity: 0.2;
    animation: float 20s infinite linear;
}

.gradient-circle:nth-child(1) {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.gradient-circle:nth-child(2) {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--secondary) 100%);
    bottom: -250px;
    right: -250px;
    animation-delay: -10s;
}

.gradient-circle:nth-child(3) {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--info) 0%, var(--accent) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(100px, 100px) rotate(120deg);
    }
    66% {
        transform: translate(-100px, 50px) rotate(240deg);
    }
}

.auth-box {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    width: 100%;
    max-width: 680px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

.logo-section {
    background: linear-gradient(135deg, 
        rgba(26, 44, 80, 0.8) 0%, 
        rgba(42, 63, 117, 0.6) 50%, 
        rgba(60, 82, 155, 0.4) 100%);
    padding: 48px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 201, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    transition: var(--transition-slow);
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    background: #fff;
}

.logo:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.logo-section h1 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

/* ???? - ?????? */
.auth-tabs {
    padding: 0 32px;
}

.tab-headers {
    display: flex;
    margin: 32px 0 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 4px;
    position: relative;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-md);
}

.tab-indicator {
    position: absolute;
    top: 4px;
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    transition: var(--transition);
    z-index: 0;
    box-shadow: var(--shadow-sm);
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn i {
    font-size: 18px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-light);
}

.tab-content {
    padding: 28px 0;
}

/* ???? - ?????? */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ????????????? */
.auth-form-register {
    gap: 18px;
}

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

/* ?????form-row???????????? */
.form-row:has(.form-group:only-child) {
    grid-template-columns: 1fr;
}

/* ????????????????? */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-box {
        max-width: 480px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group label i {
    color: var(--accent);
    font-size: 16px;
}

.form-group input {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

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

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 0 0 4px rgba(0, 201, 255, 0.1),
        0 4px 20px rgba(0, 201, 255, 0.2);
    transform: translateY(-1px);
}

.password-input {
    position: relative;
    width: 100%;
}

.password-input input {
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-sm);
}

.toggle-password:hover {
    color: var(--accent);
    background: rgba(0, 201, 255, 0.1);
}

.form-hint {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.1) 0%, 
        rgba(0, 201, 255, 0.1) 100%);
    border-left: 3px solid var(--accent);
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-light);
    backdrop-filter: blur(5px);
}

.form-hint p {
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-hint i {
    color: var(--accent);
    font-size: 14px;
}

.form-hint strong {
    color: var(--warning);
    font-weight: 700;
}

/* ??? - ?????? */
.btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--secondary) 100%);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    backdrop-filter: blur(5px);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(52, 152, 219, 0.3);
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover::after {
    opacity: 0.5;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, 
        var(--primary-lighter) 0%, 
        var(--secondary) 100%);
    box-shadow: 
        var(--shadow-md),
        0 4px 20px rgba(52, 152, 219, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, 
        var(--primary-lighter) 0%, 
        var(--secondary) 100%);
    box-shadow: 
        var(--shadow-md),
        0 4px 20px rgba(52, 152, 219, 0.2);
}

.btn-info {
    background: linear-gradient(135deg, 
        var(--info) 0%, 
        var(--secondary-light) 100%);
    box-shadow: 
        var(--shadow-md),
        0 4px 20px rgba(52, 152, 219, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.btn-logout {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.9) 0%, 
        rgba(192, 57, 43, 0.9) 100%);
    border: 1px solid rgba(231, 76, 60, 0.3);
    backdrop-filter: blur(10px);
}

.btn-logout:hover {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 1) 0%, 
        rgba(192, 57, 43, 1) 100%);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(231, 76, 60, 0.3);
}

.auth-footer {
    padding: 24px 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* ?????????? - ?????? */
.main-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* ????? - ?????? */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, 
        var(--primary-dark) 0%, 
        var(--primary) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 201, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-header .logo {
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-welcome {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* ???????? */
.sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: transparent;
    border: none;
    text-align: left;
}

.menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(0, 201, 255, 0.1) 0%, 
        transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.menu-item i {
    font-size: 18px;
    width: 24px;
    transition: var(--transition);
}

.menu-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.menu-item:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.menu-item.active {
    background: linear-gradient(90deg, 
        rgba(0, 201, 255, 0.15) 0%, 
        rgba(52, 152, 219, 0.1) 100%);
    color: var(--text-light);
    border-left: 3px solid var(--accent);
}

.menu-item.active i {
    color: var(--accent);
}

.menu-item.active::after {
    content: '';
    position: absolute;
    right: 16px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--accent);
}

.menu-badge {
    padding: 4px 10px;
    background: var(--accent);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 201, 255, 0.3);
}

/* ???????? */
.sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: var(--shadow-sm);
}

.user-details {
    flex: 1;
}

.username {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.user-role {
    font-size: 12px;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    background: linear-gradient(135deg, var(--purple) 0%, #8e44ad 100%);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.role-user {
    background: linear-gradient(135deg, var(--info) 0%, #2980b9 100%);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* ?????????? */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ???????? */
.top-nav {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.breadcrumb-item {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.breadcrumb-item i {
    font-size: 16px;
}

.breadcrumb-item:hover {
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--accent);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-theme-toggle {
    min-width: 118px;
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.18) 0%, rgba(14, 165, 233, 0.14) 100%);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-theme-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.28) 0%, rgba(14, 165, 233, 0.2) 100%);
    box-shadow: var(--shadow-md);
}

:root[data-theme="light"] .btn-theme-toggle {
    border-color: rgba(47, 122, 229, 0.18);
}

/* ???????? - ?????????? */
.content-area {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    position: relative;
}

.content-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 201, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ???????????? */
.content-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.content-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(0, 201, 255, 0.1);
}

.content-card h2 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-card h2 i {
    color: var(--accent);
    font-size: 22px;
}

/* ????? */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.stat-primary {
    border-left: 4px solid var(--accent);
}

.stat-card.stat-success {
    border-left: 4px solid var(--success);
}

.stat-card.stat-warning {
    border-left: 4px solid var(--warning);
}

.stat-card.stat-info {
    border-left: 4px solid var(--info);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-card.stat-primary .stat-icon {
    background: linear-gradient(135deg, 
        rgba(0, 201, 255, 0.2) 0%, 
        rgba(52, 152, 219, 0.1) 100%);
    color: var(--accent);
}

.stat-card.stat-success .stat-icon {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
}

.stat-card.stat-warning .stat-icon {
    background: linear-gradient(135deg, 
        rgba(243, 156, 18, 0.2) 0%, 
        rgba(241, 196, 15, 0.1) 100%);
    color: var(--warning);
}

.stat-card.stat-info .stat-icon {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.2) 0%, 
        rgba(41, 128, 185, 0.1) 100%);
    color: var(--info);
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-content p {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* ??????? */
.table-responsive {
    overflow-x: auto;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.data-table thead {
    background: var(--table-head-bg);
    backdrop-filter: blur(10px);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid var(--thead-border);
    white-space: nowrap;
}

.data-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--table-border);
}

.data-table tbody tr:hover {
    background: var(--table-row-hover);
}

.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--table-border);
}

/* ?????? - ??????? */
.status-badge, .verify-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.status-badge {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.2) 0%, 
        rgba(41, 128, 185, 0.1) 100%);
    color: var(--info);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.verify-badge {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* ??? */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-top: 24px;
}

.pagination-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, 
        rgba(26, 42, 68, 0.8) 0%, 
        rgba(42, 63, 117, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(42, 63, 117, 0.8) 0%, 
        rgba(60, 82, 155, 0.6) 100%);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 180px;
    text-align: center;
}

/* ???? */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 21, 37, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.modal {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 
        var(--glass-shadow),
        0 0 100px rgba(0, 201, 255, 0.1);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-lg {
    max-width: 900px;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.modal-header h3 {
    font-size: 20px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    color: var(--accent);
    font-size: 22px;
}

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.close-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: var(--error);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

/* ?????? */
.message {
    position: fixed;
    top: 32px;
    right: 32px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 300px;
    max-width: 400px;
    z-index: 1001;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        var(--glass-shadow),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message.success {
    border-left: 4px solid var(--success);
}

.message.error {
    border-left: 4px solid var(--error);
}

.message.info {
    border-left: 4px solid var(--info);
}

.message.warning {
    border-left: 4px solid var(--warning);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.message i {
    font-size: 20px;
}

.message.success i {
    color: var(--success);
}

.message.error i {
    color: var(--error);
}

.message.info i {
    color: var(--info);
}

.message.warning i {
    color: var(--warning);
}

.message span {
    flex: 1;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.message-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.message-close:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

/* ??????? */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar-header h2,
    .user-welcome,
    .menu-item span,
    .username,
    .user-role,
    .breadcrumb-item span:not(.icon) {
        display: none;
    }
    
    .sidebar-header {
        padding: 20px;
    }
    
    .sidebar-header .logo {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }
    
    .menu-item {
        justify-content: center;
        padding: 16px;
    }
    
    .user-info {
        justify-content: center;
        padding: 12px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .auth-box {
        max-width: 100%;
        margin: 20px;
    }
    
    .tab-headers {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .nav-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }
    
    .modal {
        max-width: 100%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-box {
        margin: 10px;
    }
    
    .logo-section {
        padding: 32px 20px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .logo-section h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .auth-tabs {
        padding: 0 20px;
    }
    
    .content-area {
        padding: 16px;
    }
    
    .content-card {
        padding: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .message {
        left: 16px;
        right: 16px;
        min-width: auto;
    }
}


/* ?????? - ??????????????? */
.dramas-list {
    position: relative;
}

.dramas-list .list-header {
    margin-bottom: 20px;
}

.dramas-list .list-header h2 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dramas-list .list-header h2 i {
    color: var(--accent);
    font-size: 24px;
}

/* ????????????? */
.dramas-list .list-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ????????? */
.dramas-list .search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.dramas-list .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 16px;
    z-index: 1;
}

.dramas-list .search-box input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.dramas-list .search-box input::placeholder {
    color: var(--text-muted);
}

.dramas-list .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

/* ??????????? */
.dramas-list .filter-select {
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.dramas-list .filter-select:hover {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

.dramas-list .filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

.dramas-list .filter-select option {
    background: var(--primary-dark);
    color: var(--text-primary);
    padding: 10px;
}

/* ??????? */
.data-info {
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.data-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* ???????????? */
.drama-name {
    max-width: 180px;
}

.drama-name strong {
    color: var(--text-light);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.drama-meta {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.pay-badge, .type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.pay-badge {
    background: linear-gradient(135deg, 
        rgba(243, 156, 18, 0.2) 0%, 
        rgba(241, 196, 15, 0.1) 100%);
    color: var(--warning);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.type-badge {
    background: linear-gradient(135deg, 
        rgba(155, 89, 182, 0.2) 0%, 
        rgba(142, 68, 173, 0.1) 100%);
    color: var(--purple);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

/* ????? */
.drama-abstract {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    word-break: keep-all;
    overflow-wrap: break-word;
    padding: 2px 0;
}

/* ?????? */
.chapter-info {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.15) 0%, 
        rgba(41, 128, 185, 0.1) 100%);
    color: var(--info);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* ????????? */
.status-badge.status-1 {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.2) 0%, 
        rgba(41, 128, 185, 0.1) 100%);
    color: var(--info);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.status-badge.status-2 {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.verify-badge.verify-0 {
    background: linear-gradient(135deg, 
        rgba(243, 156, 18, 0.2) 0%, 
        rgba(241, 196, 15, 0.1) 100%);
    color: var(--warning);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.verify-badge.verify-1 {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* ?????????? */
.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.page-size-selector span {
    color: var(--text-secondary);
    font-size: 14px;
}

.page-size-selector select {
    padding: 8px 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.page-size-selector select:hover {
    border-color: var(--secondary);
}

.page-size-selector select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.1);
}

/* ??????? */
@media (max-width: 768px) {
    .dramas-list .list-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dramas-list .search-box {
        width: 100%;
        min-width: 100%;
    }
    
    .dramas-list .filter-select {
        width: 100%;
    }
    
    .dramas-list .list-actions-row .btn {
        width: 100%;
    }
    
    .data-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ??????????????? */
.crawl-panel {
    position: relative;
}

.crawl-panel h2 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.crawl-panel h2 i {
    color: var(--accent);
    font-size: 24px;
}

/* ?????????? */
.crawl-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.control-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.control-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: var(--transition);
}

.control-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(0, 201, 255, 0.15);
}

.control-card:hover::before {
    opacity: 1;
}

.control-card h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-card h3 i {
    color: var(--accent);
    font-size: 20px;
}

.control-card > p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ???????????? */
.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.form-inline .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 140px;
}

.form-inline .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.form-inline .form-control {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
}

.form-inline .form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

.form-inline .form-control:hover {
    border-color: var(--secondary);
}

.form-inline select.form-control {
    cursor: pointer;
}

.form-inline select.form-control option {
    background: var(--primary-dark);
    color: var(--text-primary);
}

.form-inline .btn {
    flex-shrink: 0;
    min-width: 140px;
}

/* ????????? */
.crawl-results {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
}

.crawl-results h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crawl-results h3 i {
    color: var(--accent);
    font-size: 20px;
}

.results-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--info);
    transition: var(--transition);
}

.result-item.success::before {
    background: linear-gradient(180deg, var(--success) 0%, #27ae60 100%);
}

.result-item.error::before,
.result-item.failed::before {
    background: linear-gradient(180deg, var(--error) 0%, #c0392b 100%);
}

.result-item:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateX(4px);
}

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

.result-page {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
}

.result-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-status.success {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.result-status.error,
.result-status.failed {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.2) 0%, 
        rgba(192, 57, 43, 0.1) 100%);
    color: var(--error);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.result-message {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.result-details {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-details::before {
    content: '?';
    color: var(--accent);
    font-weight: bold;
}

/* ??????????? */
.system-info h2 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-info h2 i {
    color: var(--accent);
    font-size: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(0, 201, 255, 0.15);
}

.info-card h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.info-card h3 i {
    color: var(--accent);
    font-size: 20px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
}

.system-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* ??????? */
@media (max-width: 768px) {
    .crawl-controls {
        grid-template-columns: 1fr;
    }
    
    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-inline .form-group {
        min-width: 100%;
    }
    
    .form-inline .btn {
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .system-actions {
        flex-direction: column;
    }
    
    .system-actions .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .control-card {
        padding: 20px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ????????????? */
.projects-panel {
    position: relative;
}

.projects-panel .list-header {
    margin-bottom: 20px;
}

.projects-panel .list-header h2 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.projects-panel .list-header h2 i {
    color: var(--accent);
    font-size: 24px;
}

/* ???????????? */
.projects-panel .search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.projects-panel .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 16px;
    z-index: 1;
}

.projects-panel .search-box input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.projects-panel .search-box input::placeholder {
    color: var(--text-muted);
}

.projects-panel .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

/* ?????? - ?????? */
.list-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.list-actions-row .filter-select {
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    min-width: 140px;
}

.list-actions-row .filter-select:hover {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

.list-actions-row .filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

.list-actions-row .filter-select option {
    background: var(--primary-dark);
    color: var(--text-primary);
}

/* ?????????? - ??????? */
.type-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.type-badge.type-1 {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.2) 0%, 
        rgba(192, 57, 43, 0.1) 100%);
    color: var(--error);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.type-badge.type-2 {
    background: linear-gradient(135deg, 
        rgba(243, 156, 18, 0.2) 0%, 
        rgba(241, 196, 15, 0.1) 100%);
    color: var(--warning);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.type-badge.type-3 {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* ?????????? */
.link-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.link-text:hover {
    color: var(--secondary-light) !important;
    transform: translateX(2px);
}

/* ??????????????????????? select?? */
.form-control {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

.form-control:hover {
    border-color: var(--secondary);
}

select.form-control {
    cursor: pointer;
}

select.form-control option {
    background: var(--primary-dark);
    color: var(--text-primary);
}

/* ??????? */
@media (max-width: 768px) {
    .list-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .list-actions-row .filter-select {
        width: 100%;
    }
    
    .list-actions-row .btn {
        width: 100%;
    }
}


/* ?????????? - ?????? */
.copyright-rejected {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: #ffffff !important;
    font-weight: bold !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4) !important;
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(231, 76, 60, 0.8);
    }
}

/* ??????????????? */
.html-content {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 14px;
}

.html-content p {
    margin-bottom: 8px;
}

.html-content ul, .html-content ol {
    margin-left: 20px;
    margin-bottom: 8px;
}

.html-content li {
    margin-bottom: 4px;
}

.html-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ?????????? */
.copyright-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.copyright-file-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.copyright-file-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.copyright-file-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.copyright-file-item .file-info {
    padding: 8px 12px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.copyright-file-item .file-name {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copyright-file-item .upload-time {
    color: var(--text-muted);
    font-size: 11px;
}

/* ???????????????? */
.copyright-rejected {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9) 0%, rgba(192, 57, 43, 0.9) 100%) !important;
    color: white !important;
    font-weight: 600;
    animation: pulse-red 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(231, 76, 60, 0.8);
    }
}

/* ???????????????? */
.btn-danger-detail {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-danger-detail:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important;
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.6);
    transform: translateY(-2px);
}

/* ?????????????? */
.status-badge {
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
}

/* ?????????????? */
.btn-sm {
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
    gap: 4px;
}

.btn-info {
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
    gap: 4px;
}

/* ????????????? */
.data-table td:nth-child(7) {
    min-width: 450px;
    white-space: nowrap;
}

/* ??????????????? */
.btn-sm {
    white-space: nowrap !important;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

/* ?????????? */
.staff-panel {
    padding: 24px;
}

.role-admin {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.role-user {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.status-active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.status-disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

/* ???????????? */
.btn-action {
    height: 40px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    min-width: 120px;
}

/* ???list-actions-row?????????? */
.list-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

/* ???????? */
.status-1 {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.status-2 {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.status-3 {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.status-4 {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.status-5 {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

/* ???????? */
.online-waiting {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.online-live {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

/* ???????????? */
.status-auditing {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.status-pass {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.status-reject {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

/* ???????? - ????????? */
.status-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    width: 100%;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    line-height: 1.4;
}

.status-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 28px;
    text-align: right;
    opacity: 0.75;
    flex-shrink: 0;
}

.status-badge-compact {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

/* ?????????????? */
.status-badge-compact.status-auditing {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.85) 0%, rgba(230, 126, 34, 0.85) 100%);
    color: white;
    border: 1px solid rgba(243, 156, 18, 0.25);
    box-shadow: 0 1px 2px rgba(243, 156, 18, 0.15);
    transition: all 0.2s ease;
}

.status-badge-compact.status-auditing:hover {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.95) 0%, rgba(230, 126, 34, 0.95) 100%);
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.25);
    transform: translateY(-1px);
}

.status-badge-compact.status-pass {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.85) 0%, rgba(39, 174, 96, 0.85) 100%);
    color: white;
    border: 1px solid rgba(46, 204, 113, 0.25);
    box-shadow: 0 1px 2px rgba(46, 204, 113, 0.15);
    transition: all 0.2s ease;
}

.status-badge-compact.status-pass:hover {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.95) 0%, rgba(39, 174, 96, 0.95) 100%);
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.25);
    transform: translateY(-1px);
}

.status-badge-compact.status-reject {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.85) 0%, rgba(192, 57, 43, 0.85) 100%);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.25);
    box-shadow: 0 1px 2px rgba(231, 76, 60, 0.15);
    transition: all 0.2s ease;
}

.status-badge-compact.status-reject:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.95) 0%, rgba(192, 57, 43, 0.95) 100%);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.25);
    transform: translateY(-1px);
}

.status-badge-compact.status-pending {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.85) 0%, rgba(41, 128, 185, 0.85) 100%);
    color: white;
    border: 1px solid rgba(52, 152, 219, 0.25);
    box-shadow: 0 1px 2px rgba(52, 152, 219, 0.15);
    transition: all 0.2s ease;
}

.status-badge-compact.status-pending:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95) 0%, rgba(41, 128, 185, 0.95) 100%);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.25);
    transform: translateY(-1px);
}

/* ??????????contract_status?? */
.contract-signed {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.contract-unknown {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.contract-unsigned {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

/* ????????????? */
.btn-copy-link {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    border: none;
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.btn-copy-link:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

.btn-copy-link:active {
    transform: translateY(0);
}

/* ?????????? - ??????? */
.upload-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    grid-template-areas: 
        "left right"
        "extra extra"
        "actions actions";
}

.upload-form-grid .form-column:first-child {
    grid-area: left;
}

.upload-form-grid .form-column:last-child {
    grid-area: right;
}

.upload-form-grid .form-actions {
    grid-area: actions;
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-form-grid .form-actions .btn {
    flex: 1;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ???????????????????? */
@media (max-width: 768px) {
    .upload-form-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "left"
            "right"
            "extra"
            "actions";
    }
}

/* ??????????????? */
.data-table td:has(.status-group) {
    padding: 8px 12px;
    vertical-align: middle;
}

/* ??????hover??????????? */
.data-table tbody tr:hover .status-badge-compact {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ???????????????? */
.dramas-list .data-table th:nth-child(1) { width: 60px; } /* ??? */
.dramas-list .data-table th:nth-child(2) { width: 80px; } /* ID */
.dramas-list .data-table th:nth-child(3) { width: 180px; } /* ??????? */
.dramas-list .data-table th:nth-child(4) { width: 70px; } /* ???? */
.dramas-list .data-table th:nth-child(5) { width: 150px; } /* ??????? */
.dramas-list .data-table th:nth-child(6) { width: 75px; } /* ??? */
.dramas-list .data-table th:nth-child(7) { width: 135px; } /* ????? */
.dramas-list .data-table th:nth-child(8) { width: 240px; } /* ???? */

/* ????????????????? */
.reviews-panel .data-table th:nth-child(1) { width: 80px; } /* ??? */
.reviews-panel .data-table th:nth-child(2) { width: 150px; } /* ???ID */
.reviews-panel .data-table th:nth-child(3) { min-width: 200px; } /* ??????? */
.reviews-panel .data-table th:nth-child(4) { width: 120px; } /* ??????? */
.reviews-panel .data-table th:nth-child(5) { width: 180px; } /* ??????? */

.reviews-panel .data-table td:nth-child(2) {
    padding-right: 20px; /* ???ID????????? */
}

.reviews-panel .data-table td:nth-child(3) {
    padding-left: 20px; /* ???????????????? */
}

/* ?????????? */
.dramas-list .data-table td:nth-child(7) {
    padding: 10px 8px;
    white-space: nowrap;
    vertical-align: middle;
}

/* ????????? */
.dramas-list .data-table td:nth-child(7) {
    padding: 10px 8px;
    white-space: nowrap;
    vertical-align: middle;
}

/* ???????????? */
.dramas-list .data-table tbody tr {
    height: auto;
}

.dramas-list .data-table td {
    vertical-align: middle;
    padding: 12px 10px;
}

/* ???????? */
.status-pending {
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.2) 0%, rgba(127, 140, 141, 0.1) 100%);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.status-processing {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.1) 100%);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.status-completed {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(39, 174, 96, 0.1) 100%);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-reupload {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2) 0%, rgba(230, 126, 34, 0.1) 100%);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

/* ??????????????? */
.tasks-panel .search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.tasks-panel .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.tasks-panel .search-box input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}

.tasks-panel .search-box input::placeholder {
    color: var(--text-muted);
}

.tasks-panel .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.1);
}

/* ?????????? */
.reviews-panel .search-box {
    position: relative;
}

.reviews-panel .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.reviews-panel .search-box input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}

.reviews-panel .search-box input::placeholder {
    color: var(--text-muted);
}

.reviews-panel .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.1);
}

/* ??????????? */
.date-range-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 6px 12px;
}

.date-input {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    padding: 4px 8px;
    cursor: pointer;
    transition: var(--transition);
}

.date-input:focus {
    outline: none;
    color: var(--accent);
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.date-separator {
    color: var(--text-muted);
    font-size: 12px;
    padding: 0 4px;
}

/* ?????????????????????? */
.nav-actions .btn-logout {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.85) 0%, 
        rgba(192, 57, 43, 0.85) 100%);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: white;
}

.nav-actions .btn-logout:hover {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 1) 0%, 
        rgba(192, 57, 43, 1) 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

/* ?????????? - ???????????? */
.form-row-full {
    grid-area: extra;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row-full .form-group {
    margin-bottom: 0;
}

    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

/* ?????????? - ???????????? */
.form-row-full {
    grid-area: extra;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row-full .form-group {
    margin-bottom: 0;
}


/* ????????? */
.status-rejected {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(192, 57, 43, 0.1) 100%);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ?????????? */
.manmi-autocomplete {
    position: relative;
}

.manmi-suggestion-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    max-height: 180px;
    overflow-y: auto;
    background: rgba(9, 20, 44, 0.98);
    border: 1px solid rgba(0, 217, 255, 0.35);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 200;
    padding: 4px;
}

.manmi-suggestion-item {
    display: block;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    margin: 0;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.manmi-suggestion-item:hover {
    background: rgba(0, 217, 255, 0.12);
}

.manmi-suggestion-loading {
    color: var(--text-secondary);
    padding: 10px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ??/???????? */
.status-badge.status-yes {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.85) 0%, rgba(39, 174, 96, 0.85) 100%);
    color: white;
    font-weight: 500;
}

.status-badge.status-no {
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.85) 0%, rgba(127, 140, 141, 0.85) 100%);
    color: white;
    font-weight: 500;
}

/* ????????????? */
.my-tasks-table {
    font-size: 13px;
}

.my-tasks-table thead th {
    font-size: 13px;
    font-weight: 600;
    padding: 12px 10px;
    white-space: nowrap;
}

.my-tasks-table tbody td {
    padding: 12px 10px;
    vertical-align: middle;
}

.my-tasks-table .type-badge,
.my-tasks-table .status-badge {
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

.my-tasks-table .btn-sm {
    white-space: nowrap;
}

.my-tasks-table tbody tr:hover {
    background: rgba(42, 63, 117, 0.4);
}


/* 我的任务 - 筛选工具条 */
.my-tasks-panel .my-tasks-toolbar {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(26, 42, 68, 0.72) 0%, rgba(18, 29, 51, 0.88) 100%);
    border: 1px solid rgba(0, 201, 255, 0.16);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--backdrop-blur);
}

.my-tasks-panel .my-tasks-toolbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.my-tasks-panel .my-tasks-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 420px;
    overflow: hidden;
}

.my-tasks-panel .my-tasks-search > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.my-tasks-panel .my-tasks-search input {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.my-tasks-panel .my-tasks-search input::placeholder {
    color: var(--text-muted);
}

.my-tasks-panel .my-tasks-search input:hover {
    border-color: rgba(0, 201, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.my-tasks-panel .my-tasks-search input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.14);
}

.my-tasks-panel .my-tasks-type-select {
    flex: 0 0 148px;
    width: 148px;
    height: 40px;
    padding: 0 36px 0 14px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.06);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--accent) 50%),
        linear-gradient(135deg, var(--accent) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 17px,
        calc(100% - 12px) 17px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.my-tasks-panel .my-tasks-type-select:hover {
    border-color: rgba(0, 201, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.08);
}

.my-tasks-panel .my-tasks-type-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.14);
}

.my-tasks-panel .my-tasks-refresh-btn {
    flex: 0 0 auto;
    height: 40px !important;
    min-width: 96px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.28);
}

.my-tasks-panel .my-tasks-refresh-btn:hover {
    transform: translateY(-1px);
}

.my-tasks-panel .my-tasks-stats {
    margin-left: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(0, 201, 255, 0.1);
    border: 1px solid rgba(0, 201, 255, 0.22);
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

.my-tasks-panel .my-tasks-stats > i {
    color: var(--accent);
}

.my-tasks-panel .my-tasks-stats strong {
    color: var(--text-light);
    font-weight: 700;
}

.my-tasks-panel .my-tasks-stats-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.18);
}

:root[data-theme="light"] .my-tasks-panel .my-tasks-toolbar {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 255, 0.98) 100%);
    border: 1px solid rgba(131, 154, 191, 0.28);
    box-shadow: 0 8px 22px rgba(32, 67, 128, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .my-tasks-panel .my-tasks-search input,
:root[data-theme="light"] .my-tasks-panel .my-tasks-type-select {
    background-color: #ffffff;
    border-color: rgba(131, 154, 191, 0.34);
    color: var(--text-primary);
}

:root[data-theme="light"] .my-tasks-panel .my-tasks-search input:hover,
:root[data-theme="light"] .my-tasks-panel .my-tasks-type-select:hover {
    border-color: rgba(14, 165, 233, 0.55);
    background-color: #f8fbff;
}

:root[data-theme="light"] .my-tasks-panel .my-tasks-search input:focus,
:root[data-theme="light"] .my-tasks-panel .my-tasks-type-select:focus {
    border-color: var(--accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

:root[data-theme="light"] .my-tasks-panel .my-tasks-stats {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.22);
    color: var(--text-secondary);
}

:root[data-theme="light"] .my-tasks-panel .my-tasks-stats strong {
    color: var(--text-primary);
}

:root[data-theme="light"] .my-tasks-panel .my-tasks-stats-sep {
    background: rgba(113, 130, 154, 0.35);
}

@media (max-width: 900px) {
    .my-tasks-panel .my-tasks-toolbar-row {
        flex-wrap: wrap;
    }

    .my-tasks-panel .my-tasks-stats {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .my-tasks-panel .my-tasks-search {
        flex: 1 1 100%;
        max-width: none;
    }

    .my-tasks-panel .my-tasks-type-select {
        flex: 1 1 140px;
        width: auto;
        min-width: 140px;
    }
}

/* ??????????? */
.flow-tasks-panel .search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.flow-tasks-panel .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

.flow-tasks-panel .search-box input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 14px;
}

.flow-tasks-panel .search-box input::placeholder {
    color: var(--text-muted);
}

.flow-tasks-panel .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.1);
}

.flow-tasks-panel .search-box input:hover {
    border-color: rgba(0, 201, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

/* ?????????? */
.flow-task-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: nowrap;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1;
    border-radius: 4px;
}

.btn-xs i {
    font-size: 10px;
}

/* ???????? */
.flow-tasks-panel .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
}

.flow-tasks-panel .pagination .page-info {
    padding: 0 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.flow-tasks-panel .pagination .btn {
    min-width: 32px;
}

.flow-tasks-panel .pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ????????? - ????????????? */
.projects-panel .list-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.projects-panel .list-actions-row .btn-action {
    white-space: nowrap;
}



/* ?????? - ???????????????????? */
.projects-panel .status-badge {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 600;
}

.projects-panel .status-badge.status-1 {
    color: #3498db;
}

.projects-panel .status-badge.status-2 {
    color: #2ecc71;
}

.projects-panel .status-badge.status-3 {
    color: #9b59b6;
}

.projects-panel .status-badge.status-4 {
    color: #f39c12;
}

.projects-panel .status-badge.status-5 {
    color: #e74c3c;
}

.projects-panel .project-action-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 168px;
    margin: 0 auto;
}

.projects-panel .project-action-group .btn {
    width: 100%;
    margin: 0;
    padding: 5px 8px !important;
    font-size: 12px !important;
    height: 30px !important;
    white-space: nowrap;
}

.projects-panel .project-action-group .btn i {
    font-size: 12px;
}

.projects-panel .project-action-group .btn-copy-link {
    grid-column: 1 / -1;
}

.projects-panel .project-action-group .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .projects-panel .project-action-group {
        grid-template-columns: 1fr;
        width: 120px;
    }

    .projects-panel .project-action-group .btn-copy-link {
        grid-column: auto;
    }
}


/* ????????????? */
.company-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 50px;
}

.company-type-badge.company-shanxi {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.company-type-badge.company-liaoning {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
}

.company-type-badge.company-linfen {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.company-type-badge.company-shanxi3 {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.company-type-badge.company-shanxi4 {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.company-type-badge.company-shanxi5 {
    background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
    color: white;
}

.company-type-badge.company-shanxi7 {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.company-type-badge.company-shanxi8 {
    background: linear-gradient(135deg, #5dade2 0%, #2e86c1 100%);
    color: white;
}


/* ??????????????????? */
.status-group {
    display: flex;
    flex-direction: column;
    gap: 6px !important;
    padding: 4px 0;
    width: 100%;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    line-height: 1.2;
    min-height: 22px;
}

.status-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 28px;
    text-align: right;
    opacity: 0.85;
    flex-shrink: 0;
}

.status-badge-compact {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* ========== ???????????????? ========== */
.dramas-table {
    table-layout: fixed;
    width: 100%;
}

.dramas-table th,
.dramas-table td {
    padding: 10px 8px;
    vertical-align: middle;
}

.dramas-table .text-center {
    text-align: center;
}

.dramas-table .drama-name {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ???????????? */
.company-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.company-badge.company-shanxi {
    background: #9b59b6;
    color: white;
}

.company-badge.company-liaoning {
    background: #1abc9c;
    color: white;
}

.company-badge.company-linfen {
    background: #e74c3c;
    color: white;
}

.company-badge.company-shanxi3 {
    background: #f39c12;
    color: white;
}

.company-badge.company-shanxi4 {
    background: #f39c12;
    color: white;
}

.company-badge.company-shanxi5 {
    background: #8e44ad;
    color: white;
}

.company-badge.company-shanxi7 {
    background: #3498db;
    color: white;
}

.company-badge.company-shanxi8 {
    background: #5dade2;
    color: white;
}

/* ?????? */
.chapter-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

/* ?????????? */
.status-cell {
    padding: 6px 8px !important;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.status-row:last-child {
    margin-bottom: 0;
}

.status-name {
    font-size: 11px;
    color: #8899a6;
    min-width: 26px;
    text-align: right;
}

.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    min-width: 58px;
    text-align: center;
}

.status-tag.status-auditing {
    background: #f39c12;
    color: white;
}

.status-tag.status-pass {
    background: #27ae60;
    color: white;
}

.status-tag.status-reject {
    background: #e74c3c;
    color: white;
}

.status-tag.status-pending {
    background: #3498db;
    color: white;
}

.status-tag.status-muted {
    background: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

:root[data-theme="light"] .status-tag.status-muted {
    background: #e2e8f0;
    color: #64748b;
}

/* ????????????? */
.copyright-apply-table .copyright-status-cell {
    vertical-align: middle;
    padding: 10px 8px;
}

.copyright-apply-table .copyright-status-cell .status-tag {
    min-width: 64px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.copyright-apply-table .copyright-status-meta {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-muted);
}

/* ?????? */
.action-cell {
    white-space: nowrap;
}

.action-cell .btn {
    margin-right: 4px;
    margin-bottom: 2px;
}

.action-cell .btn:last-child {
    margin-right: 0;
}

.btn-highlight-result {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.28);
}

.btn-highlight-result:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

:root[data-theme="light"] .btn-highlight-result {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.22);
}

:root[data-theme="light"] .btn-highlight-result:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.32);
}


/* ?????????????? */
.label-hint {
    font-size: 11px;
    color: #f39c12;
    font-weight: normal;
    margin-left: 4px;
}

/* ?????????????? */
select.form-control:disabled {
    background-color: rgba(255, 255, 255, 0.05);
    color: #8899a6;
    cursor: not-allowed;
    opacity: 0.7;
}


/* ?????????????? */
.weixin-cell {
    padding: 6px 8px !important;
}

.weixin-info {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    font-size: 12px;
}

.weixin-info:last-child {
    margin-bottom: 0;
}

.weixin-label {
    color: #8899a6;
    font-size: 11px;
    min-width: 32px;
}

.weixin-value {
    color: #1abc9c;
    font-weight: 500;
}


/* ????????????? */
.info-cell {
    padding: 6px 8px !important;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    font-size: 12px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    color: #8899a6;
    font-size: 11px;
    min-width: 32px;
}

.info-value {
    color: var(--text-light);
    font-weight: 500;
}


/* ?????? */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 0.3s ease-out;
}

.message.success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9) 0%, rgba(39, 174, 96, 0.9) 100%);
    border-color: var(--success);
}

.message.error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9) 0%, rgba(192, 57, 43, 0.9) 100%);
    border-color: var(--error);
}

.message.warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.9) 0%, rgba(230, 126, 34, 0.9) 100%);
    border-color: var(--warning);
}

.message.info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9) 0%, rgba(41, 128, 185, 0.9) 100%);
    border-color: var(--info);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.message-content i {
    font-size: 18px;
    flex-shrink: 0;
}

.message-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.message-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


.filter-input {
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    color: var(--text-primary);
    font-size: 14px;
    min-width: 120px;
    transition: var(--transition);
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

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

/* ?????? */
.announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.announcement-modal-box {
    background: linear-gradient(135deg, #1a2a44 0%, #0f1a2f 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.announcement-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.announcement-header i {
    font-size: 20px;
}

.announcement-close-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    position: relative;
    z-index: 10001;
}

.announcement-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.announcement-btn {
    background: linear-gradient(135deg, #00c9ff 0%, #3498db 100%);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 10001;
}

.announcement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 201, 255, 0.3);
}

.announcement-body {
    padding: 24px;
    color: #e0e9ff;
    font-size: 15px;
    line-height: 1.8;
}

.announcement-body p {
    margin-bottom: 12px;
}

.announcement-body .highlight-text {
    color: #00c9ff;
    font-weight: bold;
}

.announcement-body .warning-text {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
    margin-top: 16px;
}

.announcement-body .contact-info {
    margin-top: 20px;
    padding: 14px;
    background: rgba(7, 193, 96, 0.1);
    border-radius: 8px;
    border-left: 4px solid #07c160;
}

.announcement-body .contact-info i {
    color: #07c160;
    margin-right: 8px;
}

.announcement-body .contact-id {
    color: #07c160;
    font-weight: bold;
}

.announcement-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: center;
}

.announcement-btn {
    background: linear-gradient(135deg, #00c9ff 0%, #3498db 100%);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.announcement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 201, 255, 0.3);
}

/* ????? */
.marquee-container {
    flex: 1;
    margin-left: 20px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15) 0%, rgba(230, 126, 34, 0.1) 100%);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
}

.marquee-content {
    color: #f39c12;
    font-size: 13px;
    line-height: 1.5;
}

.marquee-icon {
    margin-right: 8px;
}

/* ?? list-header ?? */
.list-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.list-header h2 {
    white-space: nowrap;
    margin: 0;
}

.fanqie-panel-header {
    justify-content: space-between;
    gap: 12px;
}

.fanqie-notice-entry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.fanqie-notice-entry i {
    font-size: 14px;
}

.fanqie-notice-entry:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.45);
}

.fanqie-notice-entry:active {
    transform: translateY(0);
}

.project-notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.project-notice-carousel {
    position: relative;
    margin-bottom: 16px;
    min-height: 92px;
}

.project-notice-carousel .project-notice-banner {
    margin-bottom: 0;
}

.project-notice-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.project-notice-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: all 0.25s ease;
}

.project-notice-dot.active {
    width: 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9f1c 0%, #ff5e00 100%);
}

.project-notice-vertical-enter-active,
.project-notice-vertical-leave-active {
    transition: all 0.45s ease;
}

.project-notice-vertical-enter {
    opacity: 0;
    transform: translateY(18px);
}

.project-notice-vertical-leave-to {
    opacity: 0;
    transform: translateY(-18px);
}

.project-notice-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 0;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 184, 77, 0.42);
    background:
        radial-gradient(circle at right top, rgba(255, 184, 77, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(255, 167, 38, 0.2) 0%, rgba(255, 111, 0, 0.12) 100%);
    box-shadow: 0 10px 24px rgba(255, 145, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.project-notice-banner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #ffd166 0%, #ff7b00 100%);
    box-shadow: 0 0 18px rgba(255, 177, 66, 0.45);
}

.project-notice-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff4d6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ff9f1c 0%, #ff5e00 100%);
    box-shadow: 0 10px 22px rgba(255, 111, 0, 0.24);
    white-space: nowrap;
}

.project-notice-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.project-notice-title {
    margin-bottom: 6px;
    color: #ffd27f;
    font-size: 16px;
    font-weight: 700;
}

.project-notice-text {
    color: #ffe7bd;
    font-size: 14px;
    line-height: 1.7;
}

.project-notice-text a {
    color: #7ec8ff;
    text-decoration: underline;
}

.project-notice-banner--red {
    border-color: rgba(255, 107, 107, 0.45);
    background:
        radial-gradient(circle at right top, rgba(255, 107, 107, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(231, 76, 60, 0.22) 0%, rgba(192, 57, 43, 0.14) 100%);
    box-shadow: 0 10px 24px rgba(231, 76, 60, 0.14);
}

.project-notice-banner--red::before {
    background: linear-gradient(180deg, #ff8a8a 0%, #e74c3c 100%);
    box-shadow: 0 0 18px rgba(231, 76, 60, 0.45);
}

.project-notice-banner--red .project-notice-badge {
    color: #ffe8e8;
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
    box-shadow: 0 10px 22px rgba(231, 76, 60, 0.28);
}

.project-notice-banner--red .project-notice-title {
    color: #ffb3b3;
}

.project-notice-banner--red .project-notice-text {
    color: #ffd6d6;
}

/* ???????????????? data-table ???????? */
.project-list-table th:nth-child(1),
.project-list-table td:nth-child(1) {
    width: 84px;
}

.project-list-table th:nth-child(2),
.project-list-table td:nth-child(2) {
    width: 300px;
}

.project-list-table th:nth-child(3),
.project-list-table td:nth-child(3) {
    width: 96px;
}

.project-list-table th:nth-child(4),
.project-list-table td:nth-child(4),
.project-list-table th:nth-child(5),
.project-list-table td:nth-child(5) {
    width: 180px;
}

.project-list-table th:nth-child(6),
.project-list-table td:nth-child(6) {
    width: 110px;
}

.project-list-table th:nth-child(7),
.project-list-table td:nth-child(7) {
    width: 170px;
    min-width: 0;
    white-space: nowrap;
}

.project-list-table th:nth-child(8),
.project-list-table td:nth-child(8) {
    width: 200px;
}

@media (max-width: 768px) {
    .project-notice-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .project-notice-title {
        font-size: 15px;
    }

    .project-notice-text {
        font-size: 13px;
    }
}

/* ?????????? */
.billing-table th:nth-child(1) { width: 150px; } /* ???? */
.billing-table th:nth-child(2) { width: 80px; } /* ?? */
.billing-table th:nth-child(3) { width: 120px; } /* ???? */
.billing-table th:nth-child(4) { width: 120px; } /* ???? */
.billing-table th:nth-child(5) { width: 100px; } /* ???? */
.billing-table th:nth-child(6) { width: 90px; } /* ???? */
.billing-table th:nth-child(7) { width: 100px; } /* ?????? */
.billing-table th:nth-child(8) { width: 90px; } /* ???? */
.billing-table th:nth-child(9) { width: 100px; } /* ?????? */
.billing-table th:nth-child(10) { width: 100px; } /* ?????? */
.billing-table th:nth-child(11) { width: 90px; } /* ??? */
.billing-table th:nth-child(12) { width: 110px; } /* ??????? */
.billing-table th:nth-child(13) { width: 110px; } /* ??????? */

/* ???????????? */
.billing-table td:nth-child(n+6) {
    text-align: right;
}

/* ?????????????? */
.billing-table th:nth-child(n+6) {
    text-align: right;
}

/* ???????????? */
.billing-table {
    font-size: 12px;
}

.billing-table th {
    font-size: 12px;
    padding: 10px 8px;
}

.billing-table td {
    padding: 10px 8px;
    font-size: 12px;
}
/* ??????????? */
.billing-table tbody tr[style*="cursor: pointer"]:hover {
    background: rgba(0, 201, 255, 0.1) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 201, 255, 0.15);
}

.billing-table tbody tr[style*="cursor: pointer"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 201, 255, 0.2);
}

/* ??????????? */
.modal[style*="max-width: 900px"] .data-table {
    font-size: 13px;
}

.modal[style*="max-width: 900px"] .data-table th,
.modal[style*="max-width: 900px"] .data-table td {
    padding: 10px 12px;
}

.modal[style*="max-width: 900px"] .data-table th:nth-child(1) { width: 60px; } /* ?? */
.modal[style*="max-width: 900px"] .data-table th:nth-child(2) { width: 120px; } /* ???? */
.modal[style*="max-width: 900px"] .data-table th:nth-child(3) { width: 120px; } /* ???? */
.modal[style*="max-width: 900px"] .data-table th:nth-child(4) { width: 120px; } /* ???? */
.modal[style*="max-width: 900px"] .data-table th:nth-child(5) { width: 150px; } /* ???? */
.modal[style*="max-width: 900px"] .data-table th:nth-child(6) { width: 150px; } /* ???? */

/* ?????????? */
.modal[style*="max-width: 900px"] .data-table td:nth-child(4) {
    text-align: right;
}

.modal[style*="max-width: 900px"] .data-table th:nth-child(4) {
    text-align: right;
}

/* ?????????? */
.billing-table {
    font-size: 11px;
    table-layout: fixed;
}

.billing-table th {
    padding: 6px 4px;
    font-size: 11px;
    white-space: nowrap;
    line-height: 1.2;
}

.billing-table td {
    padding: 6px 4px;
    font-size: 11px;
    line-height: 1.2;
    word-wrap: break-word;
}

.billing-table th,
.billing-table td {
    text-align: center !important;
    vertical-align: middle;
}

.billing-table .text-center {
    text-align: center !important;
}

.billing-table .text-center div {
    text-align: center !important;
}

.billing-table .text-center strong {
    text-align: center !important;
    display: block;
}

/* ??????????????? */
@media (max-width: 1400px) {
    .billing-table th {
        padding: 4px 2px;
        font-size: 10px;
    }
    
    .billing-table td {
        padding: 4px 2px;
        font-size: 10px;
    }
}

@media (max-width: 1200px) {
    .billing-table {
        font-size: 9px;
    }
    
    .billing-table th {
        padding: 3px 1px;
        font-size: 9px;
    }
    
    .billing-table td {
        padding: 3px 1px;
        font-size: 9px;
    }
}
}
/* ????????? */
.formula-section {
    margin-bottom: 20px;
}

.formula-box {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
}

.formula-text {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.formula-explanation {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.formula-notes {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--warning);
    border-radius: 4px;
    padding: 16px;
}

.formula-notes ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.formula-notes li {
    margin-bottom: 4px;
}
/* ??????????? - ???? */
.settlement-modal {
    max-height: 90vh;
    overflow-y: auto;
}

.settlement-modal-body {
    padding: 16px;
}

.settlement-compact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.settlement-left-column,
.settlement-right-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ?????? */
.compact-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px;
}

.compact-info-card h4 {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.compact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 12px;
}

.compact-info-grid div {
    color: var(--text-light);
}

.compact-info-grid strong {
    color: var(--text-secondary);
    margin-right: 4px;
}

/* ?????? */
.compact-revenue-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px;
}

.compact-revenue-card h4 {
    color: var(--success);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.compact-revenue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.revenue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    background: rgba(0, 0, 0, 0.2);
}

.revenue-item span {
    color: var(--text-secondary);
}

.revenue-item strong {
    font-weight: bold;
}

.revenue-item.success strong {
    color: var(--success);
}

.revenue-item.warning strong {
    color: var(--warning);
}

.revenue-item.info strong {
    color: var(--info);
}

.revenue-item.error strong {
    color: var(--error);
}

/* ???? */
.compact-calculation-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px;
}

.compact-calculation-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calculation-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calc-step,
.calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
}

.calc-step span:first-child,
.calc-result span:first-child {
    color: var(--text-secondary);
}

.calc-step span:last-child {
    color: var(--text-light);
    font-weight: 500;
}

.calc-result {
    background: rgba(0, 201, 255, 0.1);
    border: 1px solid rgba(0, 201, 255, 0.3);
    margin-top: 4px;
}

.calc-result strong {
    font-size: 13px;
}

/* ?????? */
.settlement-confirm-area {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.final-amounts {
    display: flex;
    justify-content: space-around;
    margin-bottom: 16px;
}

.final-amount-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.final-amount-item span {
    color: var(--text-secondary);
    font-size: 12px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 14px;
}

/* ????? */
@media (max-width: 900px) {
    .settlement-compact-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .compact-info-grid,
    .compact-revenue-grid {
        grid-template-columns: 1fr;
    }
    
    .final-amounts {
        flex-direction: column;
        gap: 12px;
    }
    
    .confirm-buttons {
        flex-direction: column;
    }
}


/* Vue ???? - ???? */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter, .fade-leave-to {
    opacity: 0;
}


/* ?????? */
.bound-projects-panel .list-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bound-projects-panel .search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.bound-projects-panel .search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.bound-projects-panel .search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.bound-projects-panel .search-box input::placeholder {
    color: var(--text-muted);
}

.bound-projects-panel .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 201, 255, 0.05);
    box-shadow: 0 0 8px rgba(0, 201, 255, 0.1);
}

.bound-projects-panel .btn-action {
    white-space: nowrap;
}

/* ?????? */
.bound-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 201, 255, 0.15);
    border-color: rgba(0, 201, 255, 0.3);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.project-card-header h3 {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
    flex: 1;
    word-break: break-word;
}

.btn-copy {
    background: rgba(0, 201, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 201, 255, 0.2);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: rgba(0, 201, 255, 0.2);
    border-color: rgba(0, 201, 255, 0.4);
}

.project-card-body {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.project-count {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-count strong {
    color: var(--accent);
    font-weight: 600;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.detail-label {
    color: var(--text-secondary);
    min-width: 60px;
}

.detail-value {
    color: var(--text-light);
    flex: 1;
    word-break: break-word;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading-state .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid rgba(0, 201, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@media (max-width: 768px) {
    .bound-projects-panel .list-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bound-projects-panel .search-box {
        min-width: 100%;
    }
    
    .bound-projects-panel .btn-action {
        width: 100%;
    }
    
    .bound-projects-grid {
        grid-template-columns: 1fr;
    }
}


/* ???????? */
.project-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-action-info {
    background: linear-gradient(135deg, rgba(0, 201, 255, 0.2), rgba(52, 152, 219, 0.2));
    color: var(--accent);
    border: 1px solid rgba(0, 201, 255, 0.3);
    flex: 1;
    transition: all 0.2s ease;
}

.btn-action-info:hover {
    background: linear-gradient(135deg, rgba(0, 201, 255, 0.3), rgba(52, 152, 219, 0.3));
    border-color: rgba(0, 201, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 201, 255, 0.2);
}

.btn-action-sync {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
    flex: 1;
    transition: all 0.2s ease;
}

.btn-action-sync:hover {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.3), rgba(39, 174, 96, 0.3));
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.2);
}

.btn-action-info:disabled,
.btn-action-sync:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #cccccc !important;
    border-color: #999999 !important;
    color: #666666 !important;
}

.btn-disabled:hover {
    background: #cccccc !important;
    border-color: #999999 !important;
    transform: none !important;
}


/* ?????? hover ???? */
.data-table tbody tr:hover {
    background: transparent !important;
}

.data-table tbody tr:hover .status-badge-compact {
    box-shadow: none !important;
}

.my-tasks-table tbody tr:hover {
    background: transparent !important;
}


/* ==================== ?????? ==================== */

/* ?????? */
.highlight-status-1 {
    background: linear-gradient(135deg, 
        rgba(243, 156, 18, 0.2) 0%, 
        rgba(241, 196, 15, 0.1) 100%);
    color: var(--warning);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.highlight-status-2 {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.highlight-status-3 {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.2) 0%, 
        rgba(192, 57, 43, 0.1) 100%);
    color: var(--error);
    border: 1px solid rgba(231, 76, 60, 0.3);
}


/* ==================== ????????? ==================== */

.highlight-list-panel .highlight-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.highlight-list-panel .highlight-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 16px;
    pointer-events: none;
}

.highlight-list-panel .highlight-search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: linear-gradient(135deg, 
        rgba(0, 201, 255, 0.08) 0%, 
        rgba(52, 152, 219, 0.05) 100%);
    border: 2px solid rgba(0, 201, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.highlight-list-panel .highlight-search-box input::placeholder {
    color: var(--text-muted);
}

.highlight-list-panel .highlight-search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: linear-gradient(135deg, 
        rgba(0, 201, 255, 0.15) 0%, 
        rgba(52, 152, 219, 0.1) 100%);
    box-shadow: 
        0 0 0 4px rgba(0, 201, 255, 0.1),
        0 4px 20px rgba(0, 201, 255, 0.2);
    transform: translateY(-1px);
}

.highlight-list-panel .highlight-search-box input:hover {
    border-color: rgba(0, 201, 255, 0.4);
    background: linear-gradient(135deg, 
        rgba(0, 201, 255, 0.12) 0%, 
        rgba(52, 152, 219, 0.08) 100%);
}

/* ??????????? */
.highlight-list-panel .highlight-filter-select {
    padding: 12px 16px;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.08) 0%, 
        rgba(26, 42, 68, 0.05) 100%);
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    min-width: 140px;
}

.highlight-list-panel .highlight-filter-select:hover {
    border-color: var(--secondary);
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.12) 0%, 
        rgba(26, 42, 68, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.highlight-list-panel .highlight-filter-select:focus {
    outline: none;
    border-color: var(--accent);
    background: linear-gradient(135deg, 
        rgba(0, 201, 255, 0.15) 0%, 
        rgba(52, 152, 219, 0.1) 100%);
    box-shadow: 
        0 0 0 4px rgba(0, 201, 255, 0.1),
        0 4px 20px rgba(0, 201, 255, 0.2);
}

.highlight-list-panel .data-table td.highlight-remark-cell,
.highlight-list-panel .data-table td:nth-child(7) {
    min-width: 280px;
    max-width: 420px;
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.55;
    color: var(--text-secondary);
    vertical-align: top;
}

.highlight-list-panel .highlight-filter-select option {
    background: var(--primary-dark);
    color: var(--text-primary);
    padding: 8px 12px;
}

/* ????? */
@media (max-width: 1024px) {
    .highlight-list-panel .highlight-search-box {
        min-width: 200px;
    }
    
    .highlight-list-panel .highlight-filter-select {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .highlight-list-panel .list-actions-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .highlight-list-panel .highlight-search-box {
        width: 100%;
        min-width: 100%;
    }
    
    .highlight-list-panel .highlight-filter-select {
        width: 100%;
        min-width: 100%;
    }
}


/* ==================== ?????? ==================== */

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 
        var(--shadow-md),
        0 4px 20px rgba(231, 76, 60, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 32px rgba(231, 76, 60, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

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

/* ????? */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================== ???????? ==================== */

.nav-actions {
    align-items: center;
    flex-wrap: wrap;
}

.modal-overlay {
    background: var(--modal-overlay-bg);
}

.modal {
    background: var(--modal-bg);
    border: 1px solid var(--modal-border);
    box-shadow: var(--glass-shadow), var(--modal-glow);
}

.modal-header {
    background: var(--modal-header-bg);
    border-bottom: 1px solid var(--modal-header-border);
}

.close-btn {
    background: var(--modal-close-bg);
    color: var(--modal-close-color);
}

:root[data-theme="light"] .modal .btn-outline {
    background: #f4f8ff;
    border: 1px solid rgba(160, 178, 208, 0.55);
    color: #48607f;
    box-shadow: none;
}

:root[data-theme="light"] .modal .btn-outline:hover {
    background: #eaf2ff;
    border-color: rgba(47, 122, 229, 0.28);
    color: #234a84;
}

.note-modal .modal-body {
    padding: 24px;
}

.note-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.note-meta-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
}

.note-meta-label,
.note-content-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.note-meta-value {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.note-title-value {
    font-weight: 600;
}

.note-content-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 20px;
}

.note-content-text {
    white-space: pre-wrap;
    color: var(--text-light);
    line-height: 1.85;
    font-size: 14px;
    max-height: 420px;
    overflow-y: auto;
    word-break: break-word;
}

.note-content-textarea {
    width: 100%;
    min-height: 280px;
    max-height: 420px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(15, 26, 47, 0.35);
    padding: 12px 14px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.note-content-loading {
    padding: 40px 12px;
    text-align: center;
    color: var(--text-muted);
}

.note-content-len {
    font-weight: normal;
    color: var(--text-muted);
    margin-left: 4px;
}

.note-actions {
    margin-top: 18px;
}

@media (max-width: 768px) {
    .note-meta-grid {
        grid-template-columns: 1fr;
    }

    .note-modal .modal-body {
        padding: 18px 16px;
    }
}

.sidebar-header {
    background: var(--sidebar-header-bg);
    border-bottom: 1px solid var(--sidebar-header-border);
    backdrop-filter: blur(12px);
}

.sidebar-header .logo {
    box-shadow: var(--sidebar-logo-shadow);
}

.user-welcome {
    color: var(--sidebar-welcome-color);
}

:root[data-theme="light"] .project-notice-dot {
    background: rgba(201, 120, 0, 0.22);
}

:root[data-theme="light"] .project-notice-dot.active {
    background: linear-gradient(135deg, #ffad33 0%, #ff7a00 100%);
}

:root[data-theme="light"] .project-notice-banner {
    border: 1px solid rgba(255, 179, 71, 0.38);
    background:
        radial-gradient(circle at right top, rgba(255, 196, 87, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(255, 248, 235, 0.98) 0%, rgba(255, 241, 219, 0.96) 100%);
    box-shadow: 0 12px 26px rgba(255, 166, 0, 0.1);
}

:root[data-theme="light"] .project-notice-banner::before {
    background: linear-gradient(180deg, #ffcf66 0%, #ff9f1c 100%);
    box-shadow: 0 0 14px rgba(255, 177, 66, 0.24);
}

:root[data-theme="light"] .project-notice-badge {
    color: #fffaf0;
    background: linear-gradient(135deg, #ffad33 0%, #ff7a00 100%);
    box-shadow: 0 10px 20px rgba(255, 138, 0, 0.18);
}

:root[data-theme="light"] .project-notice-title {
    color: #c97800;
}

:root[data-theme="light"] .project-notice-text {
    color: #8a5a12;
}

:root[data-theme="light"] .project-notice-banner--red {
    border: 1px solid rgba(231, 76, 60, 0.35);
    background:
        radial-gradient(circle at right top, rgba(255, 138, 128, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 245, 245, 0.98) 0%, rgba(255, 235, 235, 0.96) 100%);
    box-shadow: 0 12px 26px rgba(231, 76, 60, 0.1);
}

:root[data-theme="light"] .project-notice-banner--red::before {
    background: linear-gradient(180deg, #ff9a9a 0%, #e74c3c 100%);
    box-shadow: 0 0 14px rgba(231, 76, 60, 0.22);
}

:root[data-theme="light"] .project-notice-banner--red .project-notice-badge {
    color: #fff5f5;
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.18);
}

:root[data-theme="light"] .project-notice-banner--red .project-notice-title {
    color: #c0392b;
}

:root[data-theme="light"] .project-notice-banner--red .project-notice-text {
    color: #922b21;
}

.modal-upload {
    max-width: 1320px;
    width: min(1320px, calc(100vw - 40px));
    max-height: min(92vh, 900px);
}

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

.modal-upload .upload-form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-upload .upload-form-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 24px;
    align-items: start;
}

.modal-upload .form-group {
    min-width: 0;
    width: 100%;
    gap: 8px;
    margin-bottom: 0;
    overflow: hidden;
}

.modal-upload .form-group.manmi-autocomplete {
    overflow: visible;
    z-index: 220;
}

:root[data-theme="light"] .manmi-suggestion-list {
    background: #ffffff;
    border: 1px solid rgba(160, 178, 208, 0.42);
    box-shadow: 0 14px 30px rgba(50, 86, 145, 0.16);
}

:root[data-theme="light"] .manmi-suggestion-item {
    color: #1f3252;
}

:root[data-theme="light"] .manmi-suggestion-item:hover {
    background: rgba(47, 122, 229, 0.08);
}

:root[data-theme="light"] .manmi-suggestion-loading {
    color: #5c7190;
}

.modal-upload .form-group label {
    min-height: 22px;
    font-size: 13px;
}

.modal-upload .form-group input,
.modal-upload .form-group select,
.modal-upload .form-group textarea {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.modal-upload .form-group input,
.modal-upload .form-group select {
    height: 48px;
    min-height: 48px;
    line-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 10px;
}

.modal-upload .form-group select {
    line-height: normal;
}

.modal-upload .form-group textarea {
    height: auto;
    min-height: 72px;
    line-height: 1.5;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 10px;
    resize: vertical;
}

:root[data-theme="light"] .modal-upload .form-group input,
:root[data-theme="light"] .modal-upload .form-group select,
:root[data-theme="light"] .modal-upload .form-group textarea,
:root[data-theme="light"] .modal-upload .form-control,
:root[data-theme="light"] .modal-upload select.form-control,
:root[data-theme="light"] .modal-upload textarea.form-control {
    background: #f7faff !important;
    border: 1px solid rgba(166, 184, 214, 0.48) !important;
    color: #1e314f !important;
    box-shadow: inset 0 1px 2px rgba(31, 60, 110, 0.04) !important;
}

:root[data-theme="light"] .modal-upload .form-group input::placeholder,
:root[data-theme="light"] .modal-upload .form-group textarea::placeholder,
:root[data-theme="light"] .modal-upload textarea.form-control::placeholder {
    color: #8a9ab2 !important;
}

:root[data-theme="light"] .modal-upload .form-group input:focus,
:root[data-theme="light"] .modal-upload .form-group select:focus,
:root[data-theme="light"] .modal-upload .form-group textarea:focus,
:root[data-theme="light"] .modal-upload .form-control:focus {
    background: #ffffff !important;
    border-color: #5d9dff !important;
    box-shadow:
        0 0 0 4px rgba(93, 157, 255, 0.15),
        0 10px 24px rgba(47, 122, 229, 0.12) !important;
}

:root[data-theme="light"] .modal-upload select.form-control:disabled,
:root[data-theme="light"] .modal-upload .form-group select:disabled {
    background: #eef2f8 !important;
    color: #8a9ab2 !important;
    border-color: rgba(166, 184, 214, 0.4) !important;
}

.modal-upload .form-actions {
    margin-top: 0;
    position: static;
    padding-top: 16px;
    padding-bottom: 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .modal-upload .form-actions {
    background: transparent;
}

.modal-upload .form-actions .btn {
    min-height: 44px;
    flex: 0 0 240px;
    max-width: 240px;
}

.modal-upload .form-actions {
    justify-content: center;
}

.modal-upload .form-actions .btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-light);
}

.modal-upload .form-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
}

:root[data-theme="light"] .modal-upload .form-actions .btn-outline {
    background: #f4f8ff;
    border: 1px solid rgba(160, 178, 208, 0.55);
    color: #48607f;
    box-shadow: none;
}

:root[data-theme="light"] .modal-upload .form-actions .btn-outline:hover {
    background: #eaf2ff;
    border-color: rgba(47, 122, 229, 0.28);
    color: #234a84;
}

@media (max-width: 1100px) {
    .modal-upload {
        max-width: 980px;
        width: min(980px, calc(100vw - 32px));
    }

    .modal-upload .upload-form-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .modal-upload {
        width: calc(100vw - 24px);
        max-height: 90vh;
    }

    .modal-upload .modal-body {
        padding: 20px 16px 18px;
    }

    .modal-upload .upload-form-fields {
        grid-template-columns: 1fr;
    }

    .modal-upload .form-actions .btn {
        flex: 1 1 auto;
        max-width: none;
    }
}

.btn-theme-toggle {
    min-width: 118px;
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.18) 0%, rgba(14, 165, 233, 0.14) 100%);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-theme-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.28) 0%, rgba(14, 165, 233, 0.2) 100%);
    box-shadow: var(--shadow-md);
}

:root[data-theme="light"] .btn-theme-toggle {
    border-color: rgba(47, 122, 229, 0.18);
}

.content-area::before {
    background:
        radial-gradient(circle at 10% 20%, var(--content-glow-a) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, var(--content-glow-b) 0%, transparent 50%);
}

.data-table thead {
    background: var(--table-head-bg);
}

.data-table th {
    border-bottom: 1px solid var(--thead-border);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--table-border);
}

.data-table tbody tr:hover {
    background: var(--table-row-hover);
}

.data-table td {
    border-bottom: 1px solid var(--table-border);
}

/* ==================== ??????????? ==================== */
:root[data-theme="light"] .auth-container {
    background: linear-gradient(135deg, #f6f9ff 0%, #eef4ff 52%, #dfeaff 100%);
}

:root[data-theme="light"] .auth-box {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(160, 178, 208, 0.34);
    box-shadow: 0 24px 60px rgba(41, 72, 128, 0.16);
}

:root[data-theme="light"] .logo-section {
    background: linear-gradient(135deg, rgba(227, 238, 255, 0.96) 0%, rgba(205, 223, 252, 0.92) 55%, rgba(222, 232, 249, 0.96) 100%);
}

:root[data-theme="light"] .logo-section::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(47, 122, 229, 0.1) 0%, transparent 50%);
}

:root[data-theme="light"] .logo-section h1 {
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: initial;
    color: #1d5f9f;
}

:root[data-theme="light"] .subtitle {
    color: #7084a3;
    opacity: 1;
}

:root[data-theme="light"] .auth-tabs {
    background: #ffffff;
}

:root[data-theme="light"] .tab-headers {
    background: #eef3fb;
    border: 1px solid rgba(166, 184, 214, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

:root[data-theme="light"] .tab-btn {
    color: #7284a0;
}

:root[data-theme="light"] .tab-btn.active {
    color: #183150;
}

:root[data-theme="light"] .tab-btn:hover {
    color: #234a84;
}

:root[data-theme="light"] .form-group label {
    color: #233654;
}

:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea,
:root[data-theme="light"] .form-control,
:root[data-theme="light"] select.form-control,
:root[data-theme="light"] textarea.form-control {
    background: #f7faff;
    border: 1px solid rgba(166, 184, 214, 0.48);
    color: #1e314f;
    box-shadow: inset 0 1px 2px rgba(31, 60, 110, 0.04);
}

:root[data-theme="light"] .form-group input::placeholder,
:root[data-theme="light"] .form-group textarea::placeholder,
:root[data-theme="light"] .form-control::placeholder,
:root[data-theme="light"] textarea.form-control::placeholder {
    color: #8a9ab2;
}

:root[data-theme="light"] .form-group input:focus,
:root[data-theme="light"] .form-group select:focus,
:root[data-theme="light"] .form-group textarea:focus,
:root[data-theme="light"] .form-control:focus,
:root[data-theme="light"] select.form-control:focus,
:root[data-theme="light"] textarea.form-control:focus {
    background: #ffffff;
    border-color: #5d9dff;
    box-shadow:
        0 0 0 4px rgba(93, 157, 255, 0.15),
        0 10px 24px rgba(47, 122, 229, 0.12);
}

:root[data-theme="light"] .form-group select:hover,
:root[data-theme="light"] .form-control:hover,
:root[data-theme="light"] select.form-control:hover,
:root[data-theme="light"] textarea.form-control:hover {
    border-color: rgba(93, 157, 255, 0.55);
}

:root[data-theme="light"] select.form-control option,
:root[data-theme="light"] .form-group select option {
    background: #ffffff;
    color: #1e314f;
}

:root[data-theme="light"] select.form-control:disabled,
:root[data-theme="light"] .form-group select:disabled {
    background: #eef2f8;
    color: #8a9ab2;
    border-color: rgba(166, 184, 214, 0.4);
    opacity: 1;
}

:root[data-theme="light"] .toggle-password {
    color: #8092ad;
    border-left-color: rgba(166, 184, 214, 0.48);
}

:root[data-theme="light"] .toggle-password:hover {
    color: #2f7ae5;
    background: rgba(47, 122, 229, 0.08);
}

:root[data-theme="light"] .auth-footer {
    color: #7688a5;
    border-top: 1px solid rgba(166, 184, 214, 0.32);
    background: linear-gradient(180deg, #fbfdff 0%, #f2f6fd 100%);
}

/* ==================== ???? ==================== */
.copyright-view-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.copyright-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copyright-view-tab:hover,
.copyright-view-tab.active {
    color: #fff;
    border-color: rgba(52, 152, 219, 0.45);
    background: rgba(52, 152, 219, 0.18);
}

.copyright-view-tab-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.9);
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.copyright-action-group {
    display: inline-flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
}

.copyright-admin-actions {
    min-width: 108px;
}

.copyright-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-width: 72px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.55);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.copyright-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fanqie-level-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.fanqie-level-potential {
    color: #7dcea0;
    background: rgba(46, 204, 113, 0.16);
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.fanqie-level-premium {
    color: #f5c16c;
    background: rgba(243, 156, 18, 0.16);
    border: 1px solid rgba(243, 156, 18, 0.45);
}

.fanqie-level-classic {
    color: #c39bd3;
    background: rgba(155, 89, 182, 0.16);
    border: 1px solid rgba(155, 89, 182, 0.45);
}

.copyright-action-btn i {
    font-size: 11px;
    opacity: 0.9;
}

.copyright-action-btn:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.45);
    color: #e2e8f0;
}

.copyright-action-btn.active {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.12);
}

.copyright-action-btn.active:hover {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(251, 191, 36, 0.18);
}

/* ???????? */
.copyright-action-btn.is-approve {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.28);
}

.copyright-action-btn.is-approve:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
}

.copyright-action-btn.is-reject {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.28);
}

.copyright-action-btn.is-reject:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
}

.copyright-action-btn.is-reject-soft {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
}

.copyright-action-btn.is-reject-soft:hover {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.7);
    background: rgba(239, 68, 68, 0.22);
}

.copyright-action-btn.is-handle {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.28);
}

.copyright-action-btn.is-handle:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
}

.copyright-action-btn.is-secondary {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(51, 65, 85, 0.45);
}

.copyright-action-btn.is-secondary:hover {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.55);
    background: rgba(71, 85, 105, 0.55);
}

.copyright-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copyright-detail-actions .copyright-action-btn {
    min-width: auto;
    height: 32px;
    padding: 0 12px;
}

:root[data-theme="light"] .copyright-action-btn {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(100, 116, 139, 0.28);
    color: #475569;
}

:root[data-theme="light"] .copyright-action-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.35);
    color: #1e293b;
}

:root[data-theme="light"] .copyright-action-btn.active {
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.4);
    background: rgba(251, 191, 36, 0.14);
}

:root[data-theme="light"] .copyright-action-btn.is-approve {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

:root[data-theme="light"] .copyright-action-btn.is-approve:hover {
    color: #fff;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
}

:root[data-theme="light"] .copyright-action-btn.is-reject {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

:root[data-theme="light"] .copyright-action-btn.is-reject:hover {
    color: #fff;
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
}

:root[data-theme="light"] .copyright-action-btn.is-reject-soft {
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(254, 226, 226, 0.95);
}

:root[data-theme="light"] .copyright-action-btn.is-reject-soft:hover {
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.55);
    background: rgba(254, 202, 202, 0.95);
}

:root[data-theme="light"] .copyright-action-btn.is-handle {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

:root[data-theme="light"] .copyright-action-btn.is-handle:hover {
    color: #fff;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
}

:root[data-theme="light"] .copyright-action-btn.is-secondary {
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.45);
    background: #f8fafc;
}

:root[data-theme="light"] .copyright-action-btn.is-secondary:hover {
    color: #334155;
    border-color: rgba(100, 116, 139, 0.5);
    background: #f1f5f9;
}

.copyright-favorite-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

.copyright-favorite-btn:hover,
.copyright-favorite-btn.active {
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.45);
    background: rgba(255, 193, 7, 0.12);
}

.copyright-panel .list-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.copyright-panel .search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}

.copyright-panel .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.copyright-panel .search-box input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 16px 0 44px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 42px;
    color: var(--text-primary);
    transition: var(--transition);
}

.copyright-panel .search-box input::placeholder {
    color: var(--text-muted);
}

.copyright-panel .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow:
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

.copyright-panel .filter-select {
    height: 42px;
    box-sizing: border-box;
    padding: 0 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.copyright-panel .copyright-category-select {
    min-width: 140px;
    max-width: 180px;
}

.copyright-panel .filter-select:hover {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

.copyright-panel .filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px rgba(0, 201, 255, 0.1),
        0 4px 16px rgba(0, 201, 255, 0.15);
}

.copyright-panel .filter-select option {
    background: var(--primary-dark);
    color: var(--text-primary);
    padding: 10px;
}

.copyright-panel .list-actions-row .btn {
    height: 42px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .copyright-panel .list-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .copyright-panel .search-box {
        max-width: none;
    }

    .copyright-panel .filter-select,
    .copyright-panel .list-actions-row .btn {
        width: 100%;
    }
}

.copyright-panel .copyright-table {
    table-layout: fixed;
    width: 100%;
}

/* ?????????????? data-table ?7? min-width ????? */
.copyright-panel .copyright-table th,
.copyright-panel .copyright-table td {
    padding: 10px 8px;
    vertical-align: middle;
    min-width: 0 !important;
    white-space: normal;
}

.copyright-panel .copyright-table th:nth-child(1),
.copyright-panel .copyright-table td:nth-child(1) {
    width: 76px;
}

.copyright-panel .copyright-table th:nth-child(2),
.copyright-panel .copyright-table td:nth-child(2) {
    width: 24%;
}

.copyright-panel .copyright-table th:nth-child(3),
.copyright-panel .copyright-table td:nth-child(3) {
    width: 9%;
}

.copyright-panel .copyright-table th:nth-child(4),
.copyright-panel .copyright-table td:nth-child(4) {
    width: 14%;
}

.copyright-panel .copyright-table th:nth-child(5),
.copyright-panel .copyright-table td:nth-child(5) {
    width: 7%;
}

.copyright-panel .copyright-table th:nth-child(6),
.copyright-panel .copyright-table td:nth-child(6) {
    width: 7%;
}

.copyright-panel .copyright-table th:nth-child(7),
.copyright-panel .copyright-table td:nth-child(7) {
    width: 8%;
}

.copyright-panel .copyright-table th:nth-child(8),
.copyright-panel .copyright-table td:nth-child(8) {
    width: 8%;
}

.copyright-panel .copyright-table th:nth-child(9),
.copyright-panel .copyright-table td:nth-child(9) {
    width: 96px;
    white-space: nowrap;
}

.copyright-panel .copyright-table th {
    text-align: center;
}

.copyright-panel .copyright-table th:nth-child(2) {
    text-align: left;
    padding-left: 12px;
}

.copyright-panel .copyright-cover {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.copyright-panel .copyright-title {
    text-align: left;
    padding-left: 12px;
    padding-right: 8px;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copyright-panel .copyright-category {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copyright-panel .copyright-meta {
    font-size: 12px;
}

.copyright-backfill-cell {
    text-align: left;
    vertical-align: middle;
    min-width: 200px;
    max-width: none;
}

.copyright-backfill-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
}

.copyright-backfill-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    line-height: 1.45;
}

.copyright-apply-info-cell .copyright-backfill-row {
    grid-template-columns: 52px minmax(0, 1fr);
}

.copyright-backfill-label {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    padding-top: 1px;
}

.copyright-backfill-value {
    color: var(--text-light);
    font-size: 13px;
    word-break: break-word;
    min-width: 0;
}

.copyright-backfill-value.empty {
    color: var(--text-muted);
    opacity: 0.85;
}

.copyright-backfill-sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.9;
}

.copyright-backfill-value .copyright-video-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.copyright-panel .copyright-table .btn-sm {
    padding: 6px 12px;
}

.copyright-panel .copyright-table .copyright-action-btn {
    box-shadow: none;
}

/* ??????=????????=???? */
.copyright-action-btn.copyright-ms-unset {
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.55);
    background: rgba(249, 115, 22, 0.14);
}

.copyright-action-btn.copyright-ms-unset:hover:not(:disabled) {
    color: #ffedd5;
    border-color: rgba(251, 146, 60, 0.75);
    background: rgba(249, 115, 22, 0.24);
}

.copyright-action-btn.copyright-ms-set {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.14);
}

.copyright-action-btn.copyright-ms-set:hover:not(:disabled) {
    color: #dcfce7;
    border-color: rgba(74, 222, 128, 0.75);
    background: rgba(34, 197, 94, 0.24);
}

.copyright-action-btn.copyright-ms-unset:disabled,
.copyright-action-btn.copyright-ms-set:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

:root[data-theme="light"] .copyright-action-btn.copyright-ms-unset {
    color: #c2410c;
    border-color: rgba(234, 88, 12, 0.45);
    background: rgba(255, 237, 213, 0.9);
}

:root[data-theme="light"] .copyright-action-btn.copyright-ms-set {
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.45);
    background: rgba(220, 252, 231, 0.95);
}

.copyright-panel .page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px;
}

.copyright-panel .page-jump span {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.copyright-panel .page-jump input {
    width: 72px;
    height: 36px;
    padding: 0 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
}

.copyright-panel .page-jump input:focus {
    outline: none;
    border-color: var(--accent);
}

.copyright-panel .page-jump-btn {
    padding: 8px 14px;
    font-size: 13px;
}

.copyright-video-link {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--accent);
    text-decoration: none;
    vertical-align: middle;
}

.copyright-video-link:hover {
    text-decoration: underline;
}

.copyright-video-empty {
    color: var(--text-muted);
}

.copyright-apply-table th,
.copyright-apply-table td {
    font-size: 13px;
}

/* ???????????(76px)?????????? */
.copyright-panel .copyright-apply-table th:nth-child(1),
.copyright-panel .copyright-apply-table td:nth-child(1) {
    width: 24% !important;
    min-width: 200px !important;
    max-width: none;
    text-align: left !important;
    padding-left: 14px !important;
    padding-right: 10px;
}

.copyright-panel .copyright-apply-table th:nth-child(2),
.copyright-panel .copyright-apply-table td:nth-child(2) {
    width: 30% !important;
    min-width: 240px !important;
    text-align: left !important;
    padding-left: 10px !important;
}

.copyright-panel .copyright-apply-table th:nth-child(3),
.copyright-panel .copyright-apply-table td:nth-child(3),
.copyright-panel .copyright-apply-table th:nth-child(4),
.copyright-panel .copyright-apply-table td:nth-child(4) {
    width: 11% !important;
    min-width: 100px !important;
    white-space: nowrap;
    text-align: center !important;
}

.copyright-panel .copyright-apply-table th:nth-child(5),
.copyright-panel .copyright-apply-table td:nth-child(5) {
    width: 12% !important;
    min-width: 120px !important;
    white-space: nowrap;
    text-align: center !important;
}

.copyright-panel .copyright-apply-table th:nth-child(6),
.copyright-panel .copyright-apply-table td:nth-child(6) {
    width: 120px !important;
    white-space: nowrap;
    text-align: center !important;
}

.copyright-panel .copyright-apply-table td[colspan] {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
    padding: 40px 14px !important;
    white-space: normal !important;
}

.copyright-apply-info-cell .copyright-backfill-label {
    width: auto;
}

.copyright-applicant-login {
    color: var(--accent);
    font-weight: 600;
}

.copyright-book-name {
    font-weight: 500;
    color: var(--text-light);
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
}

:root[data-theme="light"] .copyright-applicant-login {
    color: #2563eb;
}

.type-badge.type-6 {
    background: linear-gradient(135deg,
        rgba(0, 102, 255, 0.2) 0%,
        rgba(0, 68, 204, 0.1) 100%);
    color: #4d94ff;
    border: 1px solid rgba(0, 102, 255, 0.35);
}

/* ???????? */
.top-nav-notice {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 16px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15) 0%, rgba(192, 57, 43, 0.1) 100%);
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: 8px;
    min-width: 0;
}

.top-nav-notice i {
    color: #e74c3c;
    font-size: 14px;
    flex-shrink: 0;
}

.top-nav-notice span {
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1200px) {
    .top-nav-notice span {
        white-space: normal;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .top-nav-notice {
        order: 3;
        width: 100%;
        margin: 0;
    }
}

/* ??????? */
.sidebar-header .sidebar-brand-icon {
    border-radius: 18px;
    object-fit: contain;
    padding: 4px;
    background: #fff;
}

:root[data-theme="light"] .sidebar-header .sidebar-brand-icon {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(160, 178, 208, 0.35);
}
/* ==================== ?????? ==================== */
.overseas-panel {
    padding: 4px 2px 20px;
}

.overseas-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.overseas-header-main h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.overseas-header-main h2 i {
    color: var(--accent);
}

.overseas-subtitle {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.overseas-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.overseas-search {
    position: relative;
    width: min(360px, 70vw);
}

.overseas-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.overseas-search input {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(120, 150, 190, 0.28);
    background: rgba(255, 255, 255, 0.72);
    padding: 0 12px 0 34px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="dark"] .overseas-search input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
}

.overseas-search input:focus {
    border-color: rgba(52, 152, 219, 0.55);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.overseas-refresh-btn {
    height: 38px;
    border-radius: 10px;
    padding: 0 14px;
}

.overseas-summary {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.overseas-summary strong {
    color: var(--accent);
    font-weight: 700;
}

.overseas-summary-dot {
    margin: 0 6px;
    opacity: 0.5;
}

.overseas-list {
    border: 1px solid rgba(120, 150, 190, 0.22);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
}

:root[data-theme="dark"] .overseas-list {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.overseas-list-head,
.overseas-row {
    display: grid;
    grid-template-columns: minmax(280px, 2.2fr) 140px 110px 140px 130px 100px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
}

.overseas-list-head {
    background: linear-gradient(180deg, rgba(90, 140, 210, 0.12), rgba(90, 140, 210, 0.05));
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(120, 150, 190, 0.18);
}

.overseas-list-head span {
    text-align: center;
}

.overseas-list-head .col-name {
    text-align: left;
}

.overseas-row {
    border-bottom: 1px solid rgba(120, 150, 190, 0.12);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.overseas-row:last-child {
    border-bottom: none;
}

.overseas-row:hover {
    background: rgba(52, 152, 219, 0.08);
}

.overseas-row .col-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.overseas-cover-wrap {
    flex-shrink: 0;
}

.overseas-cover {
    width: 52px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    box-shadow: 0 6px 14px rgba(20, 40, 80, 0.18);
    background: rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overseas-row:hover .overseas-cover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 10px 18px rgba(20, 40, 80, 0.22);
}

.overseas-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
}

.overseas-meta {
    min-width: 0;
}

.overseas-title {
    font-size: 14px;
    font-weight: 650;
    color: var(--text-light);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.overseas-id {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: Consolas, Monaco, monospace;
}

.overseas-tags {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.overseas-chip {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(52, 152, 219, 0.12);
    color: #2f7fbf;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.overseas-chip-ai {
    background: rgba(99, 102, 241, 0.14);
    color: #5b61d6;
    border-color: rgba(99, 102, 241, 0.25);
}

.overseas-status-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.overseas-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.overseas-secondary-status {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.overseas-secondary-status.is-danger {
    color: #e45a8c;
}

.overseas-secondary-status.is-warning {
    color: #d97706;
}

.overseas-status.status-pending {
    background: rgba(52, 152, 219, 0.14);
    color: #2b7cbc;
    border: 1px solid rgba(52, 152, 219, 0.22);
}

.overseas-status.status-pass {
    background: rgba(39, 174, 96, 0.14);
    color: #1f9d57;
    border: 1px solid rgba(39, 174, 96, 0.22);
}

.overseas-status.status-reject {
    background: rgba(231, 76, 60, 0.12);
    color: #d35448;
    border: 1px solid rgba(231, 76, 60, 0.22);
}

.overseas-muted,
.overseas-mode,
.overseas-account {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.overseas-mode {
    font-weight: 600;
    color: var(--text-light);
}

.overseas-price {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.overseas-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(120, 150, 190, 0.1);
}

.overseas-account i {
    opacity: 0.75;
}

.col-status,
.col-lang,
.col-mode,
.col-account,
.col-action {
    text-align: center;
}

.overseas-detail-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.35);
    background: rgba(52, 152, 219, 0.1);
    color: #2f7fbf;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.overseas-detail-btn:hover {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
    box-shadow: 0 6px 14px rgba(52, 152, 219, 0.28);
}

.overseas-empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--text-muted);
}

.overseas-empty i {
    display: block;
    font-size: 34px;
    margin-bottom: 12px;
    color: var(--accent);
    opacity: 0.85;
}

.overseas-pagination {
    margin-top: 16px;
}

@media (max-width: 1100px) {
    .overseas-list-head,
    .overseas-row {
        grid-template-columns: minmax(220px, 1.8fr) 120px 100px 120px 110px 90px;
        padding: 10px 12px;
        gap: 8px;
    }
}

@media (max-width: 860px) {
    .overseas-list-head {
        display: none;
    }

    .overseas-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .col-status,
    .col-lang,
    .col-mode,
    .col-account,
    .col-action {
        text-align: left;
    }

    .overseas-mode,
    .overseas-price,
    .overseas-muted {
        text-align: left;
    }
}

/* ==================== ??????? ==================== */
.msg-center {
    position: relative;
    display: inline-flex;
}

.msg-center-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.msg-center-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.msg-center-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: min(360px, 92vw);
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, rgba(0,0,0,0.08));
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    z-index: 1200;
    overflow: hidden;
}

.msg-center-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
}

.msg-center-link {
    border: none;
    background: transparent;
    color: #2b7cbc;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.msg-center-link:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.msg-center-panel-body {
    max-height: 420px;
    overflow-y: auto;
}

.msg-center-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--text-muted, #888);
    font-size: 13px;
}

.msg-center-item {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.05));
    cursor: pointer;
    transition: background 0.15s ease;
}

.msg-center-item:hover {
    background: rgba(52, 152, 219, 0.06);
}

.msg-center-item.unread {
    background: rgba(52, 152, 219, 0.08);
}

.msg-center-item.unread .msg-center-title {
    font-weight: 700;
}

.msg-center-item-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.msg-center-type {
    font-size: 12px;
    color: #2b7cbc;
    font-weight: 600;
}

.msg-center-time {
    font-size: 11px;
    color: var(--text-muted, #999);
    white-space: nowrap;
}

.msg-center-title {
    font-size: 13px;
    color: var(--text-light, #222);
    line-height: 1.4;
}

.msg-center-content {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary, #666);
    line-height: 1.4;
}

@media (max-width: 640px) {
    .msg-center-label {
        display: none;
    }
}

/* TikTok ?????? */
.tiktok-upload-tip {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 4px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.12), rgba(250, 140, 22, 0.10));
    border: 1px solid rgba(255, 77, 79, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 77, 79, 0.06) inset;
}

.tiktok-upload-tip-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 77, 79, 0.18);
    color: #e74c3c;
    font-size: 15px;
}

.tiktok-upload-tip-title {
    font-size: 14px;
    font-weight: 700;
    color: #d9363e;
    line-height: 1.3;
    margin-bottom: 4px;
}

.tiktok-upload-tip-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary, #555);
}

.tiktok-upload-tip-text strong {
    color: #c0392b;
    font-weight: 700;
}

:root[data-theme="dark"] .tiktok-upload-tip {
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.18), rgba(250, 140, 22, 0.12));
    border-color: rgba(255, 120, 117, 0.4);
}

:root[data-theme="dark"] .tiktok-upload-tip-title {
    color: #ff9c9c;
}

:root[data-theme="dark"] .tiktok-upload-tip-text {
    color: rgba(255, 255, 255, 0.78);
}

:root[data-theme="dark"] .tiktok-upload-tip-text strong {
    color: #ffb4b4;
}
/* ?????????? */
.message-intro-modal {
    max-width: 480px;
    width: min(480px, 92vw);
}

.message-intro-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.28);
    color: var(--text-light, #222);
    font-size: 14px;
    line-height: 1.5;
}

.message-intro-banner i {
    color: #2b7cbc;
    margin-top: 2px;
    flex-shrink: 0;
}

.message-intro-list {
    margin: 0 0 12px;
    padding-left: 18px;
    color: var(--text-secondary, #555);
    font-size: 13px;
    line-height: 1.7;
}

.message-intro-list strong {
    color: var(--text-light, #222);
}

.message-intro-note {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted, #888);
    line-height: 1.55;
}

.message-intro-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px 18px;
}

/* 税务身份强制补全弹窗 */
.identity-force-overlay {
    z-index: 10050 !important;
    background: rgba(8, 14, 28, 0.78);
}
.identity-force-modal {
    max-width: 920px;
    width: min(920px, 96vw);
}
.identity-force-tip {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}
.identity-force-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.identity-force-modal textarea {
    width: 100%;
    resize: vertical;
    min-height: 88px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 8px);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    backdrop-filter: blur(5px);
    transition: var(--transition, all 0.2s ease);
    box-sizing: border-box;
}
.identity-force-modal textarea::placeholder {
    color: var(--text-muted);
}
.identity-force-modal textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow:
        0 0 0 4px rgba(0, 201, 255, 0.1),
        0 4px 20px rgba(0, 201, 255, 0.2);
}
:root[data-theme="light"] .identity-force-modal textarea {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a2c50;
}
:root[data-theme="light"] .identity-force-modal textarea::placeholder {
    color: #8a94a6;
}
:root[data-theme="light"] .identity-force-modal textarea:focus {
    background: #fff;
    border-color: var(--accent, #00c9ff);
}

.identity-address-note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.55;
    color: #e74c3c;
    font-weight: 600;
}

.identity-upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.identity-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px dashed rgba(0, 201, 255, 0.45);
    background: rgba(0, 201, 255, 0.08);
    color: var(--accent, #00c9ff);
    cursor: pointer;
    font-size: 13px;
}
.identity-upload-btn:hover {
    background: rgba(0, 201, 255, 0.15);
}
.identity-upload-preview {
    margin-top: 10px;
}
.identity-upload-preview img {
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    object-fit: contain;
    background: rgba(0,0,0,0.25);
}
.identity-force-modal textarea {
    width: 100%;
    resize: vertical;
    min-height: 72px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 8px);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    box-sizing: border-box;
}

.identity-force-modal {
    max-width: 920px !important;
    width: min(920px, 96vw) !important;
}
.identity-force-modal .modal-body {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.identity-form-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.identity-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}
.identity-grid-row .form-group {
    margin-bottom: 0;
}
.identity-upload-grid .identity-upload-card {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.12);
}
.identity-upload-preview {
    margin-top: 10px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px dashed rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.18);
}
.identity-upload-preview.empty {
    border-style: dashed;
}
.identity-upload-preview img {
    max-width: 100%;
    max-height: 140px;
    border-radius: 6px;
    object-fit: contain;
}
.identity-upload-placeholder {
    color: var(--text-muted);
    font-size: 13px;
}
.identity-force-actions {
    justify-content: flex-end;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 768px) {
    .identity-grid-row {
        grid-template-columns: 1fr;
    }
    .identity-force-modal {
        max-width: 96vw !important;
    }
}

.forgot-password-link {
    margin-top: 12px;
    text-align: center;
}
.forgot-password-link a {
    color: var(--accent, #00c9ff);
    font-size: 13px;
    text-decoration: none;
}
.forgot-password-link a:hover {
    text-decoration: underline;
}
.forgot-tip {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 201, 255, 0.08);
    border: 1px solid rgba(0, 201, 255, 0.25);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

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

.fanqie-app-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.fanqie-app-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1.4fr) minmax(160px, 0.7fr) auto;
    gap: 16px 20px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 201, 255, 0.16);
}

.fanqie-app-index {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1;
}

.fanqie-app-book {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
}

.fanqie-app-sub,
.fanqie-app-meta,
.fanqie-app-wechat-id {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.fanqie-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.fanqie-app-wechat-name {
    color: var(--text-light);
    font-size: 14px;
}

.fanqie-app-status {
    justify-self: end;
    text-align: right;
}

.fanqie-app-reject {
    margin-top: 8px;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.28);
    color: #f5a9a0;
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}

.fanqie-app-handle-info {
    margin-top: 8px;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.28);
    color: #a8e6c1;
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}

.fanqie-company-history {
    margin-top: 10px;
}

.fanqie-company-history-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.fanqie-company-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fanqie-company-chip {
    border: 1px solid rgba(0, 201, 255, 0.28);
    background: rgba(0, 201, 255, 0.08);
    color: var(--text-light);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1.4;
}

.fanqie-company-chip:hover,
.fanqie-company-chip.active {
    border-color: rgba(0, 201, 255, 0.55);
    background: rgba(0, 201, 255, 0.18);
    color: #fff;
}

.fanqie-handle-modal {
    max-width: 540px;
    width: calc(100% - 32px);
}

.fanqie-handle-modal .modal-header h3 {
    color: var(--accent);
}

.fanqie-handle-modal .modal-header h3 i {
    color: var(--accent);
}

.fanqie-handle-modal .modal-body {
    padding: 18px 22px 20px;
}

.fanqie-handle-summary {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 201, 255, 0.06);
    border: 1px solid rgba(0, 201, 255, 0.16);
}

.fanqie-handle-summary-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    line-height: 1.55;
}

.fanqie-handle-summary-row + .fanqie-handle-summary-row {
    margin-top: 6px;
}

.fanqie-handle-summary-label {
    color: var(--text-muted);
    font-size: 12px;
}

.fanqie-handle-summary-value {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
}

.fanqie-handle-field {
    margin-bottom: 0;
}

.fanqie-handle-field + .fanqie-handle-field {
    margin-top: 16px;
}

.fanqie-handle-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.fanqie-handle-label-row label {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
}

.fanqie-handle-label-row .required {
    color: var(--error);
}

.fanqie-handle-count {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.fanqie-handle-modal .form-control {
    width: 100%;
    background: rgba(15, 26, 47, 0.55);
    border: 1px solid rgba(122, 143, 179, 0.35);
    color: var(--text-light);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: none;
}

.fanqie-handle-modal .form-control:hover {
    border-color: rgba(0, 201, 255, 0.35);
}

.fanqie-handle-modal .form-control:focus {
    outline: none;
    border-color: rgba(0, 201, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.12);
}

.fanqie-handle-modal textarea.form-control {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

.fanqie-company-history-loading,
.fanqie-company-history-empty {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.fanqie-handle-modal .fanqie-company-history {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(26, 42, 68, 0.45);
    border: 1px dashed rgba(0, 201, 255, 0.22);
}

.fanqie-handle-modal .fanqie-company-history-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.fanqie-handle-modal .fanqie-company-chip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.fanqie-handle-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(122, 143, 179, 0.18);
}

:root[data-theme="light"] .fanqie-handle-summary {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.18);
}

:root[data-theme="light"] .fanqie-handle-modal .form-control {
    background: #fff;
    border-color: #d7e0ef;
    color: #1f2a44;
}

:root[data-theme="light"] .fanqie-handle-modal .fanqie-company-history {
    background: #f5f8fc;
    border-color: #c9d7ea;
}

:root[data-theme="light"] .fanqie-company-chip {
    background: #eef5ff;
    border-color: #c5d8f2;
    color: #2a4a78;
}

:root[data-theme="light"] .fanqie-company-chip:hover,
:root[data-theme="light"] .fanqie-company-chip.active {
    background: #dcebff;
    border-color: #7fb0e8;
    color: #1a3d6d;
}

.copyright-reject-modal {
    max-width: 540px;
    width: calc(100% - 32px);
}

.copyright-reject-modal .modal-header h3 {
    color: var(--error);
}

.copyright-reject-modal .modal-header h3 i {
    color: var(--error);
}

.copyright-reject-modal .modal-body {
    padding: 18px 22px 20px;
}

.copyright-reject-summary {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.copyright-reject-summary-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    line-height: 1.55;
}

.copyright-reject-summary-row + .copyright-reject-summary-row {
    margin-top: 6px;
}

.copyright-reject-summary-label {
    color: var(--text-muted);
    font-size: 12px;
}

.copyright-reject-summary-value {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
}

.copyright-reject-summary-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.copyright-reject-field {
    margin-bottom: 0;
}

.copyright-reject-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.copyright-reject-label-row label {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
}

.copyright-reject-label-row .required {
    color: var(--error);
}

.copyright-reject-count {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.copyright-reject-modal .form-control {
    width: 100%;
    background: rgba(15, 26, 47, 0.55);
    border: 1px solid rgba(122, 143, 179, 0.35);
    color: var(--text-light);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: none;
}

.copyright-reject-modal .form-control:hover {
    border-color: rgba(231, 76, 60, 0.4);
}

.copyright-reject-modal .form-control:focus {
    outline: none;
    border-color: rgba(231, 76, 60, 0.7);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.copyright-reject-modal textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.copyright-reject-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(122, 143, 179, 0.18);
}

:root[data-theme="light"] .copyright-reject-summary {
    background: #fff1f0;
    border-color: #f5c2bd;
}

:root[data-theme="light"] .copyright-reject-modal .form-control {
    background: #fff;
    border-color: #d7e0ef;
    color: #1f2a44;
}

:root[data-theme="light"] .copyright-reject-summary-value {
    color: #1f2a44;
}

.fanqie-detail-modal {
    max-width: 760px;
    width: calc(100% - 32px);
}

.fanqie-detail-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fanqie-detail-cover {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    cursor: zoom-in;
}

.fanqie-detail-meta {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.fanqie-detail-title-row {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 6px;
}

.fanqie-detail-label {
    color: var(--text-muted);
    font-size: 12px;
}

.fanqie-detail-desc {
    margin-top: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.fanqie-ip-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.fanqie-ip-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.fanqie-ip-empty .fa-spin {
    font-size: 32px;
    color: var(--accent);
}

.fanqie-ip-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fanqie-ip-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #64748b;
}

.fanqie-ip-card.kind-potential::before { background: #34d399; }
.fanqie-ip-card.kind-premium::before { background: #60a5fa; }
.fanqie-ip-card.kind-classic::before { background: #f59e0b; }

.fanqie-ip-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

:root[data-theme="light"] .fanqie-ip-card {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.07);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

:root[data-theme="light"] .fanqie-ip-card:hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.fanqie-ip-card-media {
    position: relative;
    width: 64px;
    flex: 0 0 64px;
    height: 88px;
    align-self: flex-start;
    border-radius: 8px;
    background: #0f172a;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.fanqie-ip-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.fanqie-ip-card-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: default;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
}

.fanqie-ip-card-cover-empty.kind-potential {
    border-color: rgba(45, 212, 191, 0.28);
    background: linear-gradient(160deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #5eead4;
}

.fanqie-ip-card-cover-empty.kind-premium {
    border-color: rgba(96, 165, 250, 0.3);
    background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
    color: #93c5fd;
}

.fanqie-ip-card-cover-empty.kind-classic {
    border-color: rgba(251, 191, 36, 0.28);
    background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%);
    color: #fbbf24;
}

.fanqie-ip-card-initial {
    font-size: 18px;
    font-weight: 700;
    color: inherit;
    opacity: 0.72;
    letter-spacing: 0.02em;
}

:root[data-theme="dark"] .fanqie-ip-card-cover-empty {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    color: #64748b;
}

:root[data-theme="dark"] .fanqie-ip-card-cover-empty.kind-potential {
    border-color: rgba(45, 212, 191, 0.22);
    background: linear-gradient(160deg, #134e4a 0%, #042f2e 100%);
    color: #5eead4;
}

:root[data-theme="dark"] .fanqie-ip-card-cover-empty.kind-premium {
    border-color: rgba(96, 165, 250, 0.22);
    background: linear-gradient(160deg, #1e3a5f 0%, #0f172a 100%);
    color: #93c5fd;
}

:root[data-theme="dark"] .fanqie-ip-card-cover-empty.kind-classic {
    border-color: rgba(251, 191, 36, 0.2);
    background: linear-gradient(160deg, #422006 0%, #1c1917 100%);
    color: #fbbf24;
}

.fanqie-ip-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fanqie-ip-card-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.fanqie-ip-card-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    cursor: pointer;
}

.fanqie-ip-card-title:hover {
    color: #93c5fd;
}

.fanqie-ip-card-kind {
    flex-shrink: 0;
    margin-top: 1px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
}

.fanqie-ip-card-author {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

.fanqie-ip-card-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.fanqie-ip-card-metrics b {
    font-weight: 700;
    color: var(--text-light);
}

.fanqie-ip-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    margin-top: auto;
    padding-top: 2px;
}

.fanqie-ip-link {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #93c5fd;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.fanqie-ip-link:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
}

.fanqie-ip-link.active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
}

.fanqie-ip-link:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fanqie-ip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    max-height: 24px;
    overflow: hidden;
}

.fanqie-meta-chip {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.fanqie-rank-chip {
    color: #f0b429;
    background: rgba(243, 156, 18, 0.12);
    border-color: rgba(243, 156, 18, 0.3);
}

:root[data-theme="light"] .fanqie-ip-card-metrics b,
:root[data-theme="light"] .fanqie-ip-card-title {
    color: #0f172a;
}

:root[data-theme="light"] .fanqie-ip-card-title:hover {
    color: #2563eb;
}

:root[data-theme="light"] .fanqie-ip-link {
    color: #2563eb;
}

:root[data-theme="light"] .fanqie-ip-link:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

:root[data-theme="light"] .fanqie-ip-link.active {
    color: #059669;
    background: #ecfdf5;
}

:root[data-theme="light"] .fanqie-meta-chip {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

@media (max-width: 1400px) {
    .fanqie-ip-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .fanqie-ip-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .fanqie-ip-card {
        gap: 10px;
        padding: 10px;
    }

    .fanqie-ip-card-media {
        width: 56px;
        flex-basis: 56px;
        height: 76px;
    }
}

.fanqie-adapt-tip {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.28);
}

.fanqie-adapt-tip-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #f0b429;
    font-size: 14px;
    font-weight: 600;
}

.fanqie-adapt-tip-text {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
    text-align: justify;
}

.fanqie-adapt-tip-contact {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(243, 156, 18, 0.35);
}

.fanqie-adapt-tip-contact strong {
    color: #f0b429;
    font-weight: 600;
}

:root[data-theme="light"] .fanqie-adapt-tip {
    background: #fff8eb;
    border-color: #f3d39a;
}

:root[data-theme="light"] .fanqie-adapt-tip-title {
    color: #c47d0e;
}

:root[data-theme="light"] .fanqie-adapt-tip-text {
    color: #5c4a2a;
}

:root[data-theme="light"] .fanqie-adapt-tip-contact {
    border-top-color: rgba(196, 125, 14, 0.35);
}

:root[data-theme="light"] .fanqie-adapt-tip-contact strong {
    color: #c47d0e;
}

@media (max-width: 860px) {
    .fanqie-app-card {
        grid-template-columns: 28px 1fr;
        gap: 8px 12px;
    }

    .fanqie-app-index {
        grid-row: 1 / span 3;
        align-self: start;
        padding-top: 2px;
    }

    .fanqie-app-card-main {
        grid-column: 2;
    }

    .fanqie-app-wechat {
        grid-column: 2;
    }

    .fanqie-app-status {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }
}

/* ========== 操作日志（紧凑工具条 + 表格） ========== */
.operation-logs-panel .oplog-toolbar-card {
    margin-bottom: 16px;
    padding: 14px 16px 12px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(26, 42, 68, 0.78) 0%, rgba(18, 29, 51, 0.92) 100%);
    border: 1px solid rgba(0, 201, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--backdrop-blur);
}

.operation-logs-panel .oplog-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.operation-logs-panel .oplog-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.operation-logs-panel .oplog-title i {
    color: var(--accent);
}

.operation-logs-panel .oplog-stats-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 201, 255, 0.1);
    border: 1px solid rgba(0, 201, 255, 0.22);
    color: var(--text-secondary);
    font-size: 12px;
}

.operation-logs-panel .oplog-stats-inline i {
    color: var(--accent);
    margin-right: 2px;
}

.operation-logs-panel .oplog-stats-inline strong {
    color: var(--text-light);
    font-weight: 700;
}

.operation-logs-panel .oplog-stats-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.18);
}

.operation-logs-panel .oplog-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.operation-logs-panel .oplog-search {
    position: relative;
    flex: 1 1 150px;
    min-width: 140px;
    max-width: 200px;
}

.operation-logs-panel .oplog-search-ip {
    max-width: 170px;
}

.operation-logs-panel .oplog-search > i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 12px;
    pointer-events: none;
}

.operation-logs-panel .oplog-search input,
.operation-logs-panel .oplog-select {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 21, 37, 0.55);
    color: var(--text-primary);
    font-size: 13px;
    transition: var(--transition-fast);
}

.operation-logs-panel .oplog-search input {
    padding: 0 12px 0 32px;
}

.operation-logs-panel .oplog-select {
    width: auto;
    min-width: 118px;
    padding: 0 10px;
    cursor: pointer;
}

.operation-logs-panel .oplog-date {
    min-width: 138px;
}

.operation-logs-panel .oplog-date-sep {
    color: var(--text-muted);
    font-size: 12px;
}

.operation-logs-panel .oplog-search input::placeholder {
    color: var(--text-muted);
}

.operation-logs-panel .oplog-search input:hover,
.operation-logs-panel .oplog-select:hover {
    border-color: rgba(0, 201, 255, 0.35);
}

.operation-logs-panel .oplog-search input:focus,
.operation-logs-panel .oplog-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.12);
}

.operation-logs-panel .oplog-select option {
    background: #1a2a44;
    color: var(--text-primary);
}

.operation-logs-panel .oplog-toolbar-actions {
    display: inline-flex;
    gap: 8px;
    margin-left: auto;
}

.operation-logs-panel .oplog-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.operation-logs-panel .oplog-table-wrap {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgba(18, 29, 51, 0.45);
}

.operation-logs-panel .oplog-table {
    font-size: 13px;
    margin: 0;
}

.operation-logs-panel .oplog-table thead tr {
    background: linear-gradient(135deg, rgba(26, 42, 68, 0.95) 0%, rgba(42, 63, 117, 0.85) 100%);
}

.operation-logs-panel .oplog-table th {
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 201, 255, 0.18);
    white-space: nowrap;
}

.operation-logs-panel .oplog-table td {
    text-align: center;
    padding: 12px 10px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.operation-logs-panel .oplog-row:hover td {
    background: rgba(0, 201, 255, 0.05);
}

.operation-logs-panel .oplog-td-id {
    color: var(--text-muted);
    font-weight: 600;
}

.operation-logs-panel .oplog-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}

.operation-logs-panel .oplog-user.is-user {
    background: rgba(52, 152, 219, 0.12);
    color: #5dade2;
}

.operation-logs-panel .oplog-user.is-admin {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

.operation-logs-panel .oplog-ip {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: rgba(149, 165, 166, 0.12);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.operation-logs-panel .oplog-loc {
    line-height: 1.45;
}

.operation-logs-panel .oplog-loc-main {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.operation-logs-panel .oplog-loc-main i {
    color: #e74c3c;
    font-size: 11px;
}

.operation-logs-panel .oplog-loc-isp {
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-muted);
}

.operation-logs-panel .oplog-muted {
    color: var(--text-muted);
}

.operation-logs-panel .oplog-action-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.operation-logs-panel .oplog-action-badge.act-login { background: linear-gradient(135deg, #3498db, #2980b9); }
.operation-logs-panel .oplog-action-badge.act-view { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.operation-logs-panel .oplog-action-badge.act-upload { background: linear-gradient(135deg, #f39c12, #e67e22); }
.operation-logs-panel .oplog-action-badge.act-push { background: linear-gradient(135deg, #5dade2, #3498db); }
.operation-logs-panel .oplog-action-badge.act-sync { background: linear-gradient(135deg, #1abc9c, #16a085); }
.operation-logs-panel .oplog-action-badge.act-urge { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.operation-logs-panel .oplog-action-badge.act-other { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }

.operation-logs-panel .oplog-module {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.operation-logs-panel .oplog-desc {
    text-align: left !important;
    color: var(--text-light);
    line-height: 1.45;
    max-width: 420px;
}

.operation-logs-panel .oplog-time {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.operation-logs-panel .oplog-time i {
    margin-right: 3px;
    font-size: 11px;
}

.operation-logs-panel .oplog-empty {
    text-align: center !important;
    padding: 56px 20px !important;
    color: var(--text-muted);
}

.operation-logs-panel .oplog-empty > i {
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.35;
    color: var(--accent);
}

.operation-logs-panel .oplog-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.operation-logs-panel .oplog-empty-sub {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.8;
}

.operation-logs-panel .pagination {
    margin-top: 16px;
}

@media (max-width: 1100px) {
    .operation-logs-panel .oplog-toolbar-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .operation-logs-panel .oplog-search,
    .operation-logs-panel .oplog-search-ip,
    .operation-logs-panel .oplog-select,
    .operation-logs-panel .oplog-date {
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .operation-logs-panel .oplog-date-sep {
        display: none;
    }

    .operation-logs-panel .oplog-toolbar-actions {
        width: 100%;
    }

    .operation-logs-panel .oplog-btn {
        flex: 1;
    }
}

:root[data-theme="light"] .operation-logs-panel .oplog-toolbar-card {
    background: linear-gradient(145deg, #ffffff 0%, #eef4ff 100%);
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .operation-logs-panel .oplog-title {
    color: #0f172a;
}

:root[data-theme="light"] .operation-logs-panel .oplog-stats-inline {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.2);
    color: #475569;
}

:root[data-theme="light"] .operation-logs-panel .oplog-stats-inline strong {
    color: #0f172a;
}

:root[data-theme="light"] .operation-logs-panel .oplog-stats-sep {
    background: rgba(15, 23, 42, 0.15);
}

:root[data-theme="light"] .operation-logs-panel .oplog-search input,
:root[data-theme="light"] .operation-logs-panel .oplog-select {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

:root[data-theme="light"] .operation-logs-panel .oplog-select option {
    background: #fff;
    color: #0f172a;
}

:root[data-theme="light"] .operation-logs-panel .oplog-table-wrap {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .operation-logs-panel .oplog-table thead tr {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a7a 100%);
}

:root[data-theme="light"] .operation-logs-panel .oplog-table th {
    color: #fff;
}

:root[data-theme="light"] .operation-logs-panel .oplog-ip {
    background: rgba(15, 23, 42, 0.04);
    color: #334155;
}

:root[data-theme="light"] .operation-logs-panel .oplog-module {
    background: rgba(15, 23, 42, 0.04);
    color: #475569;
    border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .operation-logs-panel .oplog-desc {
    color: #1e293b;
}

/* 番茄IP数据监控 - 高密度卡片 */
.fanqie-monitor-panel .list-header-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.fanqie-monitor-view-tabs {
    margin: 0 0 14px;
}

.fanqie-monitor-analysis {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.22);
}

.fanqie-monitor-analysis-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.fanqie-monitor-analysis-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
}

.fanqie-monitor-rule-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 999px;
    cursor: pointer;
}

.fanqie-monitor-rule-btn:hover {
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.45);
}

.fanqie-monitor-analysis-col-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
}

.fanqie-monitor-rule-modal {
    max-width: 560px;
    width: min(560px, 94vw);
}

.fanqie-monitor-rule-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fanqie-monitor-rule-period {
    font-size: 13px;
    color: var(--text-muted);
}

.fanqie-monitor-rule-period b {
    color: var(--text-light);
}

.fanqie-monitor-rule-p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary, var(--text-muted));
}

.fanqie-monitor-rule-block {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.14);
}

.fanqie-monitor-rule-block.focus {
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.fanqie-monitor-rule-block h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
}

.fanqie-monitor-rule-block h4.is-up { color: #34d399; }
.fanqie-monitor-rule-block h4.is-down { color: #f87171; }

.fanqie-monitor-rule-block p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}

:root[data-theme="light"] .fanqie-monitor-rule-btn {
    color: #475569;
    border-color: #cbd5e1;
}

:root[data-theme="light"] .fanqie-monitor-rule-btn:hover {
    color: #1d4ed8;
    border-color: #93c5fd;
}

:root[data-theme="light"] .fanqie-monitor-analysis-col-title,
:root[data-theme="light"] .fanqie-monitor-rule-period b,
:root[data-theme="light"] .fanqie-monitor-rule-block h4 {
    color: #0f172a;
}

:root[data-theme="light"] .fanqie-monitor-rule-block {
    background: #f8fafc;
    border-color: #e2e8f0;
}

:root[data-theme="light"] .fanqie-monitor-rule-block.focus {
    border-color: #93c5fd;
    background: #eff6ff;
}

.fanqie-monitor-analysis-head-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fanqie-monitor-analysis-refresh {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.fanqie-monitor-analysis-refresh:hover:not(:disabled) {
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.4);
}

.fanqie-monitor-analysis-refresh:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.fanqie-monitor-analysis-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 2px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.12);
}

.fanqie-monitor-analysis-tab {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.fanqie-monitor-analysis-tab.active {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
    font-weight: 600;
}

.fanqie-monitor-analysis-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.fanqie-monitor-analysis-summary b {
    color: var(--text-light);
    font-weight: 700;
}

.fanqie-monitor-analysis-summary b.is-up,
.fanqie-monitor-analysis-row em.is-up,
.fanqie-monitor-analysis-alert em.is-up,
.fanqie-monitor-analysis-spark em.is-up,
.side-label.is-up {
    color: #34d399;
}

.fanqie-monitor-analysis-summary b.is-down,
.fanqie-monitor-analysis-row em.is-down,
.fanqie-monitor-analysis-alert em.is-down,
.fanqie-monitor-analysis-spark em.is-down,
.side-label.is-down {
    color: #f87171;
}

.fanqie-monitor-analysis-alerts {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.16);
}

.fanqie-monitor-analysis-alerts-title {
    font-size: 12px;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 6px;
}

.fanqie-monitor-analysis-alerts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fanqie-monitor-analysis-alert,
.fanqie-monitor-analysis-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.2);
    color: var(--text-light);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    text-align: left;
}

.fanqie-monitor-analysis-alert:hover,
.fanqie-monitor-analysis-row:hover {
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(59, 130, 246, 0.1);
}

.fanqie-monitor-analysis-alert .name,
.fanqie-monitor-analysis-row .name {
    min-width: 0;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.fanqie-monitor-analysis-alert em,
.fanqie-monitor-analysis-row em {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.fanqie-monitor-analysis-alert .cur,
.fanqie-monitor-analysis-row .cur {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.fanqie-monitor-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.fanqie-monitor-analysis-col {
    min-width: 0;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.16);
}


.fanqie-monitor-analysis-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.fanqie-monitor-analysis-side:last-child {
    margin-bottom: 0;
}

.side-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
}

.side-empty {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 0 4px;
}

.fanqie-monitor-analysis-row {
    width: 100%;
}

.fanqie-monitor-analysis-empty {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 0 2px;
}

.fanqie-monitor-analysis-spark {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(59, 130, 246, 0.08);
}

.fanqie-monitor-analysis-spark .spark-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.fanqie-monitor-analysis-spark .spark-head strong {
    color: var(--text-light);
    font-size: 13px;
}

.fanqie-monitor-analysis-spark .spark-head em {
    font-style: normal;
    font-weight: 700;
}

.spark-svg {
    width: 100%;
    max-width: 420px;
    height: 56px;
    display: block;
}

.spark-svg polyline {
    stroke: #60a5fa;
}

.fanqie-monitor-analysis-spark-hint {
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .fanqie-monitor-analysis-grid {
        grid-template-columns: 1fr;
    }
}

:root[data-theme="light"] .fanqie-monitor-analysis {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .fanqie-monitor-analysis-tabs {
    background: #f1f5f9;
}

:root[data-theme="light"] .fanqie-monitor-analysis-tab.active {
    background: #dbeafe;
    color: #1d4ed8;
}

:root[data-theme="light"] .fanqie-monitor-analysis-col,
:root[data-theme="light"] .fanqie-monitor-analysis-alert,
:root[data-theme="light"] .fanqie-monitor-analysis-row {
    background: #f8fafc;
    border-color: #e2e8f0;
}

:root[data-theme="light"] .fanqie-monitor-analysis-alerts {
    background: #fff1f2;
    border-color: #fecdd3;
}

:root[data-theme="light"] .fanqie-monitor-analysis-spark {
    background: #eff6ff;
    border-color: #bfdbfe;
}

:root[data-theme="light"] .fanqie-monitor-analysis-title,
:root[data-theme="light"] .fanqie-monitor-analysis-col-title,
:root[data-theme="light"] .fanqie-monitor-analysis-summary b,
:root[data-theme="light"] .fanqie-monitor-analysis-spark .spark-head strong,
:root[data-theme="light"] .fanqie-monitor-analysis-alert,
:root[data-theme="light"] .fanqie-monitor-analysis-row {
    color: #0f172a;
}

.fanqie-monitor-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
}

.fanqie-monitor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 9px 10px 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.28);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fanqie-monitor-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #64748b;
}

.fanqie-monitor-card.kind-potential::before { background: #34d399; }
.fanqie-monitor-card.kind-premium::before { background: #60a5fa; }
.fanqie-monitor-card.kind-classic::before { background: #f59e0b; }

.fanqie-monitor-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.fanqie-monitor-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.fanqie-monitor-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: default;
    background: rgba(148, 163, 184, 0.1);
    border: 1px dashed rgba(148, 163, 184, 0.3);
}

.fanqie-monitor-cover-empty i {
    font-size: 12px;
    opacity: 0.65;
}

.fanqie-monitor-top {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.fanqie-monitor-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.fanqie-monitor-kind {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 16px;
    font-weight: 600;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.24);
}

.fanqie-monitor-kind.kind-potential {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
}

.fanqie-monitor-kind.kind-premium {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.28);
}

.fanqie-monitor-kind.kind-classic {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

.fanqie-monitor-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.fanqie-monitor-author {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fanqie-monitor-snap {
    flex-shrink: 0;
    opacity: 0.85;
}

.fanqie-monitor-metrics {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 8px;
    margin-top: 1px;
    padding: 4px 0 1px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 11px;
    color: var(--text-muted);
}

.fanqie-monitor-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    white-space: nowrap;
}

.fanqie-monitor-metric b {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
}

.fanqie-monitor-metric em,
.fanqie-monitor-history-table .delta {
    font-style: normal;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
}

.fanqie-monitor-metric em.is-up,
.fanqie-monitor-history-table .delta.is-up {
    color: #34d399;
}

.fanqie-monitor-metric em.is-down,
.fanqie-monitor-history-table .delta.is-down {
    color: #f87171;
}

.fanqie-monitor-metric em.is-flat,
.fanqie-monitor-history-table .delta.is-flat {
    color: #94a3b8;
}

.fanqie-monitor-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 1px;
}

.fanqie-monitor-link {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 6px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #93c5fd;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.fanqie-monitor-link:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
}

.fanqie-monitor-link:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fanqie-monitor-link.is-danger {
    color: #fca5a5;
    margin-left: auto;
}

.fanqie-monitor-link.is-danger:hover {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.fanqie-monitor-history-modal {
    max-width: 720px;
    width: min(720px, 94vw);
}

.fanqie-monitor-history-summary {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.fanqie-monitor-history-cover {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: zoom-in;
    background: rgba(148, 163, 184, 0.12);
}

.fanqie-monitor-history-summary-main {
    min-width: 0;
    flex: 1;
}

.fanqie-monitor-history-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-light);
    word-break: break-word;
}

.fanqie-monitor-history-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.fanqie-monitor-history-latest {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.fanqie-monitor-history-view-tabs {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 12px;
    padding: 2px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.12);
}

.fanqie-monitor-history-view-tab {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.fanqie-monitor-history-view-tab.active {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
    font-weight: 600;
}

.fanqie-monitor-history-chart-panel {
    margin-bottom: 4px;
}

.fanqie-monitor-history-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.fanqie-monitor-history-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.18);
    color: var(--text-light);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.fanqie-monitor-history-legend-item.off {
    opacity: 0.45;
}

.fanqie-monitor-history-legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.fanqie-monitor-history-legend-item em {
    font-style: normal;
    font-weight: 600;
}

.fanqie-monitor-history-legend-item em.is-up { color: #34d399; }
.fanqie-monitor-history-legend-item em.is-down { color: #f87171; }
.fanqie-monitor-history-legend-item em.is-flat { color: #94a3b8; }

.fanqie-monitor-history-chart-wrap {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    padding: 8px 6px 4px;
    background: rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.fanqie-monitor-history-chart {
    width: 100%;
    height: 240px;
    display: block;
}

.fanqie-monitor-history-chart .chart-grid {
    stroke: rgba(148, 163, 184, 0.18);
    stroke-width: 1;
}

.fanqie-monitor-history-chart .chart-axis {
    fill: #94a3b8;
    font-size: 11px;
}

.fanqie-monitor-history-chart-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.fanqie-monitor-history-table-wrap {
    max-height: min(52vh, 420px);
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
}

.fanqie-monitor-history-table {
    width: 100%;
    font-size: 13px;
    margin: 0;
}

.fanqie-monitor-history-table th,
.fanqie-monitor-history-table td {
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}

.fanqie-monitor-history-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(30, 41, 59, 0.96);
}

:root[data-theme="light"] .fanqie-monitor-history-summary {
    background: #f8fafc;
    border-color: #e2e8f0;
}

:root[data-theme="light"] .fanqie-monitor-history-title {
    color: #0f172a;
}

:root[data-theme="light"] .fanqie-monitor-history-view-tabs {
    background: #f1f5f9;
}

:root[data-theme="light"] .fanqie-monitor-history-view-tab.active {
    background: #dbeafe;
    color: #1d4ed8;
}

:root[data-theme="light"] .fanqie-monitor-history-legend-item {
    background: #fff;
    border-color: #e2e8f0;
    color: #0f172a;
}

:root[data-theme="light"] .fanqie-monitor-history-chart-wrap {
    background: #fff;
    border-color: #e2e8f0;
}

:root[data-theme="light"] .fanqie-monitor-history-chart .chart-axis {
    fill: #64748b;
}

:root[data-theme="light"] .fanqie-monitor-history-table-wrap {
    border-color: #e2e8f0;
}

:root[data-theme="light"] .fanqie-monitor-history-table thead th {
    background: #f1f5f9;
}

@media (max-width: 1500px) {
    .fanqie-monitor-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .fanqie-monitor-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .fanqie-monitor-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fanqie-monitor-list {
        grid-template-columns: 1fr;
    }
}

:root[data-theme="light"] .fanqie-monitor-metrics {
    border-top-color: rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .fanqie-monitor-card {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .fanqie-monitor-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .fanqie-monitor-title,
:root[data-theme="light"] .fanqie-monitor-metric b {
    color: #0f172a;
}

:root[data-theme="light"] .fanqie-monitor-kind.kind-potential {
    color: #059669;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

:root[data-theme="light"] .fanqie-monitor-kind.kind-premium {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

:root[data-theme="light"] .fanqie-monitor-kind.kind-classic {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

:root[data-theme="light"] .fanqie-monitor-link {
    color: #2563eb;
}

:root[data-theme="light"] .fanqie-monitor-link:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

:root[data-theme="light"] .fanqie-monitor-link.is-danger {
    color: #dc2626;
}

:root[data-theme="light"] .fanqie-monitor-link.is-danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

:root[data-theme="light"] .fanqie-monitor-metric em.is-up,
:root[data-theme="light"] .fanqie-monitor-history-table .delta.is-up {
    color: #059669;
}

:root[data-theme="light"] .fanqie-monitor-metric em.is-down,
:root[data-theme="light"] .fanqie-monitor-history-table .delta.is-down {
    color: #dc2626;
}


/* ========== 潜力 IP 激励活动 ========== */
.ip-incentive-panel,
.ip-admin-panel {
    padding-bottom: 24px;
}

.ip-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    margin-bottom: 12px;
    min-height: 132px;
    background:
        radial-gradient(ellipse at 12% 20%, rgba(255, 223, 128, 0.55), transparent 42%),
        radial-gradient(ellipse at 88% 75%, rgba(255, 90, 50, 0.35), transparent 48%),
        repeating-linear-gradient(
            -18deg,
            rgba(255, 215, 128, 0.08) 0 12px,
            transparent 12px 24px
        ),
        linear-gradient(135deg, #8b0f0f 0%, #c0392b 42%, #e74c3c 68%, #f39c12 100%);
    border: 1px solid rgba(255, 215, 128, 0.45);
    box-shadow:
        0 12px 32px rgba(122, 18, 18, 0.4),
        inset 0 1px 0 rgba(255, 236, 180, 0.35);
    color: #fff8e7;
}

.ip-hero-glow {
    position: absolute;
    inset: -40% auto auto 55%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 230, 150, 0.45), transparent 70%);
    pointer-events: none;
    animation: ipGlowPulse 4s ease-in-out infinite;
}

@keyframes ipGlowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.ip-hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.ip-hero-packet {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 168px;
    height: 140px;
    pointer-events: none;
}

.ip-packet-main {
    position: absolute;
    right: 18px;
    top: 8px;
    width: 92px;
    height: 118px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ff4d4f 0%, #c0392b 55%, #8b0f0f 100%);
    border: 2px solid #ffe9a8;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 215, 128, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 14px;
    animation: ipPacketBob 3.2s ease-in-out infinite;
}

.ip-packet-flap {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 42px;
    border-radius: 10px 10px 50% 50%;
    background: linear-gradient(180deg, #ffd666 0%, #e6a817 100%);
    box-shadow: inset 0 -2px 0 rgba(139, 15, 15, 0.15);
}

.ip-packet-seal {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe9a8, #f0c14b 55%, #c9a227);
    border: 2px solid #fff8e7;
    color: #8b0f0f;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.ip-packet-label {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    color: #ffe9a8;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ip-packet-coin {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff3c4, #f5c16c 50%, #d4a017);
    border: 2px solid #fff8e7;
    color: #8b0f0f;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
    animation: ipCoinFloat 2.8s ease-in-out infinite;
}

.ip-packet-coin-a { left: 8px; top: 18px; }
.ip-packet-coin-b { left: 0; bottom: 22px; animation-delay: 0.5s; }
.ip-packet-coin-c { right: 0; top: 48px; width: 28px; height: 28px; font-size: 11px; animation-delay: 1s; }

@keyframes ipPacketBob {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}

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

@media (max-width: 720px) {
    .ip-hero {
        padding: 22px 20px;
    }
    .ip-hero-packet {
        display: none;
    }
}

.ip-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 215, 128, 0.45);
    font-size: 12px;
    margin-bottom: 10px;
    color: #ffe9a8;
}

.ip-hero-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 6px;
    color: #ffe9a8;
    text-shadow:
        0 2px 0 rgba(139, 15, 15, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.28);
    margin-bottom: 4px;
}

.ip-hero h2 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #fff8e7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ip-hero p {
    color: rgba(255, 248, 231, 0.88);
    margin-bottom: 12px;
}

.ip-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ip-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ip-tag-warn {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 215, 128, 0.5);
    color: #ffe9a8;
}

.ip-tag-ok {
    background: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.5);
}

.ip-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.ip-tab {
    border: 1px solid rgba(192, 57, 43, 0.35);
    background: rgba(192, 57, 43, 0.08);
    color: var(--text-light);
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.ip-tab:hover {
    background: rgba(192, 57, 43, 0.18);
}

.ip-tab.active {
    background: linear-gradient(135deg, #c0392b, #e67e22) !important;
    border-color: #f5c16c !important;
    color: #fff8e7 !important;
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.4);
    font-weight: 700;
}

.ip-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ip-tab.has-dot {
    animation: ipTabPulse 1.8s ease-in-out infinite;
}

.ip-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff8e7;
    color: #c0392b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.ip-tab.active .ip-tab-badge {
    background: #fff;
    color: #c0392b;
}

@keyframes ipTabPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(192, 57, 43, 0); }
}

.ip-remind-overlay {
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background:
        radial-gradient(ellipse at 50% 28%, rgba(230, 126, 34, 0.38), transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(192, 57, 43, 0.28), transparent 45%),
        radial-gradient(ellipse at 80% 60%, rgba(142, 68, 173, 0.22), transparent 40%),
        rgba(12, 4, 8, 0.78) !important;
}

.ip-remind-fw-layer {
    z-index: 0;
}

.ip-remind-coin {
    position: absolute;
    top: -30px;
    z-index: 0;
}

.ip-remind-stage {
    position: relative;
    width: min(360px, 92vw);
    z-index: 2;
}

.ip-remind-glow {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 193, 108, 0.35), transparent 68%);
    filter: blur(8px);
    pointer-events: none;
    animation: ipRemindGlow 2.8s ease-in-out infinite;
}

@keyframes ipRemindGlow {
    0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.ip-remind-float {
    position: absolute;
    z-index: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #922b21;
    background: radial-gradient(circle at 30% 30%, #ffe9a8, #f0c14b 55%, #c9971a);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    animation: ipRemindFloat 3.2s ease-in-out infinite;
}

.ip-remind-float.c1 { left: -8px; top: 18%; animation-delay: 0s; }
.ip-remind-float.c2 { right: -6px; top: 36%; animation-delay: 0.6s; font-size: 14px; }
.ip-remind-float.c3 { left: 8%; bottom: 8%; animation-delay: 1.1s; width: 28px; height: 28px; font-size: 12px; }

@keyframes ipRemindFloat {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-10px) rotate(8deg); }
}

.ip-remind-card {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 22px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 120, 0.22), transparent 42%),
        linear-gradient(165deg, #e74c3c 0%, #c0392b 42%, #7b1a14 100%);
    border: 2px solid rgba(245, 193, 108, 0.55);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 36px rgba(245, 193, 108, 0.22);
    animation: ipHbFloatIn 0.5s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.ip-remind-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff8e7;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.ip-remind-lid {
    position: relative;
    padding: 20px 18px 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 55%),
        linear-gradient(135deg, #ff6b5a, #c0392b 62%, #a93226);
    border-bottom: 2px solid rgba(245, 193, 108, 0.42);
}

.ip-remind-brand {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.34em;
    color: #ffe9b0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ip-remind-slogan {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 233, 176, 0.88);
}

.ip-remind-seal {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #922b21;
    background: radial-gradient(circle at 35% 30%, #fff3c4, #f5c16c 48%, #c9971a 100%);
    border: 3px solid rgba(255, 248, 220, 0.95);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.28),
        0 0 0 6px rgba(245, 193, 108, 0.16);
    animation: ipHbSealPulse 1.6s ease-in-out infinite;
}

.ip-remind-body {
    padding: 38px 20px 22px;
    color: #fff8e7;
}

.ip-remind-promo {
    margin: 0 auto 12px;
    padding: 10px 12px;
    max-width: 260px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(245, 193, 108, 0.35);
}

.ip-remind-promo-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #ffe9b0;
    margin-bottom: 4px;
}

.ip-remind-promo-title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    color: #fff8e7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    word-break: break-word;
}

.ip-remind-promo-desc {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 248, 231, 0.82);
}

.ip-remind-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #ffe9b0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ip-remind-amount-card {
    position: relative;
    overflow: hidden;
    margin: 0 auto 12px;
    max-width: 230px;
    padding: 12px 16px 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff8e8 0%, #ffe2a8 100%);
    border: 1px solid rgba(245, 193, 108, 0.9);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.ip-remind-amount-label {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #a65b1a;
}

.ip-remind-amount {
    position: relative;
    z-index: 1;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    color: #c0392b;
    text-shadow: 0 3px 0 rgba(217, 136, 42, 0.22);
}

.ip-remind-amount em {
    font-style: normal;
    font-size: 22px;
    margin-right: 2px;
    vertical-align: 8px;
}

.ip-remind-amount-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: ipHbShine 2.6s ease-in-out 0.3s infinite;
}

.ip-remind-desc {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 248, 231, 0.9);
    line-height: 1.5;
}

.ip-remind-desc strong {
    color: #ffe9b0;
    font-size: 15px;
}

.ip-remind-tip {
    margin: 8px 0 0;
    font-size: 12px;
    color: rgba(255, 233, 176, 0.78);
}

.ip-remind-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.ip-remind-later,
.ip-remind-go {
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.ip-remind-later {
    border: 1px solid rgba(255, 248, 231, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff8e7;
    min-width: 96px;
}

.ip-remind-go {
    border: none;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #7a2e14;
    background: linear-gradient(135deg, #ffe9b0, #f5c16c 55%, #e0a93a);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.ip-remind-go:hover {
    filter: brightness(1.05);
}

.ip-billing-tag {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #7a2e14;
    background: linear-gradient(135deg, #ffe9b0, #f5c16c);
    vertical-align: middle;
}

.ip-section {
    background: var(--bg-card);
    border: 1px solid rgba(230, 126, 34, 0.22);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: 0 8px 22px rgba(192, 57, 43, 0.08);
}

.ip-rules-box {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.1), rgba(230, 126, 34, 0.06));
    border: 1px solid rgba(230, 126, 34, 0.25);
}

.ip-rules-text {
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.45;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.ip-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.ip-tier-card {
    background: linear-gradient(180deg, rgba(192, 57, 43, 0.12), rgba(230, 126, 34, 0.06));
    border: 1px solid rgba(230, 126, 34, 0.32);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.1);
}

.ip-tier-card h3 {
    font-size: 14px;
    margin: 0 0 6px;
    color: #f5c16c;
}

.ip-tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ip-tier-table th,
.ip-tier-table td {
    padding: 4px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    line-height: 1.35;
}

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

.ip-amount {
    color: #f5c16c !important;
    font-weight: 700;
}

.ip-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.ip-gate-banner {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.35);
    color: #f5c16c;
}

.ip-join-form .form-group {
    margin-bottom: 14px;
}

.ip-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ip-join-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.ip-join-form {
    min-width: 0;
}

.ip-join-side {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ip-side-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(230, 126, 34, 0.22);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.ip-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #f5c16c;
}

.ip-side-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ip-side-steps li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ip-side-steps li span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c0392b, #e67e22);
    color: #fff8e7;
    font-size: 12px;
    font-weight: 700;
}

.ip-side-steps strong {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.ip-side-steps p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.ip-side-tier + .ip-side-tier {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(230, 126, 34, 0.22);
}

.ip-side-tier-name {
    font-size: 12px;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 8px;
}

.ip-side-tier-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    padding: 5px 0;
    color: var(--text-secondary);
}

.ip-side-tier-item strong {
    color: #f5c16c;
    white-space: nowrap;
}

.ip-side-tier-more {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.ip-side-note ul {
    margin: 0;
    padding-left: 16px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

.ip-mode-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(192, 57, 43, 0.3);
    background: rgba(192, 57, 43, 0.06);
    color: var(--text-light);
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
}

.ip-mode-tab.active {
    background: linear-gradient(135deg, #c0392b, #e67e22);
    border-color: transparent;
    color: #fff8e7;
    box-shadow: 0 6px 14px rgba(192, 57, 43, 0.28);
}

.ip-inline-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.12), rgba(230, 126, 34, 0.14));
    border: 1px solid rgba(230, 126, 34, 0.35);
    color: #f5c16c;
    font-size: 13px;
    line-height: 1.6;
}

.ip-inline-tip i {
    margin-top: 2px;
    flex-shrink: 0;
}

.ip-inline-upload {
    margin-bottom: 4px;
}

.ip-form-block {
    margin-bottom: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(230, 126, 34, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ip-form-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(230, 126, 34, 0.25);
    font-size: 14px;
    font-weight: 600;
    color: #f5c16c;
    line-height: 1.2;
}

.ip-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c0392b, #e67e22);
    color: #fff8e7;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.ip-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: end;
}

.ip-form-grid-1 {
    grid-template-columns: 1fr;
}

.ip-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ip-form-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ip-form-span-4 {
    grid-column: 1 / -1;
}

.ip-form-grid .form-group {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ip-form-grid .form-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    height: 18px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    color: var(--text-secondary);
}

.ip-form-grid .form-group label i {
    color: #e67e22;
    width: 14px;
    height: 14px;
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    flex-shrink: 0;
}

.ip-form-grid .form-control,
.ip-readonly-field {
    width: 100%;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    margin: 0;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(230, 126, 34, 0.22);
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-light);
    box-sizing: border-box;
    line-height: 40px;
    vertical-align: middle;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ip-form-grid select.form-control {
    padding-right: 28px;
}

.ip-form-grid .form-control:hover {
    border-color: rgba(230, 126, 34, 0.4);
}

.ip-form-grid .form-control:focus {
    outline: none;
    border-color: rgba(230, 126, 34, 0.75);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.16);
}

.ip-form-grid textarea.form-control,
.ip-form-grid .ip-textarea {
    height: auto;
    min-height: 64px;
    max-height: none;
    padding: 10px 12px;
    line-height: 1.5;
    resize: vertical;
}

.ip-form-span-2 {
    grid-column: span 2;
}

.ip-form-span-3 {
    grid-column: span 3;
}

.ip-inline-tip {
    margin-bottom: 10px;
    padding: 10px 12px;
}

.ip-copyright-status {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.ip-copyright-status i {
    margin-top: 1px;
    flex-shrink: 0;
}

.ip-copyright-status.ok {
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.35);
    color: #2ecc71;
}

.ip-copyright-status.bad {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.35);
    color: #e74c3c;
}

.ip-copyright-status.tip {
    background: rgba(230, 126, 34, 0.1);
    border-color: rgba(230, 126, 34, 0.28);
    color: #e67e22;
}

:root[data-theme="light"] .ip-copyright-status.tip {
    color: #9a3412;
    background: #fff4e8;
}

:root[data-theme="light"] .ip-copyright-status.ok {
    color: #15803d;
    background: #ecfdf5;
}

:root[data-theme="light"] .ip-copyright-status.bad {
    color: #b91c1c;
    background: #fef2f2;
}

.ip-join-actions {
    margin-top: 2px;
    padding: 12px 14px;
}

.ip-readonly-field {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
}

.ip-readonly-field.accent {
    background: rgba(192, 57, 43, 0.16);
    border-color: rgba(230, 126, 34, 0.4);
    color: #f5c16c;
}

.ip-track-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ip-track-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(230, 126, 34, 0.22);
    background: rgba(192, 57, 43, 0.05);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ip-track-option:hover {
    border-color: rgba(230, 126, 34, 0.55);
    background: rgba(192, 57, 43, 0.1);
}

.ip-track-option.active {
    border-color: rgba(230, 126, 34, 0.75);
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.18), rgba(230, 126, 34, 0.14));
    box-shadow: 0 8px 18px rgba(192, 57, 43, 0.18);
}

.ip-track-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ip-track-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 126, 34, 0.18);
    color: #f5c16c;
    flex-shrink: 0;
}

.ip-track-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ip-track-text strong {
    font-size: 14px;
    color: var(--text-light);
}

.ip-track-text em {
    font-style: normal;
    font-size: 12px;
    color: var(--text-muted);
}

.ip-join-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 4px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.1), rgba(230, 126, 34, 0.08));
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.ip-join-btn {
    min-width: 168px;
    min-height: 46px;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #c0392b, #e67e22) !important;
    border: none !important;
    box-shadow: 0 10px 22px rgba(192, 57, 43, 0.3);
}

.ip-join-btn:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.ip-join-actions-hint {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 1280px) {
    .ip-join-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 1100px) {
    .ip-join-layout {
        grid-template-columns: 1fr;
    }
    .ip-join-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .ip-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ip-form-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ip-form-span-2,
    .ip-form-span-3,
    .ip-form-span-4 {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .ip-join-side {
        grid-template-columns: 1fr;
    }
    .ip-form-grid,
    .ip-form-grid-4,
    .ip-track-options {
        grid-template-columns: 1fr;
    }
    .ip-form-span-2,
    .ip-form-span-3,
    .ip-form-span-4 {
        grid-column: span 1;
    }
}

:root[data-theme="light"] .ip-mode-tab {
    color: #7a1212;
}

:root[data-theme="light"] .ip-side-card {
    background: linear-gradient(180deg, #fffdf9, #fff7ef);
    border-color: rgba(192, 57, 43, 0.12);
    box-shadow: 0 10px 22px rgba(192, 57, 43, 0.06);
}

:root[data-theme="light"] .ip-side-steps strong,
:root[data-theme="light"] .ip-side-title {
    color: #b45309;
}

:root[data-theme="light"] .ip-side-tier-item strong {
    color: #c2410c;
}

:root[data-theme="light"] .ip-form-block {
    background: linear-gradient(180deg, #fffdf9, #fff7ef);
    border-color: rgba(192, 57, 43, 0.12);
    box-shadow: 0 10px 24px rgba(192, 57, 43, 0.06);
}

:root[data-theme="light"] .ip-form-grid .form-control,
:root[data-theme="light"] .ip-readonly-field {
    background: #fff;
    border-color: rgba(192, 57, 43, 0.16);
    color: #333;
}

:root[data-theme="light"] .ip-inline-tip {
    color: #9a3412;
    background: linear-gradient(135deg, #fff4e8, #ffecd8);
}

:root[data-theme="light"] .ip-form-block-title {
    color: #b45309;
}

:root[data-theme="light"] .ip-readonly-field.accent {
    background: #fff1e0;
    border-color: rgba(230, 126, 34, 0.35);
    color: #b45309;
}

:root[data-theme="light"] .ip-track-option {
    background: #fff8f1;
}

:root[data-theme="light"] .ip-track-option.active {
    background: linear-gradient(135deg, #fff0e4, #ffe3cc);
}

:root[data-theme="light"] .ip-track-text strong {
    color: #7a1212;
}

:root[data-theme="light"] .ip-join-actions {
    background: linear-gradient(135deg, #fff4ea, #ffecd9);
}

.ip-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(230, 126, 34, 0.35);
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.12), rgba(230, 126, 34, 0.16));
    color: #c0392b;
    cursor: pointer;
    font-size: 13px;
}

.ip-tab i {
    margin-right: 4px;
}

.ip-festive-card {
    background:
        linear-gradient(180deg, rgba(255, 248, 231, 0.08), rgba(255, 255, 255, 0.02)),
        var(--bg-card);
    border: 1px solid rgba(230, 126, 34, 0.28) !important;
    box-shadow: 0 12px 28px rgba(192, 57, 43, 0.12);
}

.ip-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(230, 126, 34, 0.3);
}

.ip-section-head h3 {
    margin: 0;
    font-size: 16px;
    color: #f5c16c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-section-head span {
    font-size: 12px;
    color: var(--text-muted);
}

.ip-festive-table thead th {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.22), rgba(230, 126, 34, 0.18)) !important;
    color: #ffe9a8 !important;
    border-bottom: 1px solid rgba(245, 193, 108, 0.35) !important;
}

.ip-festive-table tbody tr:hover {
    background: rgba(230, 126, 34, 0.08) !important;
}

.ip-book-name {
    color: #f5c16c;
}

.ip-track-chip {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(192, 57, 43, 0.14);
    border: 1px solid rgba(230, 126, 34, 0.35);
    color: #e67e22;
    font-size: 12px;
}

.ip-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(192, 57, 43, 0.16);
    border: 1px solid rgba(230, 126, 34, 0.4);
    color: #f5c16c;
}

.ip-status-submitted,
.ip-status-eligible {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.22), rgba(230, 126, 34, 0.2));
    color: #ffe9a8;
}

.ip-status-reviewing {
    background: rgba(243, 156, 18, 0.18);
    border-color: rgba(243, 156, 18, 0.4);
    color: #f39c12;
}

.ip-status-rewarded {
    background: rgba(46, 204, 113, 0.16);
    border-color: rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.ip-status-rejected {
    background: rgba(149, 165, 166, 0.16);
    border-color: rgba(149, 165, 166, 0.35);
    color: #95a5a6;
}

.ip-redpack-wallet {
    position: relative;
    overflow: hidden;
}

.ip-redpack-wallet-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 1.05fr) minmax(260px, 1.2fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 20px 20px 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 226, 160, 0.42), transparent 40%),
        radial-gradient(circle at 88% 78%, rgba(255, 180, 90, 0.28), transparent 42%),
        linear-gradient(135deg, #b71c1c 0%, #d84315 46%, #ef6c00 100%);
    border: 1px solid rgba(255, 224, 170, 0.38);
    box-shadow:
        0 16px 34px rgba(183, 28, 28, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    overflow: hidden;
}

.ip-wallet-pattern {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -32deg,
            rgba(255, 255, 255, 0.055) 0 10px,
            rgba(255, 255, 255, 0) 10px 22px
        );
    opacity: 0.9;
    pointer-events: none;
}

.ip-wallet-glow {
    position: absolute;
    right: -36px;
    top: -56px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 236, 179, 0.42), transparent 68%);
    pointer-events: none;
}

.ip-wallet-coin {
    position: absolute;
    z-index: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #8a4b00;
    background: radial-gradient(circle at 30% 30%, #ffe9a8, #f0b429 55%, #d48806);
    border: 1px solid rgba(255, 248, 220, 0.7);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    opacity: 0.78;
    pointer-events: none;
    animation: ipWalletCoinFloat 3.6s ease-in-out infinite;
}

.ip-wallet-coin-a {
    right: 18%;
    top: 18%;
}

.ip-wallet-coin-b {
    right: 8%;
    bottom: 16%;
    width: 26px;
    height: 26px;
    font-size: 11px;
    animation-delay: 0.8s;
}

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

.ip-wallet-main {
    position: relative;
    z-index: 1;
    color: #fff8e7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-height: 124px;
}

.ip-wallet-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 236, 179, 0.28);
}

.ip-wallet-total {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1.05;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
}

.ip-wallet-total em {
    font-style: normal;
    font-size: 22px;
    margin-right: 2px;
    opacity: 0.9;
}

.ip-wallet-sub {
    font-size: 12px;
    opacity: 0.9;
}

.ip-wallet-tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    width: fit-content;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    color: #fff8e7;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ip-redpack-summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
    align-content: center;
}

.ip-sum-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 236, 179, 0.4);
    color: #fff8e7;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 8px 18px rgba(0, 0, 0, 0.08);
}

.ip-sum-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.ip-sum-card i {
    font-size: 17px;
    color: #ffe9a8;
}

.ip-sum-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ip-sum-meta span {
    font-size: 12px;
    opacity: 0.92;
}

.ip-sum-card strong {
    color: #fff7d6;
    margin-left: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.ip-sum-card.pending {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 214, 140, 0.18));
}

.ip-sum-card.claimed {
    background: linear-gradient(145deg, rgba(46, 204, 113, 0.28), rgba(255, 255, 255, 0.14));
}

.ip-redpack-empty {
    text-align: center;
    padding: 46px 16px 32px;
    border-radius: 18px;
    border: 1px dashed rgba(192, 57, 43, 0.22);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 214, 140, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(255, 248, 231, 0.55), rgba(255, 255, 255, 0.2));
}

.ip-redpack-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c0392b, #e67e22);
    color: #fff8e7;
    font-size: 22px;
    box-shadow: 0 10px 20px rgba(192, 57, 43, 0.25);
}

.ip-redpack-empty h4 {
    margin: 0 0 6px;
    color: #9a3412;
    font-size: 16px;
}

.ip-redpack-empty p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.ip-redpack-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ip-redpack-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
}

.ip-redpack-list-head strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #9a3412;
}

.ip-redpack-list-head span {
    font-size: 12px;
    color: var(--text-secondary);
}

.ip-redpack-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ip-rp-ticket {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) minmax(118px, 148px);
    min-height: 98px;
    border-radius: 18px;
    overflow: hidden;
    background: #fffdf8;
    box-shadow:
        0 10px 24px rgba(183, 28, 28, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    animation: ipRedpackItemIn 0.35s ease both;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ip-rp-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(183, 28, 28, 0.18);
}

.ip-rp-ticket.is-pending {
    box-shadow:
        0 12px 28px rgba(230, 126, 34, 0.2),
        0 0 0 1px rgba(239, 108, 0, 0.28);
}

.ip-rp-ticket-stub {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 236, 179, 0.35), transparent 45%),
        linear-gradient(160deg, #b71c1c 0%, #d84315 55%, #ef6c00 100%);
    color: #fff8e7;
}

.ip-rp-ticket-stub::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: -1px;
    border-right: 2px dashed rgba(255, 248, 231, 0.45);
}

.ip-rp-ticket-stub-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.ip-rp-ticket-stub-inner i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #8a4b00;
    background: radial-gradient(circle at 32% 28%, #fff4cc, #f0b429 62%, #d48806);
    border: 1px solid rgba(255, 248, 220, 0.75);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.ip-rp-ticket-stub-inner span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.ip-rp-ticket-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #fffdf9 0%, #fff7ec 100%);
}

.ip-rp-ticket-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ip-rp-ticket-name {
    font-size: 16px;
    font-weight: 800;
    color: #7a1212;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ip-rp-ticket-tier {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #9a3412;
    background: linear-gradient(135deg, #fff1df, #ffe2c2);
    border: 1px solid rgba(230, 126, 34, 0.28);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ip-rp-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: #a07a5c;
}

.ip-rp-ticket-pay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 226, 160, 0.35), transparent 50%),
        linear-gradient(180deg, #fff8ea, #ffefd4);
    border-left: 1px dashed rgba(192, 57, 43, 0.22);
}

.ip-rp-ticket-amount {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #c62828;
    letter-spacing: 0.3px;
}

.ip-rp-ticket-amount em {
    font-style: normal;
    font-size: 15px;
    margin-right: 1px;
    opacity: 0.88;
}

.ip-rp-ticket-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1.5px solid rgba(183, 28, 28, 0.55);
    color: #b71c1c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    transform: rotate(-8deg);
    background: rgba(255, 248, 231, 0.55);
    opacity: 0.92;
}

.ip-rp-ticket.is-pending .ip-rp-ticket-pay {
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 200, 120, 0.45), transparent 50%),
        linear-gradient(180deg, #fff3e0, #ffe0b8);
}

.ip-rp-ticket.is-claimed .ip-rp-ticket-stub {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 236, 179, 0.28), transparent 45%),
        linear-gradient(160deg, #9a1c1c 0%, #c0392b 55%, #d35400 100%);
}

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

@media (max-width: 900px) {
    .ip-redpack-wallet-hero {
        grid-template-columns: 1fr;
    }

    .ip-rp-ticket {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .ip-rp-ticket-pay {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-left: none;
        border-top: 1px dashed rgba(192, 57, 43, 0.22);
        padding: 12px 16px;
    }

    .ip-rp-ticket-stamp {
        transform: rotate(-4deg);
    }
}

@media (max-width: 560px) {
    .ip-redpack-summary {
        grid-template-columns: 1fr;
    }

    .ip-wallet-total {
        font-size: 32px;
    }

    .ip-wallet-coin {
        display: none;
    }

    .ip-rp-ticket-amount {
        font-size: 24px;
    }
}

.ip-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #c0392b, #e67e22);
    color: #fff8e7;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(192, 57, 43, 0.28);
}

.ip-claim-btn-pulse {
    animation: ipClaimPulse 1.6s ease-in-out infinite;
}

@keyframes ipClaimPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 14px rgba(192, 57, 43, 0.28); }
    50% { transform: scale(1.05); box-shadow: 0 8px 22px rgba(230, 126, 34, 0.45); }
}

.ip-claim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
}

.ip-claimed-mark {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #1e9e57;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.28);
    font-size: 12px;
    font-weight: 700;
}

/* ===== 开红包仪式 ===== */
.ip-hb-overlay {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(192, 57, 43, 0.45), transparent 55%),
        rgba(20, 8, 6, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: ipHbFadeIn 0.28s ease;
    overflow: hidden;
}

.ip-hb-overlay.has-fireworks {
    background:
        radial-gradient(ellipse at 50% 28%, rgba(230, 126, 34, 0.38), transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(192, 57, 43, 0.28), transparent 45%),
        radial-gradient(ellipse at 80% 60%, rgba(142, 68, 173, 0.22), transparent 40%),
        rgba(12, 4, 8, 0.82);
}

/* 全屏礼花层 */
.ip-hb-fw-layer {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ip-hb-fw {
    position: absolute;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    animation-name: ipHbFwBurst;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    opacity: 0;
}

.ip-hb-fw-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #fff8e7;
    box-shadow: 0 0 16px var(--fw, #ffd76a), 0 0 28px var(--fw, #ffd76a);
}

.ip-hb-fw-spark {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    transform: translate(0, 0) scale(1);
    opacity: 0;
    animation-name: ipHbFwSpark;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    animation-delay: inherit;
    animation-duration: inherit;
}

@keyframes ipHbFwBurst {
    0% { opacity: 0; transform: scale(0.2); }
    6% { opacity: 1; transform: scale(1); }
    55% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.08); }
}

@keyframes ipHbFwSpark {
    0% {
        opacity: 0;
        transform: rotate(var(--a, 0deg)) translate(0) scale(0.4);
    }
    8% {
        opacity: 1;
        transform: rotate(var(--a, 0deg)) translate(calc(var(--d, 60px) * 0.2)) scale(1);
    }
    45% {
        opacity: 1;
        transform: rotate(var(--a, 0deg)) translate(calc(var(--d, 60px) * 0.65)) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--a, 0deg)) translate(var(--d, 60px)) scale(0.12);
    }
}

.ip-hb-fw-ribbon {
    position: absolute;
    width: 4px;
    height: 110px;
    border-radius: 4px;
    opacity: 0;
    background: linear-gradient(180deg, #ffd76a, transparent);
    animation: ipHbRibbon 4.5s ease-in infinite;
}

.ip-hb-fw-ribbon.r1 {
    left: 18%;
    top: -20%;
    animation-delay: 0.15s;
    background: linear-gradient(180deg, #ff6b5a, transparent);
}

.ip-hb-fw-ribbon.r2 {
    left: 52%;
    top: -25%;
    width: 5px;
    animation-delay: 1.1s;
    background: linear-gradient(180deg, #74b9ff, transparent);
}

.ip-hb-fw-ribbon.r3 {
    left: 78%;
    top: -18%;
    animation-delay: 2.2s;
    background: linear-gradient(180deg, #fd79a8, transparent);
}

.ip-hb-fw-ribbon.r4 {
    left: 32%;
    top: -22%;
    width: 3px;
    animation-delay: 0.7s;
    background: linear-gradient(180deg, #ffeaa7, transparent);
}

.ip-hb-fw-ribbon.r5 {
    left: 64%;
    top: -28%;
    width: 6px;
    animation-delay: 1.6s;
    background: linear-gradient(180deg, #55efc4, transparent);
}

.ip-hb-fw-ribbon.r6 {
    left: 88%;
    top: -16%;
    animation-delay: 2.8s;
    background: linear-gradient(180deg, #a29bfe, transparent);
}

@keyframes ipHbRibbon {
    0% { opacity: 0; transform: translateY(0) rotate(8deg); }
    10% { opacity: 0.95; }
    100% { opacity: 0; transform: translateY(120vh) rotate(-12deg); }
}

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

.ip-hb-stage {
    position: relative;
    z-index: 2;
    width: min(360px, 92vw);
    padding: 20px 0 12px;
}

.ip-hb-packet {
    position: relative;
    margin: 0 auto;
    width: 300px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 120, 0.22), transparent 45%),
        linear-gradient(165deg, #e74c3c 0%, #c0392b 45%, #7b1a14 100%);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(245, 193, 108, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform-origin: center bottom;
    animation: ipHbFloatIn 0.55s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.ip-hb-packet.opening {
    animation: ipHbShake 0.45s ease-in-out;
}

.ip-hb-packet.opened {
    width: 320px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 230, 150, 0.35), transparent 42%),
        linear-gradient(165deg, #ff5a45 0%, #c0392b 38%, #8e1d16 100%);
    box-shadow:
        0 32px 80px rgba(192, 57, 43, 0.55),
        0 0 0 2px rgba(245, 193, 108, 0.65),
        0 0 40px rgba(245, 193, 108, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    animation: ipHbRevealCard 0.55s cubic-bezier(0.22, 1.2, 0.36, 1);
}

@keyframes ipHbRevealCard {
    from { opacity: 0; transform: scale(0.82) translateY(24px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ip-hb-ornament {
    display: none;
}

.ip-hb-packet.opened .ip-hb-ornament {
    display: block;
    position: absolute;
    top: 28px;
    width: 36px;
    height: 72px;
    opacity: 0.55;
    background:
        linear-gradient(180deg, transparent, rgba(245, 193, 108, 0.85), transparent);
    clip-path: polygon(50% 0, 100% 35%, 70% 100%, 30% 100%, 0 35%);
    z-index: 1;
}

.ip-hb-packet.opened .ip-hb-ornament.left { left: 14px; }
.ip-hb-packet.opened .ip-hb-ornament.right { right: 14px; transform: scaleX(-1); }

@keyframes ipHbFloatIn {
    from { opacity: 0; transform: translateY(40px) scale(0.86); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ipHbShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(-6px) rotate(-2deg); }
    40% { transform: translateX(6px) rotate(2deg); }
    60% { transform: translateX(-4px) rotate(-1deg); }
    80% { transform: translateX(4px) rotate(1deg); }
}

.ip-hb-lid {
    position: relative;
    height: 126px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%),
        linear-gradient(135deg, #ff6b5a, #c0392b 60%, #a93226);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 16px;
    border-bottom: 2px solid rgba(245, 193, 108, 0.45);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
    transform-origin: top center;
}

.ip-hb-brand {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.32em;
    color: #ffe9b0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ip-hb-brand-sub {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 233, 176, 0.85);
}

.ip-hb-promo {
    margin: 0 auto 12px;
    padding: 12px 14px 10px;
    max-width: 240px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(245, 193, 108, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ip-hb-promo.opened {
    margin-top: 10px;
    margin-bottom: 0;
    background: linear-gradient(180deg, rgba(255, 248, 231, 0.18), rgba(245, 193, 108, 0.12));
    border-color: rgba(245, 193, 108, 0.55);
}

.ip-hb-promo-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #ffe9b0;
    opacity: 0.92;
    margin-bottom: 6px;
}

.ip-hb-promo-title {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: #fff8e7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    word-break: break-word;
}

.ip-hb-promo-title.muted {
    font-size: 16px;
    opacity: 0.92;
}

.ip-hb-promo.opened .ip-hb-promo-title {
    color: #ffe9b0;
    font-size: 18px;
}

.ip-hb-promo-desc {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 248, 231, 0.82);
}

.ip-hb-seal {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #ffe9a8, #f5c16c 45%, #d4a017 100%);
    border: 3px solid rgba(255, 248, 220, 0.9);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.28),
        inset 0 2px 4px rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    animation: ipHbSealPulse 1.4s ease-in-out infinite;
    user-select: none;
}

.ip-hb-seal span {
    font-size: 26px;
    font-weight: 900;
    color: #922b21;
    line-height: 1;
}

.ip-hb-seal-busy {
    animation: none;
    cursor: wait;
    opacity: 0.9;
}

.ip-hb-seal-busy span {
    font-size: 18px;
    color: #922b21;
}

@keyframes ipHbSealPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.08); }
}

.ip-hb-body {
    min-height: 210px;
    padding: 42px 22px 28px;
    text-align: center;
    color: #fff8e7;
}

.ip-hb-packet.opened .ip-hb-body {
    min-height: 0;
    padding: 22px 20px 26px;
    color: #fff8e7;
}

.ip-hb-result {
    position: relative;
    z-index: 2;
}

.ip-hb-result-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ip-hb-result-brand {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.35em;
    color: #ffe9b0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ip-hb-result-slogan {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 233, 176, 0.88);
}

.ip-hb-result-line {
    width: 140px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #f5c16c, transparent);
}

.ip-hb-medal {
    width: 64px;
    height: 64px;
    margin: 4px auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 35% 30%, #fff3c4, #f5c16c 48%, #c9971a 100%);
    border: 3px solid rgba(255, 248, 220, 0.95);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.28),
        0 0 0 6px rgba(245, 193, 108, 0.18),
        inset 0 2px 4px rgba(255, 255, 255, 0.55);
    color: #922b21;
    font-size: 26px;
    animation: ipHbMedalIn 0.7s cubic-bezier(0.22, 1.35, 0.36, 1);
}

@keyframes ipHbMedalIn {
    from { opacity: 0; transform: scale(0.2) rotate(-25deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.ip-hb-wish {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ip-hb-sub {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 14px;
}

.ip-hb-meta {
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
}

.ip-hb-packet.opened .ip-hb-meta {
    color: #ffe9b0;
}

.ip-hb-meta.soft {
    font-weight: 500;
    opacity: 0.8;
    font-size: 12px;
}

.ip-hb-tip {
    margin: 16px 0 0;
    font-size: 12px;
    opacity: 0.85;
}

.ip-hb-tip.err {
    color: #ffe0a8;
    opacity: 1;
}

.ip-hb-tip.success {
    margin-top: 12px;
    padding: 0 8px;
    color: rgba(255, 248, 231, 0.88);
    opacity: 1;
    line-height: 1.5;
}

.ip-hb-got {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.28em;
    color: #ffe9b0;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    animation: ipHbPop 0.55s cubic-bezier(0.22, 1.3, 0.36, 1);
}

.ip-hb-amount-card {
    position: relative;
    margin: 0 auto 12px;
    padding: 14px 18px 10px;
    max-width: 230px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #fff8e8 0%, #ffe2a8 100%);
    border: 1px solid rgba(245, 193, 108, 0.9);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: ipHbPop 0.65s cubic-bezier(0.22, 1.3, 0.36, 1);
}

.ip-hb-amount-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: ipHbShine 2.4s ease-in-out 0.4s infinite;
}

@keyframes ipHbShine {
    0%, 35% { transform: translateX(-120%); }
    65%, 100% { transform: translateX(120%); }
}

.ip-hb-amount {
    position: relative;
    z-index: 1;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.05;
    color: #c0392b;
    text-shadow: 0 3px 0 rgba(217, 136, 42, 0.25);
}

.ip-hb-amount em {
    font-style: normal;
    font-size: 28px;
    margin-right: 4px;
    vertical-align: 10px;
}

.ip-hb-result-tag {
    display: inline-flex;
    align-items: center;
    margin: 0 auto 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #7a2e14;
    background: linear-gradient(135deg, #ffe9b0, #f5c16c);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

@keyframes ipHbPop {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: scale(1); }
}

.ip-hb-done {
    margin-top: 16px;
    border: none;
    border-radius: 999px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 800;
    color: #7a2e14;
    cursor: pointer;
    background: linear-gradient(135deg, #ffe9b0, #f5c16c 55%, #e0a93a);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    animation: ipHbPop 0.75s cubic-bezier(0.22, 1.3, 0.36, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ip-hb-done:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.ip-hb-close {
    position: absolute;
    top: -8px;
    right: -4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #fff8e7;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ip-hb-coins {
    pointer-events: none;
    position: absolute;
    inset: -40px -20px auto;
    height: 420px;
    overflow: hidden;
    z-index: 0;
}

.ip-hb-coin {
    position: absolute;
    top: -30px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe9a8, #f0c14b 55%, #c9971a);
    color: #922b21;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    animation-name: ipHbCoinFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    transform: rotate(var(--r, 0deg));
}

@keyframes ipHbCoinFall {
    0% { transform: translateY(0) rotate(var(--r, 0deg)); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(420px) rotate(calc(var(--r, 0deg) + 180deg)); opacity: 0.15; }
}

.ip-hb-sparks {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 42%;
    width: 0;
    height: 0;
    z-index: 2;
}

.ip-hb-sparks i {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5c16c;
    box-shadow: 0 0 10px #f5c16c;
    animation: ipHbSpark 0.9s ease-out forwards;
}

.ip-hb-sparks i:nth-child(1) { --dx: 70px; --dy: -40px; animation-delay: 0s; }
.ip-hb-sparks i:nth-child(2) { --dx: -65px; --dy: -35px; animation-delay: 0.04s; background: #ff6b5a; }
.ip-hb-sparks i:nth-child(3) { --dx: 90px; --dy: 20px; animation-delay: 0.08s; }
.ip-hb-sparks i:nth-child(4) { --dx: -85px; --dy: 25px; animation-delay: 0.05s; background: #fff3c4; }
.ip-hb-sparks i:nth-child(5) { --dx: 40px; --dy: -80px; animation-delay: 0.1s; }
.ip-hb-sparks i:nth-child(6) { --dx: -35px; --dy: -75px; animation-delay: 0.12s; background: #ff6b5a; }
.ip-hb-sparks i:nth-child(7) { --dx: 20px; --dy: 70px; animation-delay: 0.06s; }
.ip-hb-sparks i:nth-child(8) { --dx: -25px; --dy: 65px; animation-delay: 0.09s; background: #fff3c4; }

@keyframes ipHbSpark {
    from { transform: translate(0, 0) scale(1); opacity: 1; }
    to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

@media (max-width: 480px) {
    .ip-hb-packet,
    .ip-hb-packet.opened { width: 280px; }
    .ip-hb-amount { font-size: 48px; }
    .ip-hb-close { right: 8px; top: 0; }
}

.ip-empty,
.ip-empty-cell {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
}

.ip-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.ip-metrics {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.ip-rp-line {
    font-size: 12px;
    color: #f5c16c;
}

.ip-admin-config .form-group {
    margin-bottom: 14px;
}

.ip-admin-config .form-control,
.modal .form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

:root[data-theme="light"] .ip-admin-config .form-control {
    background: #fff;
    border-color: rgba(192, 57, 43, 0.22);
    color: #333;
}

.ip-switch-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

:root[data-theme="light"] .ip-tab {
    color: #7a1212;
    background: #fff7f0;
    border-color: rgba(192, 57, 43, 0.28);
}

:root[data-theme="light"] .ip-tab:hover {
    background: #ffe8d4;
    color: #9a3412;
}

:root[data-theme="light"] .ip-tab.active {
    background: linear-gradient(135deg, #c0392b, #e67e22) !important;
    border-color: #f5c16c !important;
    color: #fff8e7 !important;
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.35);
}

:root[data-theme="light"] .ip-tab.active i {
    color: #ffe9a8 !important;
}

:root[data-theme="light"] .ip-refresh-btn {
    color: #9a3412;
}

:root[data-theme="light"] .ip-section,
:root[data-theme="light"] .ip-festive-card {
    background: linear-gradient(180deg, #fffdf8, #fff7ef);
    border-color: rgba(192, 57, 43, 0.15);
}

:root[data-theme="light"] .ip-section-head h3,
:root[data-theme="light"] .ip-book-name,
:root[data-theme="light"] .ip-tier-card h3,
:root[data-theme="light"] .ip-amount,
:root[data-theme="light"] .ip-sum-card strong,
:root[data-theme="light"] .ip-rp-line {
    color: #b45309;
}

:root[data-theme="light"] .ip-festive-table thead th {
    background: linear-gradient(180deg, #fff4ea, #ffe8d2) !important;
    color: #9a3412 !important;
}

/* 学员端参与/红包表：轻量红金 */
.ip-my-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(192, 57, 43, 0.14);
}

.ip-my-table thead th {
    background: linear-gradient(180deg, #fff4ea, #ffe8d2) !important;
    color: #9a3412 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 11px 12px !important;
    border-bottom: 1px solid rgba(192, 57, 43, 0.16) !important;
    white-space: nowrap;
}

.ip-my-table tbody td {
    padding: 12px !important;
    vertical-align: middle;
    border-bottom: 1px solid rgba(192, 57, 43, 0.08);
    font-size: 13px;
    color: #4a3728;
    background: #fffdf9;
}

.ip-my-table tbody tr:last-child td {
    border-bottom: none;
}

.ip-my-table tbody tr:hover td {
    background: #fff7ef !important;
}

.ip-my-table .ip-book-name,
.ip-my-table strong {
    color: #7a1212;
    font-weight: 700;
}

.ip-my-table .ip-amount {
    color: #c0392b !important;
    font-weight: 700;
}

:root[data-theme="dark"] .ip-my-table {
    border-color: rgba(230, 126, 34, 0.25);
}

:root[data-theme="dark"] .ip-my-table thead th {
    background: linear-gradient(180deg, rgba(192, 57, 43, 0.28), rgba(230, 126, 34, 0.18)) !important;
    color: #ffe9a8 !important;
    border-bottom-color: rgba(245, 193, 108, 0.25) !important;
}

:root[data-theme="dark"] .ip-my-table tbody td {
    background: transparent;
    color: var(--text-secondary);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .ip-my-table tbody tr:hover td {
    background: rgba(230, 126, 34, 0.08) !important;
}

:root[data-theme="dark"] .ip-my-table .ip-book-name,
:root[data-theme="dark"] .ip-my-table strong {
    color: #f5c16c;
}

:root[data-theme="light"] .ip-my-table .ip-status-rewarded {
    background: linear-gradient(135deg, #e8f8ef, #d4f5e2);
    border-color: #7dcea0;
    color: #1e7e34;
}

:root[data-theme="light"] .ip-cert-btn {
    background: linear-gradient(135deg, #fff7f0, #ffe3cc);
    border-color: rgba(192, 57, 43, 0.28);
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.08);
}

:root[data-theme="light"] .ip-tier-card {
    background: linear-gradient(180deg, #fff8f0, #ffe8d2);
}

:root[data-theme="light"] .ip-rules-box {
    background: linear-gradient(135deg, #fff5eb, #ffecd9);
    border-color: rgba(192, 57, 43, 0.18);
}

:root[data-theme="light"] .ip-status-submitted {
    background: linear-gradient(135deg, #ffe8d4, #ffd7b0);
    color: #9a3412;
    border-color: #f0b27a;
}

:root[data-theme="light"] .ip-track-chip {
    background: #fff1e0;
    color: #9a3412;
}

:root[data-theme="light"] .ip-redpack-wallet-hero .ip-sum-card,
:root[data-theme="light"] .ip-redpack-wallet-hero .ip-sum-card strong,
:root[data-theme="light"] .ip-redpack-wallet-hero .ip-sum-meta span {
    color: #fff8e7;
}

:root[data-theme="light"] .ip-redpack-wallet-hero .ip-sum-card i {
    color: #ffe9a8;
}

:root[data-theme="light"] .ip-rp-ticket-name,
:root[data-theme="light"] .ip-rp-ticket-amount,
:root[data-theme="light"] .ip-redpack-empty h4 {
    color: #9a3412;
}

:root[data-theme="light"] .ip-rp-ticket-amount {
    color: #c62828;
}

:root[data-theme="dark"] .ip-rp-ticket {
    background: #2a1a16;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .ip-rp-ticket-main {
    background: linear-gradient(180deg, rgba(70, 30, 22, 0.9), rgba(45, 22, 16, 0.95));
}

:root[data-theme="dark"] .ip-rp-ticket-pay {
    background:
        radial-gradient(circle at 70% 20%, rgba(230, 126, 34, 0.2), transparent 50%),
        linear-gradient(180deg, #3a2418, #2c1b12);
    border-left-color: rgba(245, 193, 108, 0.22);
}

:root[data-theme="dark"] .ip-redpack-list-head strong,
:root[data-theme="dark"] .ip-rp-ticket-name {
    color: #ffe9a8;
}

:root[data-theme="dark"] .ip-rp-ticket-amount {
    color: #f5c16c;
}

:root[data-theme="dark"] .ip-rp-ticket-tier {
    color: #f5c16c;
    background: rgba(230, 126, 34, 0.18);
    border-color: rgba(245, 193, 108, 0.28);
}

:root[data-theme="dark"] .ip-rp-ticket-meta {
    color: #c9a88a;
}

:root[data-theme="dark"] .ip-rp-ticket-stamp {
    color: #f5c16c;
    border-color: rgba(245, 193, 108, 0.55);
    background: rgba(80, 40, 20, 0.45);
}

:root[data-theme="dark"] .ip-redpack-empty {
    background:
        radial-gradient(circle at 50% 0%, rgba(230, 126, 34, 0.16), transparent 55%),
        rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .ip-redpack-empty h4 {
    color: #ffe9a8;
}

/* ========== 激励活动管理（管理员）喜庆样式 ========== */
.ip-admin-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse at 15% 20%, rgba(255, 223, 128, 0.45), transparent 45%),
        linear-gradient(135deg, #8b0f0f 0%, #c0392b 50%, #e67e22 100%);
    border: 1px solid rgba(255, 215, 128, 0.4);
    box-shadow: 0 10px 24px rgba(122, 18, 18, 0.28);
    color: #fff8e7;
}

.ip-admin-hero-text h2 {
    margin: 2px 0 6px;
    font-size: 22px;
    color: #fff8e7;
}

.ip-admin-hero-text p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 248, 231, 0.88);
}

.ip-admin-hero-deco {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #8b0f0f;
    background: radial-gradient(circle at 32% 28%, #fff3c4, #f5c16c 55%, #d4a017);
    border: 2px solid #fff8e7;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}

.ip-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff4ea, #ffecd9);
    border: 1px solid rgba(230, 126, 34, 0.28);
    position: relative;
    z-index: 1;
    overflow: visible;
}

.ip-admin-search {
    position: relative;
    flex: 1 1 240px;
    min-width: 200px;
    max-width: 420px;
    z-index: 1;
}

.ip-admin-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0392b;
    font-size: 13px;
    pointer-events: none;
    z-index: 2;
}

.ip-admin-search input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 34px;
    border-radius: 10px;
    border: 1px solid rgba(192, 57, 43, 0.28);
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.ip-admin-search input:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.ip-admin-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.ip-admin-select {
    height: 40px;
    min-width: 132px;
    flex: 0 0 auto;
    padding: 0 32px 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(192, 57, 43, 0.28);
    background-color: #fff;
    color: #7a1212;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #c0392b 50%),
        linear-gradient(135deg, #c0392b 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 2px),
        calc(100% - 10px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.ip-admin-select:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.ip-admin-query-btn {
    height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #c0392b, #e67e22);
    color: #fff8e7;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(192, 57, 43, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ip-admin-query-btn:hover {
    filter: brightness(1.05);
}

/* 管理端表格：轻量红金，避免表头过重 */
.ip-admin-table {
    width: 100%;
    min-width: 1080px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    border: 1px solid rgba(192, 57, 43, 0.14);
}

.ip-admin-table thead th {
    background: linear-gradient(180deg, #fff4ea, #ffe8d2) !important;
    color: #7a1212 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    padding: 12px 12px !important;
    border-bottom: 1px solid rgba(192, 57, 43, 0.16) !important;
    white-space: nowrap;
}

/* 7列：作品 / 微信 / 平台 / 状态 / 红包 / 时间 / 操作 */
.ip-admin-table th:nth-child(1),
.ip-admin-table td:nth-child(1) { width: 22%; }
.ip-admin-table th:nth-child(2),
.ip-admin-table td:nth-child(2) { width: 15%; }
.ip-admin-table th:nth-child(3),
.ip-admin-table td:nth-child(3) { width: 15%; }
.ip-admin-table th:nth-child(4),
.ip-admin-table td:nth-child(4) { width: 10%; }
.ip-admin-table th:nth-child(5),
.ip-admin-table td:nth-child(5) { width: 12%; }
.ip-admin-table th:nth-child(6),
.ip-admin-table td:nth-child(6) { width: 12%; }
.ip-admin-table th:nth-child(7),
.ip-admin-table td:nth-child(7) {
    width: 168px;
    min-width: 168px !important;
    max-width: 180px;
}

.ip-admin-title {
    color: #5c1010;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 4px;
}

.ip-admin-meta {
    font-size: 12px;
    color: #7a5a45;
    line-height: 1.45;
}

.ip-info-card {
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(192, 57, 43, 0.12);
}

.ip-info-line {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    font-size: 12px;
    line-height: 1.45;
}

.ip-info-line + .ip-info-line {
    margin-top: 4px;
}

.ip-info-line span {
    color: #8a6a4a;
    flex-shrink: 0;
}

.ip-info-line b {
    color: #0f5f5a;
    font-weight: 700;
    word-break: break-all;
}

.ip-admin-empty {
    color: #9a7b63;
    font-size: 12px;
}

.ip-admin-time {
    font-size: 12px;
    color: #6b5344;
    white-space: nowrap;
}

.ip-admin-table tbody td {
    padding: 12px !important;
    vertical-align: middle;
    border-bottom: 1px solid rgba(192, 57, 43, 0.08);
    font-size: 13px;
    color: #3d2a1f;
    background: #fffdf9;
    overflow: hidden;
    word-break: break-word;
}

.ip-admin-table tbody tr:last-child td {
    border-bottom: none;
}

.ip-admin-table tbody tr:hover td {
    background: #fff7ef !important;
}

.ip-admin-table .ip-book-name,
.ip-admin-table strong {
    color: #7a1212;
    font-weight: 700;
}

.ip-admin-table .ip-metrics {
    font-size: 12px;
    line-height: 1.45;
    color: #6b5344;
    white-space: normal;
}

.ip-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    min-width: 0;
}

.ip-admin-table .ip-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid transparent;
    letter-spacing: 0.5px;
}

.ip-admin-table .ip-status-eligible,
.ip-admin-table .ip-status-submitted {
    background: #fff1df !important;
    color: #9a3412 !important;
    border-color: #f0b27a !important;
}

.ip-admin-table .ip-status-reviewing {
    background: #fff7cc !important;
    color: #92400e !important;
    border-color: #f5c16c !important;
}

.ip-admin-table .ip-status-rewarded {
    background: #e8f8ef !important;
    color: #166534 !important;
    border-color: #86efac !important;
}

.ip-admin-table .ip-status-rejected {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    border-color: #d1d5db !important;
}

.ip-admin-table .ip-track-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff1df;
    color: #9a3412;
    border: 1px solid #f0b27a;
    font-size: 12px;
    font-weight: 700;
}

.ip-metrics-grid span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ip-admin-table .ip-status-cell {
    white-space: nowrap;
    overflow: visible;
}

.ip-admin-table .ip-status-badge {
    max-width: 100%;
    white-space: nowrap;
}

.ip-admin-table .ip-rp-line {
    color: #c0392b;
    font-weight: 600;
    white-space: nowrap;
}

:root[data-theme="dark"] .ip-admin-table {
    border-color: rgba(230, 126, 34, 0.25);
}

:root[data-theme="dark"] .ip-admin-table thead th {
    background: linear-gradient(180deg, rgba(192, 57, 43, 0.28), rgba(230, 126, 34, 0.18)) !important;
    color: #ffe9a8 !important;
    border-bottom-color: rgba(245, 193, 108, 0.25) !important;
}

:root[data-theme="dark"] .ip-admin-table tbody td {
    background: transparent;
    color: var(--text-secondary);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .ip-admin-table tbody tr:hover td {
    background: rgba(230, 126, 34, 0.08) !important;
}

:root[data-theme="dark"] .ip-admin-table strong {
    color: #f5c16c;
}

.ip-admin-table td.ip-admin-actions {
    overflow: visible !important;
    word-break: normal !important;
    white-space: normal !important;
}

.ip-admin-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    min-width: 140px;
}

.ip-admin-action-btn,
.ip-admin-grant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(192, 57, 43, 0.3);
    font-size: 12px !important;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap !important;
    word-break: keep-all !important;
    line-height: 1.2;
    overflow: visible;
}

.ip-admin-action-btn {
    background: #fff7f0 !important;
    color: #9a3412 !important;
}

.ip-admin-grant-btn {
    background: linear-gradient(135deg, #c0392b, #e67e22) !important;
    border-color: transparent !important;
    color: #fff8e7 !important;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.25);
}

:root[data-theme="light"] .ip-admin-toolbar {
    background: linear-gradient(135deg, #fff4ea, #ffecd9);
}

:root[data-theme="dark"] .ip-admin-search input,
:root[data-theme="dark"] .ip-admin-select {
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-light);
    border-color: rgba(230, 126, 34, 0.35);
}

:root[data-theme="dark"] .ip-admin-action-btn {
    background: rgba(192, 57, 43, 0.16);
    color: #f5c16c;
}

/* 激励活动弹窗 */
.ip-modal {
    border: 1px solid rgba(230, 126, 34, 0.35) !important;
    box-shadow: 0 18px 40px rgba(192, 57, 43, 0.22) !important;
    overflow: hidden;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
}

.ip-modal-compact .ip-modal-header {
    padding: 10px 14px !important;
}

.ip-modal-header {
    background: linear-gradient(135deg, #8b0f0f 0%, #c0392b 55%, #e67e22 100%) !important;
    border-bottom: 1px solid rgba(255, 215, 128, 0.35) !important;
    color: #fff8e7 !important;
    align-items: center !important;
    flex-shrink: 0;
}

.ip-modal-header h3 {
    margin: 0;
    color: #fff8e7 !important;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ip-modal-header .modal-close {
    color: #fff8e7 !important;
    opacity: 0.9;
}

.ip-modal-brand {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffe9a8;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 233, 168, 0.45);
    background: rgba(0, 0, 0, 0.18);
    margin-right: 2px;
}

.ip-modal-body {
    background: linear-gradient(180deg, #fffdf8, #fff7ef);
    padding: 12px 14px !important;
    overflow: auto;
}

.ip-modal-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ip-modal-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
}

.ip-modal-row-full {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
}

.ip-modal-body .form-group {
    margin-bottom: 0;
}

.ip-modal-body label {
    margin: 0;
    color: #9a3412 !important;
    font-weight: 700;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.ip-modal-select,
.ip-modal-body .form-control {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    border: 1.5px solid rgba(192, 57, 43, 0.35) !important;
    background: #fff !important;
    color: #7a1212 !important;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    box-sizing: border-box;
}

.ip-modal-body input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.ip-modal-body input[type="number"]::-webkit-outer-spin-button,
.ip-modal-body input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ip-modal-body textarea.form-control {
    height: auto;
    min-height: 52px;
    resize: vertical;
    line-height: 1.4;
}

.ip-modal-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #c0392b 50%),
        linear-gradient(135deg, #c0392b 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 2px),
        calc(100% - 10px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 28px !important;
}

.ip-modal-select:focus,
.ip-modal-body .form-control:focus {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.16) !important;
    outline: none;
}

.ip-modal-book {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff4ea, #ffecd9);
    border: 1px solid rgba(230, 126, 34, 0.25);
    color: #9a3412;
    font-weight: 600;
    font-size: 13px;
}

.ip-modal-promo {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 120, 0.35), transparent 55%),
        linear-gradient(135deg, #fff4ea, #ffecd9);
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.ip-modal-promo-brand {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #c0392b;
    margin-bottom: 4px;
}

.ip-modal-promo strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #7a1212;
    letter-spacing: 0.04em;
    line-height: 1.35;
}

.ip-modal-grant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ip-modal-grant-grid .form-group {
    margin: 0;
}

.ip-modal-grant-grid .ip-modal-grant-full {
    grid-column: 1 / -1;
}

.ip-modal-grant-grid label {
    display: block;
    text-align: left !important;
    margin-bottom: 6px !important;
}

.ip-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 14px;
    background: #fff8f1;
    border-top: 1px solid rgba(230, 126, 34, 0.2);
    flex-shrink: 0;
}

.ip-modal-cancel {
    min-width: 84px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(192, 57, 43, 0.3);
    background: #fff;
    color: #9a3412;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.ip-modal-footer .ip-admin-grant-btn {
    min-width: 140px;
    height: 40px;
    padding: 0 22px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .ip-modal-grant-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ip-modal-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }
}

/* 查看证书 */
.ip-cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(192, 57, 43, 0.35);
    background: linear-gradient(135deg, #fff7f0, #ffe8d2);
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.ip-cert-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b, #e67e22);
    border-color: transparent;
    color: #fff8e7;
}

.ip-cert-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

.ip-cert-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(192, 57, 43, 0.28), transparent 55%),
        rgba(20, 6, 6, 0.68) !important;
}

.ip-certificate {
    position: relative;
    width: min(640px, 96vw);
    padding: 0;
    border-radius: 10px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 233, 168, 0.45), transparent 36%),
        radial-gradient(circle at 85% 88%, rgba(192, 57, 43, 0.4), transparent 42%),
        linear-gradient(135deg, #5a0909 0%, #a11212 28%, #d4a017 55%, #c0392b 78%, #6d0b0b 100%);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.48),
        inset 0 0 0 1px rgba(255, 233, 168, 0.45);
    animation: ipCertIn 0.28s ease;
}

@keyframes ipCertIn {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ip-certificate-landscape {
    width: min(980px, 96vw);
}

.ip-cert-outer {
    margin: 8px;
    padding: 6px;
    border-radius: 6px;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 233, 168, 0.5) 0 1px,
            transparent 1px 5px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255, 233, 168, 0.24) 0 1px,
            transparent 1px 5px
        ),
        linear-gradient(180deg, rgba(255, 248, 231, 0.3), rgba(212, 160, 23, 0.12));
    border: 1px solid rgba(255, 233, 168, 0.72);
    box-shadow: inset 0 0 0 1px rgba(139, 15, 15, 0.18);
}

.ip-cert-frame {
    position: relative;
    overflow: hidden;
    padding: 22px 28px 16px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 233, 168, 0.28), transparent 30%),
        radial-gradient(circle at 82% 78%, rgba(192, 57, 43, 0.08), transparent 34%),
        radial-gradient(circle at 50% 40%, rgba(255, 248, 231, 0.8), transparent 55%),
        linear-gradient(180deg, #fffef9 0%, #fff8ee 48%, #ffefd8 100%);
    border: 2px solid #c9a227;
    box-shadow:
        inset 0 0 0 1px rgba(139, 15, 15, 0.2),
        inset 0 0 36px rgba(201, 162, 39, 0.08);
    color: #5c1a1a;
    text-align: center;
    font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}

.ip-cert-inner-line {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-radius: 2px;
    pointer-events: none;
    z-index: 0;
}

.ip-certificate-landscape .ip-cert-frame {
    padding: 18px 22px 12px;
    min-height: 0;
}

.ip-cert-medal {
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 3;
    width: 66px;
    height: 78px;
    pointer-events: none;
}

.ip-cert-medal-ring {
    position: relative;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #fff8dc, #f5c16c 42%, #d4a017 68%, #8b0f0f 100%);
    border: 2px solid #fff4d6;
    box-shadow:
        0 8px 16px rgba(139, 15, 15, 0.28),
        inset 0 0 0 3px rgba(139, 15, 15, 0.18),
        inset 0 0 0 6px rgba(255, 233, 168, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-cert-medal-star {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #8b0f0f;
    line-height: 1;
    opacity: 0.85;
}

.ip-cert-medal-core {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #c0392b, #8b0f0f);
    color: #ffe9a8;
    font-size: 16px;
    font-weight: 800;
    font-family: "Songti SC", "STSong", "SimSun", serif;
    border: 1px solid rgba(255, 233, 168, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ip-cert-medal-ribbon {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 34px;
    height: 24px;
}

.ip-cert-medal-ribbon i {
    position: absolute;
    top: 0;
    width: 13px;
    height: 22px;
    background: linear-gradient(180deg, #e74c3c, #8b0f0f);
    box-shadow: inset 0 0 0 1px rgba(255, 233, 168, 0.25);
}

.ip-cert-medal-ribbon i:first-child {
    left: 2px;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
    transform: rotate(-12deg);
}

.ip-cert-medal-ribbon i:last-child {
    right: 2px;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
    transform: rotate(12deg);
    background: linear-gradient(180deg, #f39c12, #c0392b);
}

.ip-cert-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 16px;
    align-items: stretch;
    text-align: left;
    min-height: 0;
}

.ip-cert-left,
.ip-cert-right {
    position: relative;
    min-width: 0;
}

.ip-cert-left {
    padding: 4px 12px 4px 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ip-cert-right {
    display: flex;
    flex-direction: column;
}

.ip-cert-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 0 10px;
    border-radius: 10px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 228, 0.96));
    border: 1px solid rgba(201, 162, 39, 0.6);
    box-shadow:
        inset 0 0 0 1px rgba(192, 57, 43, 0.06),
        0 8px 18px rgba(139, 15, 15, 0.08);
}

.ip-cert-right-title {
    margin: 0 0 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff8e7;
    text-align: center;
    background: linear-gradient(135deg, #8b0f0f, #c0392b 55%, #b45309);
    border-bottom: 1px solid rgba(255, 233, 168, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ip-cert-right-title i {
    opacity: 0.9;
}

.ip-cert-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 12px;
    flex: 1;
    align-content: start;
}

.ip-cert-metric {
    padding: 10px 10px 9px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fffdf8, #fff4e4);
    border: 1px solid rgba(201, 162, 39, 0.28);
    text-align: left;
}

.ip-cert-metric span {
    display: block;
    font-size: 11px;
    color: #9a3412;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ip-cert-metric b {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #5c1a1a;
    line-height: 1.15;
    font-family: "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
}

.ip-cert-metric.accent {
    background: linear-gradient(135deg, #fff1df, #ffe1b8);
    border-color: rgba(192, 57, 43, 0.28);
}

.ip-cert-metric.accent b {
    color: #c0392b;
}

.ip-cert-panel .ip-cert-footer {
    margin: 10px 12px 0;
}

.ip-cert-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: #a11212;
    border-style: solid;
    opacity: 0.9;
    pointer-events: none;
    z-index: 2;
}

.ip-cert-corner-tl { top: 10px; left: 10px; border-width: 3px 0 0 3px; }
.ip-cert-corner-tr { top: 10px; right: 10px; border-width: 3px 3px 0 0; }
.ip-cert-corner-bl { bottom: 10px; left: 10px; border-width: 0 0 3px 3px; }
.ip-cert-corner-br { bottom: 10px; right: 10px; border-width: 0 3px 3px 0; }

.ip-cert-watermark {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%) rotate(-18deg);
    font-size: 72px;
    font-weight: 700;
    letter-spacing: 12px;
    color: rgba(192, 57, 43, 0.05);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.ip-certificate-landscape .ip-cert-watermark {
    font-size: 88px;
    left: 36%;
    letter-spacing: 16px;
    color: rgba(192, 57, 43, 0.045);
}

.ip-cert-close {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #f5c16c;
    background: #8b0f0f;
    color: #ffe9a8;
    font-size: 22px;
    line-height: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ip-cert-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px auto 6px;
    width: 72%;
    color: #b45309;
    font-size: 11px;
}

.ip-cert-ornament span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
}

.ip-cert-ornament i {
    font-style: normal;
    color: #c0392b;
}

.ip-cert-brand {
    position: relative;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #9a3412;
    margin-bottom: 2px;
}

.ip-cert-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 6px;
}

.ip-cert-flourish {
    color: #c9a227;
    font-size: 20px;
    line-height: 1;
    opacity: 0.9;
}

.ip-cert-title {
    position: relative;
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 14px;
    text-indent: 14px;
    color: #7a1212;
    text-shadow: 0 1px 0 rgba(245, 193, 108, 0.65);
}

.ip-certificate-landscape .ip-cert-title {
    font-size: 38px;
    letter-spacing: 16px;
    text-indent: 16px;
    background: linear-gradient(180deg, #6d0b0b 10%, #c0392b 55%, #8b0f0f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 1px 0 rgba(245, 193, 108, 0.85));
}

.ip-cert-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 2px;
}

.ip-cert-no {
    margin: 0;
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #7a1212;
    background: linear-gradient(180deg, #fffdf6, #ffe9c8);
    border: 1px solid rgba(192, 57, 43, 0.28);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    font-family: Consolas, "Courier New", monospace;
}

.ip-cert-sub {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 3px 12px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #fff8e7;
    background: linear-gradient(135deg, #a11212, #c0392b 60%, #b45309);
    border: 1px solid rgba(255, 233, 168, 0.45);
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(139, 15, 15, 0.16);
}

.ip-cert-body {
    position: relative;
    text-align: left;
    padding: 4px 8px 0;
}

.ip-cert-greeting {
    margin: 4px 0 4px;
    font-size: 14px;
    color: #7a1212;
    text-align: left;
}

.ip-cert-work {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #c0392b;
    text-align: center;
    letter-spacing: 2px;
}

.ip-certificate-landscape .ip-cert-work {
    font-size: 26px;
    margin: 2px 0 8px;
    padding: 6px 10px;
    border-top: 1px solid rgba(201, 162, 39, 0.5);
    border-bottom: 1px solid rgba(201, 162, 39, 0.5);
    background: linear-gradient(90deg, transparent, rgba(255, 233, 168, 0.28), transparent);
}

.ip-cert-desc {
    margin: 0 0 6px;
    font-size: 13px;
    color: #5c2b1a;
    line-height: 1.65;
    text-indent: 2em;
    text-align: left;
}

.ip-cert-desc em {
    font-style: normal;
    font-weight: 700;
    color: #9a3412;
    border-bottom: 1px solid rgba(192, 57, 43, 0.35);
    padding: 0 2px;
}

.ip-cert-lines {
    margin: 0 0 8px;
    padding: 2px 0;
    flex: 1;
}

.ip-certificate-landscape .ip-cert-lines {
    margin-bottom: 4px;
}

.ip-cert-line {
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: center;
    gap: 8px;
    padding: 7px 6px;
    border-bottom: 1px dashed rgba(192, 57, 43, 0.2);
}

.ip-cert-line:last-child {
    border-bottom: none;
}

.ip-cert-line span {
    font-size: 13px;
    color: #9a3412;
}

.ip-cert-line b {
    font-size: 15px;
    font-weight: 700;
    color: #5c1a1a;
    text-align: right;
    letter-spacing: 0.5px;
}

.ip-cert-remark {
    margin: 0 0 6px;
    font-size: 12px;
    color: #8a6a4a;
    line-height: 1.5;
    text-align: left;
}

.ip-cert-wish-line {
    margin-top: 6px;
    text-align: right;
    font-size: 14px;
    color: #7a1212;
    letter-spacing: 4px;
    font-weight: 700;
}

.ip-cert-bottom-bar {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    padding: 6px 10px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    color: #9a3412;
    background: linear-gradient(90deg, transparent, rgba(255, 233, 168, 0.42), transparent);
    border-top: 1px solid rgba(201, 162, 39, 0.35);
}

.ip-cert-wish {
    margin: 8px 0 0;
    text-align: right;
    font-size: 14px;
    color: #7a1212;
    letter-spacing: 2px;
}

.ip-cert-footer {
    position: relative;
    margin-top: 10px;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(201, 162, 39, 0.3);
}

.ip-certificate-landscape .ip-cert-footer {
    margin-top: auto;
}

.ip-cert-date {
    text-align: left;
    font-size: 11px;
    color: #8a6a4a;
}

.ip-cert-date strong {
    display: block;
    margin-top: 2px;
    color: #5c1a1a;
    font-size: 12px;
    font-weight: 600;
}

.ip-cert-official {
    position: relative;
    text-align: right;
    min-width: 150px;
    min-height: 68px;
    padding-right: 8px;
    padding-bottom: 2px;
}

.ip-cert-issuer {
    font-size: 13px;
    font-weight: 700;
    color: #7a1212;
    letter-spacing: 1px;
}

.ip-cert-issuer-sub {
    margin-top: 2px;
    font-size: 11px;
    color: #8a6a4a;
}

.ip-cert-chop {
    position: absolute;
    right: -2px;
    bottom: -4px;
    width: 78px;
    height: 78px;
    transform: rotate(-16deg);
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(139, 15, 15, 0.18));
}

.ip-cert-chop-ring {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(185, 28, 28, 0.92);
    background:
        radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.18), transparent 45%),
        rgba(255, 248, 231, 0.28);
    box-shadow:
        inset 0 0 0 1px rgba(185, 28, 28, 0.55),
        inset 0 0 0 6px rgba(255, 248, 231, 0.35),
        inset 0 0 0 8px rgba(185, 28, 28, 0.75);
    color: rgba(185, 28, 28, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}

.ip-cert-chop-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: rgba(185, 28, 28, 0.9);
    box-shadow:
        15px 7px 0 rgba(185, 28, 28, 0.9),
        -15px 7px 0 rgba(185, 28, 28, 0.9),
        22px 24px 0 rgba(185, 28, 28, 0.75),
        -22px 24px 0 rgba(185, 28, 28, 0.75),
        15px 42px 0 rgba(185, 28, 28, 0.7),
        -15px 42px 0 rgba(185, 28, 28, 0.7),
        0 49px 0 rgba(185, 28, 28, 0.7);
}

.ip-cert-chop-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    margin-top: 2px;
}

.ip-cert-chop-text b {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ip-cert-chop-ring em {
    margin-top: 2px;
    font-style: normal;
    font-size: 9px;
    letter-spacing: 1px;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .ip-cert-main {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
    }
    .ip-cert-left {
        padding: 0 0 12px;
        border-bottom: 1px dashed rgba(192, 57, 43, 0.28);
    }
    .ip-certificate-landscape .ip-cert-frame {
        min-height: 0;
        padding: 22px 18px 16px;
    }
    .ip-cert-medal {
        width: 58px;
        height: 70px;
        top: 10px;
        left: 10px;
    }
    .ip-cert-medal-ring {
        width: 52px;
        height: 52px;
    }
    .ip-cert-medal-core {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
    .ip-cert-chop {
        width: 78px;
        height: 78px;
    }
    .ip-cert-chop-text b {
        font-size: 15px;
    }
}

@media (max-width: 560px) {
    .ip-cert-outer {
        margin: 5px;
        padding: 4px;
    }
    .ip-cert-title,
    .ip-certificate-landscape .ip-cert-title {
        font-size: 28px;
        letter-spacing: 8px;
        text-indent: 8px;
    }
    .ip-cert-work,
    .ip-certificate-landscape .ip-cert-work {
        font-size: 20px;
    }
    .ip-cert-line {
        grid-template-columns: 72px 1fr;
    }
    .ip-cert-line b {
        font-size: 14px;
    }
    .ip-cert-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .ip-cert-official {
        text-align: left;
        min-height: 84px;
    }
    .ip-cert-chop {
        right: 0;
        bottom: 0;
    }
}



:root[data-theme="light"] .ip-tier-table th,
:root[data-theme="light"] .ip-tier-table td {
    border-bottom-color: rgba(192, 57, 43, 0.08);
}
