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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a0533 0%, #2d1b69 30%, #1e3a5f 70%, #0a1628 100%);
    color: #e8e0f0;
    overflow-x: hidden;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.5); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 35px;
    background: linear-gradient(90deg, #c9a0ff, #7eb8ff, #c9a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 10px;
}

.header .subtitle {
    font-size: 14px;
    color: #a89cc8;
    letter-spacing: 2px;
}

/* User info bar */
.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-bar .user-name {
    font-size: 14px;
    color: #c9a0ff;
}

.user-bar .logout-btn {
    font-size: 12px;
    color: #a89cc8;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.user-bar .logout-btn:hover {
    color: #ff6b9d;
}

/* Top-right user info */
.user-top-right {
    position: fixed;
    top: 16px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.user-top-right .user-name {
    font-size: 13px;
    color: #c9a0ff;
}

.user-top-right .logout-btn {
    font-size: 12px;
    color: #a89cc8;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.user-top-right .logout-btn:hover {
    color: #ff6b9d;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.6);
}

.btn-primary-large {
    padding: 18px 60px;
    font-size: 22px;
    letter-spacing: 2px;
    border-radius: 36px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.08);
    color: #c9a0ff;
    border: 1px solid rgba(201, 160, 255, 0.3);
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(201, 160, 255, 0.15);
    border-color: rgba(201, 160, 255, 0.5);
}

.btn-add {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(124, 58, 237, 0.15);
    color: #c9a0ff;
    border: 1px dashed rgba(201, 160, 255, 0.4);
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.btn-add:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: rgba(201, 160, 255, 0.7);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    margin-top: 24px;
}

.btn-submit:hover {
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.5);
    transform: translateY(-1px);
}

.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 18px;
    color: #c9a0ff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 160, 255, 0.2);
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #a89cc8;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group label .required {
    color: #ff6b9d;
    margin-left: 2px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #e8e0f0;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: rgba(124, 58, 237, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-input::placeholder {
    color: #6b5b7e;
}

.form-select option {
    background: #1a0533;
    color: #e8e0f0;
}

/* Data row - 4 inputs in one line */
.data-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

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

.data-row .form-input {
    padding: 10px 8px;
    font-size: 13px;
    text-align: center;
}

/* Platform section */
.platform-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-section .platform-name {
    font-size: 14px;
    color: #7eb8ff;
    margin-bottom: 10px;
    font-weight: 500;
}

.sub-platform-block {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.sub-platform-block:last-child {
    margin-bottom: 0;
}

.sub-platform-name {
    font-size: 13px;
    color: #c9a0ff;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Upload area */
.upload-area {
    border: 2px dashed rgba(201, 160, 255, 0.3);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: rgba(201, 160, 255, 0.6);
    background: rgba(124, 58, 237, 0.08);
}

.upload-area .upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-area .upload-text {
    font-size: 13px;
    color: #a89cc8;
}

.upload-area img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Upload preview with remove button */
.upload-preview {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: visible;
    border: 1px solid rgba(201, 160, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px;
}

.upload-preview img {
    max-width: 240px;
    max-height: 200px;
    border-radius: 8px;
    cursor: zoom-in;
    display: block;
}

.upload-remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    border: 2px solid #1a0533;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.upload-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: linear-gradient(135deg, #1e1145, #1a2a4a);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(201, 160, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-large {
    max-width: 750px;
}

.modal h2 {
    font-size: 22px;
    color: #c9a0ff;
    text-align: center;
    margin-bottom: 24px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    color: #a89cc8;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.modal-close-btn {
    position: sticky;
    top: 0;
    float: right;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(201, 160, 255, 0.4);
    color: #e8e0f0;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close-btn:hover {
    background: rgba(220, 38, 38, 0.5);
    border-color: rgba(220, 38, 38, 0.7);
}

/* Radio & Checkbox */
.radio-group {
    display: flex;
    gap: 16px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #c9a0ff;
}

.radio-item input,
.checkbox-item input {
    accent-color: #7c3aed;
    width: 16px;
    height: 16px;
}

/* History list */
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-item .info {
    font-size: 14px;
    color: #e8e0f0;
}

.history-item .time {
    font-size: 12px;
    color: #6b5b7e;
    margin-top: 4px;
}

.history-item .edit-btn {
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.2);
    color: #c9a0ff;
    border: 1px solid rgba(201, 160, 255, 0.3);
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.history-item .edit-btn:hover {
    background: rgba(124, 58, 237, 0.4);
}

/* Toast notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    animation: slideIn 0.3s ease;
}

.toast.error {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

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

/* My works section */
.my-works-section {
    margin-top: 30px;
    margin-left: calc(50% - 50vw + 32px);
    margin-right: calc(50% - 50vw + 32px);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
    font-size: 18px;
    color: #c9a0ff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 160, 255, 0.2);
}

.my-works-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.my-works-table th {
    padding: 14px 18px;
    text-align: left;
    color: #a89cc8;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.my-works-table td {
    padding: 14px 18px;
    color: #e8e0f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.my-works-table tr:hover td {
    background: rgba(124, 58, 237, 0.06);
}

.my-works-table .link-cell {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-works-table .link-cell a {
    color: #7eb8ff;
    text-decoration: none;
}

.my-works-table .edit-btn {
    padding: 8px 18px;
    background: rgba(124, 58, 237, 0.2);
    color: #c9a0ff;
    border: 1px solid rgba(201, 160, 255, 0.3);
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.my-works-table .edit-btn:hover {
    background: rgba(124, 58, 237, 0.4);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 12px;
}

.page-btn {
    padding: 8px 18px;
    background: rgba(124, 58, 237, 0.2);
    color: #c9a0ff;
    border: 1px solid rgba(201, 160, 255, 0.3);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.4);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    color: #a89cc8;
    font-size: 13px;
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 160, 255, 0.3);
    border-radius: 3px;
}

/* ===== Admin Styles ===== */
.admin-body {
    background: linear-gradient(135deg, #0f0a1e 0%, #1a1040 50%, #0d1a2d 100%);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.admin-sidebar {
    width: 220px;
    background: rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.sidebar-title {
    padding: 0 24px 20px;
    font-size: 16px;
    color: #c9a0ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.admin-sidebar nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    padding: 14px 24px;
    color: #a89cc8;
    cursor: pointer;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-link:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #e8e0f0;
}

.sidebar-link.active {
    background: rgba(124, 58, 237, 0.2);
    color: #c9a0ff;
    border-left-color: #c9a0ff;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #a89cc8;
}

.sidebar-footer .logout-btn {
    background: none;
    border: none;
    color: #ff6b9d;
    cursor: pointer;
    font-size: 12px;
}

.admin-main {
    flex: 1;
    padding: 24px 32px;
    overflow-x: auto;
}

.view-title {
    font-size: 22px;
    color: #c9a0ff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.action-bar {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

/* Action buttons in tables */
.action-btns {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.04);
}

.action-btn-edit {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(99, 102, 241, 0.25));
    color: #c9a0ff;
    border-color: rgba(201, 160, 255, 0.4);
}

.action-btn-edit:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(99, 102, 241, 0.5));
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
}

.action-btn-delete {
    background: rgba(220, 38, 38, 0.15);
    color: #ff6b9d;
    border-color: rgba(255, 107, 157, 0.4);
}

.action-btn-delete:hover {
    background: rgba(220, 38, 38, 0.35);
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.25);
}

.action-btn-detail {
    background: rgba(126, 184, 255, 0.15);
    color: #7eb8ff;
    border-color: rgba(126, 184, 255, 0.4);
}

.action-btn-detail:hover {
    background: rgba(126, 184, 255, 0.35);
    box-shadow: 0 2px 12px rgba(126, 184, 255, 0.25);
}

.action-btn-reset {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(126, 184, 255, 0.2));
    color: #c9a0ff;
    border-color: rgba(201, 160, 255, 0.4);
    padding: 8px 18px;
}

.action-btn-reset:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(126, 184, 255, 0.45));
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
}

/* Modal action buttons (cancel + confirm) — equal size */
.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.modal-action-btn {
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.modal-action-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #a89cc8;
    border-color: rgba(255, 255, 255, 0.15);
}

.modal-action-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e8e0f0;
}

.modal-action-confirm {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.modal-action-confirm:hover {
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.5);
}

.modal-action-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.modal-action-danger:hover {
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.5);
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.admin-nav h1 {
    font-size: 18px;
    color: #c9a0ff;
}

.admin-nav .nav-links {
    display: flex;
    gap: 24px;
}

.admin-nav .nav-links a {
    color: #a89cc8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.admin-nav .nav-links a:hover,
.admin-nav .nav-links a.active {
    color: #c9a0ff;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 1;
}

/* Filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-bar .form-input,
.filter-bar .form-select {
    width: auto;
    min-width: 150px;
    padding: 10px 14px;
    font-size: 13px;
}

.filter-bar .btn-primary {
    padding: 10px 20px;
    font-size: 13px;
}

.filter-bar .btn-secondary {
    padding: 10px 20px;
    font-size: 13px;
}

/* Batch actions */
.batch-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.batch-bar .left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.batch-bar .right {
    display: flex;
    gap: 10px;
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    color: #a89cc8;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: #e8e0f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table tr:hover td {
    background: rgba(124, 58, 237, 0.06);
}

.data-table .link-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table .link-cell a {
    color: #7eb8ff;
    text-decoration: none;
}

.data-table .screenshot-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.data-table .screenshot-thumb:hover {
    transform: scale(1.5);
}

.data-table input[type="checkbox"] {
    accent-color: #7c3aed;
    width: 16px;
    height: 16px;
}

/* Stats cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

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

.stat-card .stat-label {
    font-size: 12px;
    color: #a89cc8;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #c9a0ff, #7eb8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image preview modal */
.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.preview-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b5b7e;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .header h1 {
        font-size: 22px;
    }

    .data-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal {
        padding: 20px;
        margin: 10px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .batch-bar {
        flex-direction: column;
        gap: 12px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .admin-nav {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .data-row {
        grid-template-columns: 1fr 1fr;
    }

    .btn-group {
        flex-direction: column;
    }
}
