input,
textarea,
select {
    font-family: inherit;
}
@media (max-width: 768px) {
    input,
    textarea {
        font-size: 16px !important;
        -webkit-tap-highlight-color: transparent;
    }
    input:focus,
    textarea:focus {
        transform: none !important;
    }
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-box {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}
.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #b0b0b0;
}
.form-group input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.form-group input:focus {
    border-color: rgba(64, 158, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 4px rgba(64, 158, 255, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}
.quantity-controls input {
    border: none;
    background: transparent;
    text-align: center;
    flex: 1;
    padding: 12px 15px;
    margin: 0;
    border-radius: 0;
}
.quantity-controls input:focus {
    border: none;
    box-shadow: none;
    background: transparent;
}
.quantity-btn {
    background: rgba(79, 209, 199, 0.8);
    color: #ffffff;
    border: none;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantity-btn:hover {
    background: rgba(79, 209, 199, 1);
    transform: scale(1.05);
}
.quantity-btn:active {
    transform: scale(0.95);
}
.quantity-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4fd1c7 0%, #3b82a0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform 0.25s ease;
    width: 100%;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0);
}
.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}
.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4fd1c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.btn-glass:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #e55353 100%);
}
.btn-success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
}
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
}
.stat-card .stat-details .btn {
    margin: 4px;
    padding: 6px 12px;
    font-size: 12px;
    min-width: 80px;
}
.navbar {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}
.navbar-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #4fd1c7;
}
.tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    gap: 4px;
}
.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    flex: 1;
    text-align: center;
    letter-spacing: 0.5px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.tab-button.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%) !important;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.4) !important;
    transform: translateY(-1px) !important;
}
.tab-button:focus {
    outline: none;
}
.tab-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    transform: none;
}
.tab-button:active:not(.active) {
    transform: translateY(0);
}
.tab-icon {
    font-size: 16px;
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.2s ease;
    pointer-events: none;
}
.tab-text {
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
}
.tab-count {
    display: inline-block;
    background: rgba(76, 209, 199, 0.9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    min-width: 18px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}
.tab-button.active .tab-count {
    background: rgba(76, 209, 199, 1);
    box-shadow: 0 2px 8px rgba(76, 209, 199, 0.4);
}
.tab-button.active .tab-icon {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .tab-text {
        display: none;
    }
    .tab-icon {
        margin-right: 0;
        font-size: 20px;
    }
    .tab-button {
        padding: 14px 20px;
        min-width: 60px;
        font-size: 12px;
        border-radius: 14px;
        flex: 1;
        max-width: none;
    }
    .tabs {
        margin-bottom: 20px;
        padding: 5px;
        border-radius: 18px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 480px) {
    .tab-button {
        padding: 12px 18px;
        min-width: 55px;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
    }
    .tab-icon {
        font-size: 18px;
    }
    .tabs {
        padding: 4px;
        margin-bottom: 15px;
        border-radius: 16px;
    }
    .tab-button.active {
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 12px rgba(26, 54, 93, 0.4) !important;
    }
    .tab-button:active:not(.active) {
        transform: translateY(0) scale(0.95) !important;
        background: rgba(255, 255, 255, 0.08) !important;
        transition: all 0.1s ease !important;
    }
    .btn {
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation;
        min-height: 44px;
    }
    .user-card, .stat-card {
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation;
    }
    textarea, select {
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation;
        min-height: 44px;
        font-family: inherit;
    }
    input {
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation;
        font-family: inherit;
    }
}
@media (max-width: 375px) {
    .tabs {
        padding: 3px;
        border-radius: 14px;
        margin-bottom: 12px;
    }
    .tab-button {
        padding: 10px 15px;
        min-width: 50px;
        border-radius: 10px;
    }
    .tab-icon {
        font-size: 16px;
    }
    .tab-button.active {
        box-shadow: 0 2px 8px rgba(26, 54, 93, 0.35) !important;
    }
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.table-container::-webkit-scrollbar {
    display: none;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}
th {
    background: rgba(248, 249, 250, 0.6) !important;
    font-weight: 600;
    color: #333;
    -webkit-backdrop-filter: blur(5px) !important;
    backdrop-filter: blur(5px) !important;
}
tr:hover {
    background: rgba(248, 249, 250, 0.6);
}
.code-input {
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .tabs {
        flex-wrap: wrap;
    }
    .tab-button {
        flex: 1;
        min-width: 120px;
    }
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    table {
        font-size: 14px;
    }
    th, td {
        padding: 10px 8px;
    }
    .login-container {
        padding: 15px;
        min-height: 100vh;
    }
    .login-box {
        padding: 25px 20px;
        max-width: 100%;
        width: calc(100% - 30px);
        margin: 0 auto;
        border-radius: 15px;
    }
    .login-box h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    .form-group {
        margin-bottom: 18px;
    }
    .btn {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
    }
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
        width: auto;
        min-width: 100px;
    }
}
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    .login-box {
        padding: 20px 15px;
        width: calc(100% - 20px);
        border-radius: 12px;
    }
    .login-box h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .form-group {
        margin-bottom: 15px;
    }
    .btn {
        padding: 10px 15px;
        font-size: 15px;
    }
    .btn-secondary {
        padding: 8px 15px;
        font-size: 13px;
        min-width: 80px;
    }
}
.login-actions {
    margin-top: 20px;
    text-align: center;
}
.login-actions .btn {
    width: 100%;
    max-width: 100%;
}
@media (max-width: 768px) {
    .login-actions {
        margin-top: 15px;
    }
    .login-actions .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 8px;
    }
}
@media (max-width: 480px) {
    .login-actions {
        margin-top: 12px;
    }
    .login-actions .btn {
        width: 100%;
        padding: 10px 15px;
        font-size: 15px;
        border-radius: 6px;
        min-height: 44px;
    }
}
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.search-box {
    flex: 1;
    max-width: 300px;
}
.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: border-color 0.3s ease;
}
.search-box input:focus {
    outline: none;
    border-color: #4fd1c7;
    box-shadow: 0 0 0 3px rgba(79, 209, 199, 0.2);
    background: rgba(255, 255, 255, 0.08);
}
.announcement-textarea {
    resize: none;
    min-height: 160px;
    font-size: 14px !important;
    text-align: left !important;
}
.search-box input::placeholder {
    color: #888;
}
.card-filter-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}
.card-filter-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.btn-filter {
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    white-space: nowrap;
    min-width: auto !important;
    height: auto !important;
}
.btn-filter:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}
.btn-filter.active {
    background: linear-gradient(135deg, #4fd1c7, #36b3a8) !important;
    color: #ffffff !important;
    border-color: #4fd1c7 !important;
    box-shadow: 0 2px 8px rgba(79, 209, 199, 0.3);
}
.btn-filter.active:hover {
    background: linear-gradient(135deg, #5dd9cf, #3ec4b8) !important;
    transform: translateY(-2px);
}
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.status-active {
    background: rgba(79, 209, 199, 0.2);
    color: #4fd1c7;
}
.status-disabled {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}
.status-expired {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}
.status-inactive {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}
.status-used {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}
.status-unused {
    background: rgba(79, 209, 199, 0.2);
    color: #4fd1c7;
}
.status-banned {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}
table,
.toolbar,
.tabs,
.modal-content {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
table th {
    background: rgba(255, 255, 255, 0.15) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}
table tr:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}
input, textarea, .selectable {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}
button, a, [onclick], [role="button"], .clickable {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    touch-action: manipulation;
    cursor: pointer;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4fd1c7 0%, #3b82a0 100%);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5ae2d8 0%, #4a93b1 100%);
}
::selection {
    background: rgba(79, 209, 199, 0.3);
    color: #ffffff;
}
::-moz-selection {
    background: rgba(79, 209, 199, 0.3);
    color: #ffffff;
}
.user-info-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.user-avatar {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 209, 199, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(79, 209, 199, 0.3);
}
.user-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.user-details h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid rgba(79, 209, 199, 0.5);
    border-radius: 15px;
    padding: 10px 20px;
    text-align: center;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
}
.user-details h3:hover {
    border-color: #ff6b6b;
}
.user-details p {
    color: #b0b0b0;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}
.user-role {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}
.user-role.admin {
    background: rgba(79, 209, 199, 0.2);
    color: #4fd1c7;
    border: 1px solid rgba(79, 209, 199, 0.3);
    transition: all 0.3s ease;
}
.user-role.admin:hover {
    background: rgba(79, 209, 199, 0.3);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(79, 209, 199, 0.3);
}
.user-role.user {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}
.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(79, 209, 199, 0.2);
    -webkit-user-select: none;
    user-select: none;
}
.stat-card::-webkit-scrollbar {
    display: none;
}
.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 209, 199, 0.15);
    border-radius: 15px;
    border: 2px solid rgba(79, 209, 199, 0.25);
    flex-shrink: 0;
    transition: transform 0.4s ease;
}
.stat-content {
    flex: 1;
    text-align: center;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.stat-content::-webkit-scrollbar {
    display: none;
}
.stat-content h3 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4fd1c7;
    margin-bottom: 5px;
    text-shadow: 0 2px 8px rgba(79, 209, 199, 0.3);
}
.stat-number.warning {
    color: #ff6b6b;
    text-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}
.stat-details {
    display: none;
}
.invite-card {
    cursor: pointer;
}
.stat-card:hover .stat-icon {
    transform: rotate(15deg) scale(1.2);
}
.stat-card:active .stat-icon {
    transform: rotate(10deg) scale(1.1);
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10050;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    display: flex;
}
.modal-dialog {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    max-width: 420px;
    max-height: 85vh;
    width: 90%;
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
    margin: auto;
    display: flex;
    flex-direction: column;
}
.modal-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
}
.modal-overlay.show .modal-dialog {
    opacity: 1;
    transform: scale(1);
}
.modal-header {
    flex-shrink: 0;
    padding: 0;
    border: none;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}
.modal-header h3 {
    font-size: 52px;
    margin: 0;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: iconPulse 2s ease-in-out infinite;
    text-align: center;
}
.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    text-align: center;
}
.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: absolute;
    right: -8px;
    top: -8px;
    border-radius: 50%;
}
.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.toggle-buttons {
    display: flex;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: calc(100% - 10px);
    margin-left: 5px;
    margin-right: 5px;
    min-height: 44px;
    align-items: stretch;
}
.toggle-btn {
    flex: 1;
    padding: 0 20px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    outline: none;
    box-sizing: border-box;
}
.toggle-btn:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transform: none;
}
.toggle-btn.active {
    background: linear-gradient(135deg, #f56c6c 0%, #e74c3c 100%);
    color: #ffffff;
    font-weight: 500;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(245, 108, 108, 0.3);
}
.toggle-btn.active:first-child {
    background: linear-gradient(135deg, #909399 0%, #6c757d 100%);
}
.toggle-btn.active:last-child {
    background: linear-gradient(135deg, #67c23a 0%, #5dade2 100%);
}
.modal-footer {
    flex-shrink: 0;
    margin-top: 20px;
    padding: 0;
    border: none;
    display: flex;
    gap: 16px;
    justify-content: center;
    width: calc(100% - 10px);
    margin-left: 5px;
    margin-right: 5px;
}
.modal-footer .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 32px;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    justify-content: center;
}
.modal-footer .btn-secondary {
    margin-right: 10px;
}
.stat-item {
    color: #b0b0b0;
    font-size: 0.9rem;
}
.stat-item span {
    color: #e0e0e0;
    font-weight: 600;
}
.index-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.index-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}
.system-info {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.system-info h3 {
    color: #ffffff;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.info-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 8px;
    position: relative;
}

.announcement-link-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.info-item:hover .announcement-link-icon {
    opacity: 1;
}
.info-label {
    color: #b0b0b0;
    font-weight: 500;
    font-size: 0.9rem;
}
.info-value {
    color: #e0e0e0;
    font-weight: 600;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}
.status-online {
    color: #51cf66 !important;
    text-shadow: 0 1px 3px rgba(81, 207, 102, 0.3);
}
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .stat-card {
        padding: 20px;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }
    .index-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-bottom: 20px;
        padding: 15px;
    }
    .index-header h1 {
        font-size: 0;
        margin-bottom: 0;
        line-height: 1;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .index-header h1::first-letter {
        font-size: 3rem;
    }
    .user-info-card {
        max-width: 100%;
        margin: 0 auto;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }
    .stat-card {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        padding: 20px;
        min-height: auto;
    }
    .stat-icon {
        font-size: 2rem;
        flex-shrink: 0;
    }
    .stat-content {
        flex: 1;
    }
    .stat-content h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    .stat-details {
        font-size: 0.8rem;
    }
    .index-actions {
        flex-direction: column;
        align-items: center;
    }
    .index-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}
tr {
    transition: background 0.3s ease !important;
}
tr:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}
.btn-group .btn {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                z-index 0.1s ease;
}
.btn-group .btn:hover {
    transform: translateY(-2px);
    z-index: 2;
}
@media (max-width: 768px) {
    .modal-dialog {
        margin: 20px;
        max-width: calc(100vw - 40px);
        max-height: 85vh;
        padding: 20px;
        border-radius: 16px;
        transform: scale(0.5);
    }
    .modal-header {
        margin-bottom: 12px;
    }
    .modal-body {
        margin: 15px 0 0 0;
    }
    .modal-footer {
        margin-top: 15px;
    }
    .modal-overlay.show .modal-dialog {
        transform: scale(1) !important;
    }
    .confirm-dialog {
        max-height: 85vh;
        padding: 20px;
        opacity: 0;
    }
    .confirm-icon {
        margin-bottom: 12px;
    }
    .import-modal-content {
        margin: 15px 0 0 0;
    }
    .confirm-buttons {
        margin-top: 15px;
    }
    .confirm-overlay.show .confirm-dialog {
        opacity: 1 !important;
    }
}
.form-group input, .search-box input {
    transition: border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.form-group input:focus, .search-box input:focus {
    transform: scale(1.005);
    box-shadow:
        0 0 0 2px rgba(79, 209, 199, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
}
.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: white;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .bottom-navigation {
        bottom: 15px;
        padding: 10px;
        gap: 10px;
    }
    .bottom-navigation .nav-button {
        width: 40px;
        height: 40px;
    }
    .bottom-navigation .nav-button .nav-icon {
        width: 20px;
        height: 20px;
    }
}
.user-card {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: opacity 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.user-card.issue-card {
    height: 330px;
}
.user-card.issue-card .user-card-header {
    margin-bottom: 0;
}
.user-card.issue-card .section-divider {
    margin: 15px 0;
}
.user-card.issue-card .user-card-actions {
    margin-top: 0;
    padding-top: 0;
}
.media-request-card {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: opacity 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.media-card-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.media-season-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    line-height: 1.4;
}
.media-card-poster-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    margin: 0 auto;
    cursor: pointer;
}
.media-card-poster {
    position: relative;
    width: 140px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
.media-card-poster img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    transition: filter 0.3s ease;
}
.poster-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #ffd700;
    font-size: 14px;
    font-weight: 700;
    z-index: 5;
    transition: filter 0.3s ease;
}
.media-card-poster-wrapper:hover .media-card-poster img {
    filter: blur(8px);
}
.media-card-poster-wrapper:hover .poster-rating {
    filter: blur(8px);
}
.media-card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}
.media-detail-item {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    text-align: center;
}
.media-detail-item .detail-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.media-request-card .user-info h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}
.media-card-poster-wrapper:hover .media-card-overlay {
    opacity: 1;
}
.user-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}
.user-card .user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4fd1c7 0%, #3b82a0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.user-info {
    flex-grow: 1;
    text-align: left;
}
.user-info h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}
.user-id {
    color: #b0b0b0;
    font-size: 12px;
    text-align: left;
}
.user-status {
    flex-shrink: 0;
}
.user-card .user-info,
.user-card .user-info h3,
.user-card .user-id {
    text-align: left !important;
}
.user-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.user-detail:last-child {
    margin-bottom: 0;
}
.detail-label {
    color: #b0b0b0;
    font-size: 14px;
}
.detail-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}
.user-card-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
}
.user-card-actions .btn {
    width: auto;
    min-width: 70px;
}
.playing-card-horizontal {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 12px;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 320px;
}
.playing-card-horizontal:hover {
    background: rgba(255, 255, 255, 0.12);
}
.playing-card-horizontal .playing-card-header {
    text-align: center;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.playing-card-horizontal .playing-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
}
.playing-card-horizontal .playing-card-body {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
}
.playing-card-horizontal .playing-card-poster {
    width: 70px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}
.playing-card-horizontal .playing-card-poster .poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.playing-card-horizontal .playing-card-poster .poster-image.loaded {
    opacity: 1;
}
.playing-card-horizontal .playing-card-poster.no-poster {
    display: flex;
    align-items: center;
    justify-content: center;
}
.playing-card-horizontal .playing-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    gap: 2px;
}
.playing-card-horizontal .playing-card-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    line-height: 1.4;
}
.playing-card-horizontal .playing-card-info .info-label {
    color: rgba(255, 255, 255, 0.5);
    min-width: 28px;
    flex-shrink: 0;
}
.playing-card-horizontal .playing-card-info .info-value {
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.playing-card-horizontal .playing-card-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.playing-card-horizontal .playing-card-progress .progress-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}
.playing-card-horizontal .playing-card-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fd1c7, #38b2ac);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.playing-card-horizontal .playing-card-progress .progress-percent {
    font-size: 11px;
    font-weight: 600;
    color: #4fd1c7;
    min-width: 30px;
    text-align: right;
}
.playing-card-horizontal .playing-card-progress.paused .progress-fill {
    background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
}
.playing-card-horizontal .playing-card-progress.paused .progress-percent {
    color: #ff6b6b;
}
.playing-card .user-card-poster {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.playing-card .user-card-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #1a1a1a, #2a2a2a, #1a1a1a, #2a2a2a);
    background-size: 400% 400%;
    animation: posterLoading 2s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.playing-card .user-card-poster.loaded::before {
    opacity: 0;
}
.playing-card .poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    position: relative;
    z-index: 2;
}
.playing-card .poster-image.loaded {
    opacity: 1;
    transform: scale(1.05);
}
.playing-card .user-card-header {
    margin-top: 8px;
    margin-bottom: 0;
    min-height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.playing-card .user-card-name {
    font-size: 13px;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}
.playing-card .user-card-details {
    padding-top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}
.playing-card .user-card-info {
    height: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 12px;
}
.playing-card .user-card-info .value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.playing-card .user-card-status.playing {
    background: rgba(76, 175, 80, 0.2);
    color: #4fd1c7;
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.playing-card .user-card-status.paused {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}
.playing-card .user-card-status.online {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}
.playing-card .playing-progress {
    font-weight: 600;
    color: #4fd1c7;
}
@media (max-width: 768px) {
    .users-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
        justify-items: center;
        max-width: 100%;
    }
    .user-card,
    .media-request-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    .users-cards-container {
        margin-top: 15px;
        text-align: center;
    }
    .toolbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-bottom: 15px;
    }
    .search-box {
        max-width: 100%;
        order: 1;
    }
    .card-filter-buttons {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .card-filter-center {
        position: static;
        transform: none;
    }
    .btn-filter {
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-width: auto !important;
    }
    .toolbar .btn {
        order: 3;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .index-header h1 {
        font-size: 0;
        margin-bottom: 0;
        line-height: 1;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .index-header h1::first-letter {
        font-size: 2.5rem;
    }
    .stats-grid {
        padding: 0 10px;
        gap: 10px;
    }
    .stat-card {
        padding: 15px;
        gap: 10px;
    }
    .stat-icon {
        font-size: 1.5rem;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .toolbar {
        padding: 10px;
        gap: 10px;
    }
    .card-filter-buttons {
        gap: 6px;
    }
    .btn-filter {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    .users-cards-grid {
        padding: 10px;
        gap: 10px;
    }
    .user-card {
        padding: 15px;
    }
    .user-card-header h3 {
        font-size: 1rem;
    }
    .detail-label, .detail-value {
        font-size: 0.8rem;
    }
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tab-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .user-card-actions {
        gap: 8px;
        margin-top: 10px;
    }
    .user-card-actions .btn {
        flex: 1;
        min-height: 40px;
    }
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 400px;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .modal-dialog::-webkit-scrollbar {
        display: none;
    }
    .form-group select {
        padding: 12px 15px;
        font-size: 16px;
        min-height: 44px;
    }
    .user-info h3 {
        font-size: 16px;
    }
    .user-detail {
        font-size: 14px;
    }
    .user-card-actions .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}
.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    height: 20px;
}

.card-type-selection {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
}
.card-type-option {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.card-type-option:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 209, 199, 0.6);
}
.card-type-option.selected,
.card-type-option.active {
    border-color: #4fd1c7;
    background: rgba(79, 209, 199, 0.15);
    box-shadow: 0 0 20px rgba(79, 209, 199, 0.3);
}
.card-type-option.selected::before,
.card-type-option.active::before {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #4fd1c7;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
.no-checkmark .card-type-option.selected::before,
.no-checkmark .card-type-option.active::before {
    display: none;
}
.no-checkmark .card-type-option.selected,
.no-checkmark .card-type-option.active {
    box-shadow: none;
}
.card-type-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.card-type-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}
.card-type-price {
    font-size: 14px;
    font-weight: 700;
    color: #ffd700;
    margin-top: 6px;
}
.card-type-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .card-type-selection {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-type-option {
        padding: 16px 12px;
    }
    .card-type-icon {
        font-size: 28px;
        margin-bottom: 6px;
    }
    .card-type-title {
        font-size: 15px;
    }
    .card-type-price {
        font-size: 13px;
    }
    .card-type-subtitle {
        font-size: 11px;
    }
}
.card-code {
    background: rgba(79, 209, 199, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(79, 209, 199, 0.3);
    color: #4fd1c7;
    font-weight: 600;
    font-size: 12px;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
    user-select: all;
    cursor: pointer;
}
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10101;
    opacity: 0;
    visibility: hidden;
}
.confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}
.confirm-dialog {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    max-width: 420px;
    max-height: 85vh;
    width: 90%;
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
    margin: auto;
    display: flex;
    flex-direction: column;
}
.confirm-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
.confirm-overlay.show .confirm-dialog {
    opacity: 1;
    transform: scale(1);
}
.confirm-dialog .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}
.confirm-icon {
    flex-shrink: 0;
    font-size: 52px;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: iconPulse 2s ease-in-out infinite;
}
.confirm-title {
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}
.import-modal-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
    margin: 20px 0 0 0;
    padding: 0;
    min-height: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.confirm-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-top: 20px;
    width: calc(100% - 10px);
    margin-left: 5px;
    margin-right: 5px;
}
.confirm-message {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 28px;
    font-weight: 400;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.renew-input-group {
    margin-bottom: 32px;
    position: relative;
    width: calc(100% - 10px);
    margin-left: 5px;
    margin-right: 5px;
}
.renew-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.renew-input:focus {
    border-color: rgba(64, 158, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 4px rgba(64, 158, 255, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}
.confirm-buttons .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    flex: 1;
    max-width: calc(50% - 13px);
    justify-content: center;
    flex-shrink: 0;
}
.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-confirm,
.btn-renew {
    background: linear-gradient(135deg, #409eff 0%, #67c23a 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}
.btn-confirm:hover,
.btn-renew:hover {
    background: linear-gradient(135deg, #5dade2 0%, #7ed321 100%);
    transform: translateY(-2px);
}
.btn-renew:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}
.btn-icon {
    font-size: 14px;
}
.btn-text {
    font-size: 14px;
}
.confirm-btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    border: 1px solid;
    min-width: 80px;
}
.confirm-btn-primary {
    background: rgba(255, 99, 71, 0.2);
    border-color: rgba(255, 99, 71, 0.4);
    color: #ff6347;
}
.confirm-btn-primary:hover {
    background: rgba(255, 99, 71, 0.3);
    transform: translateY(-1px);
}
.confirm-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.confirm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .confirm-dialog {
        padding: 24px;
        margin: 20px;
    }
    .confirm-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    .confirm-title {
        font-size: 18px;
    }
    .confirm-message {
        font-size: 13px;
    }
    .confirm-buttons {
        flex-direction: row;
        gap: 12px;
        width: calc(100% - 10px);
        margin-left: 5px;
        margin-right: 5px;
    }
    .confirm-buttons .btn {
        flex: 1;
        max-width: calc(50% - 11px);
        min-width: 90px;
        padding: 12px 16px;
        font-size: 15px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    .renew-input {
        padding: 14px 18px;
    }
    .modal,
    .confirm-overlay {
        -webkit-overflow-scrolling: touch;
    }
    .modal .confirm-dialog,
    .confirm-overlay .confirm-dialog {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #4fd1c7 0%, #26a69a 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(79, 209, 199, 0.3);
}
.progress-text {
    font-size: 12px;
    color: #b0b0b0;
    font-weight: 500;
    min-width: 35px;
    text-align: right;
}
.playing-card.user-card .user-card-header {
    display: block !important;
    text-align: center !important;
    align-items: unset !important;
}
.playing-card.user-card .user-card-info,
.playing-card.user-card .user-card-details {
    text-align: center !important;
}
.playing-card.user-card .user-card-name {
    text-align: center !important;
}
.playing-card.user-card .user-card-info .label {
    display: none !important;
}
.playing-card.user-card .user-card-info .value {
    display: block !important;
    text-align: center !important;
    margin-top: 2px;
}
.playing-card.user-card .progress-container {
    justify-content: center !important;
    margin: 0 auto !important;
}
.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-top: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.checkbox-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(64, 158, 255, 0.3);
}
.checkbox-wrapper input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 12px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}
.checkbox-wrapper input[type="checkbox"]:hover {
    border-color: rgba(64, 158, 255, 0.5);
    background: rgba(64, 158, 255, 0.1);
}
.checkbox-wrapper input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #409eff, #67c23a);
    border-color: #409eff;
}
.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}
.checkbox-wrapper label {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: color 0.3s ease;
}
.checkbox-wrapper:hover label {
    color: #ffffff;
}
.checkbox-wrapper input[type="checkbox"]:checked + label {
    color: #67c23a;
}
.banned-user-card {
    background: rgba(255, 107, 107, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 107, 0.25);
}
.play-limited-card {
    background: rgba(255, 193, 7, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.25);
}
.software-limited-card {
    background: rgba(255, 107, 107, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 107, 0.25);
}
.limit-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
}
.limit-type {
    font-weight: 600;
    color: #ffffff;
}
.limit-time, .limit-client {
    color: rgba(255, 255, 255, 0.8);
}
.limit-reason {
    margin: 8px 0;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}
.banned-user-card .user-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}
.banned-user-card .user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}
.banned-user-card .user-info {
    flex-grow: 1;
    text-align: left;
}
.banned-user-card .user-name {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}
.banned-user-card .user-status {
    margin-top: 4px;
}
.banned-user-card .ban-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
}
.banned-user-card .ban-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}
.banned-user-card .ban-detail:last-child {
    margin-bottom: 0;
}
.banned-user-card .detail-label {
    color: #b0b0b0;
    font-size: 12px;
    font-weight: 500;
}
.banned-user-card .detail-value {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.banned-user-card .user-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.banned-user-card .status-badge.banned {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.banned-user-card .status-badge.active {
    background: linear-gradient(135deg, #4cd137 0%, #44bd32 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.clean-info {
    text-align: center;
    padding: 20px;
}
.clean-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.clean-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}
.warning-text {
    color: #ff6b6b !important;
    font-weight: bold;
    font-size: 14px !important;
}
.clean-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
}
.clean-actions .btn {
    min-width: 100px;
    padding: 12px 20px;
}
@media (max-width: 768px) {
    .clean-actions {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        align-items: center;
        padding-top: 20px;
    }
    .clean-actions .btn {
        flex: 1;
        max-width: 140px;
        min-width: 100px;
        padding: 14px 16px;
        font-size: 15px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    .clean-info {
        padding: 15px;
    }
    .clean-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    .clean-info p {
        font-size: 15px;
        margin-bottom: 8px;
    }
}
@media (max-width: 480px) {
    .clean-actions {
        gap: 8px;
    }
    .clean-actions .btn {
        flex: 1;
        max-width: 120px;
        min-width: 80px;
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    .clean-info {
        padding: 12px;
    }
    .clean-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    .clean-info p {
        font-size: 14px;
        margin-bottom: 6px;
    }
}
.expired-text {
    color: #f56c6c !important;
    font-weight: bold !important;
}
.media-info-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.media-info-card .toggle-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
}
.media-info-card .toggle-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 60px;
}
.media-info-card .toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: none;
}
.media-info-card .toggle-btn.active {
    background: linear-gradient(135deg, #409eff, #67c23a);
    color: #ffffff;
    border-color: #409eff;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}
.media-info-card .card-header {
    margin-bottom: 20px;
    text-align: center;
}
.media-info-card .card-header h3 {
    color: #4fd1c7;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.media-info-card .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.media-info-card .info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.media-info-card .info-label {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 8px;
    font-weight: 500;
}
.media-info-card .info-value {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: break-word;
}
@media (max-width: 768px) {
    .media-info-card .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .media-info-card .info-item {
        padding: 12px;
    }
    .media-info-card .card-header h3 {
        font-size: 16px;
    }
}
@media (max-width: 480px) {
    .media-info-card .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .media-info-card .info-item {
        padding: 10px;
    }
}
.loading-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
    min-height: 200px;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
@media (max-width: 1400px) {
    #playing-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1024px) {
    #playing-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    #playing-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 12px !important;
    }
}
.progress-time {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    margin-top: 2px;
    font-weight: 500;
    width: 100%;
}
.section-title {
    margin-bottom: 20px;
    font-size: 18px;
}
.section-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}
.section-divider-sm {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}
.section-divider-md {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}
.section-divider-lg {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}
.invite-code-display {
    font-size: 1.5rem;
    color: #ffd700;
    letter-spacing: 2px;
}
.modal-section {
    margin: 20px 0;
}
.modal-field {
    margin-bottom: 20px;
}
.field-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}
.field-info {
    margin: 8px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}
.info-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}
.text-overflow-ellipsis {
    text-overflow: ellipsis;
}
.card-item {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}
.card-item-lg {
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    position: relative;
}
.media-item {
    display: flex !important;
    gap: 12px;
}
.media-poster {
    width: 65px;
    height: 98px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
.media-content {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.media-title {
    margin: 0 0 8px 0;
    color: #4a90e2;
    font-size: 15px;
    font-weight: 600;
    word-break: break-word;
}
.media-title-lg {
    margin: 0 0 8px 0;
    color: #4a90e2;
    font-size: 16px;
    font-weight: 600;
    word-break: break-word;
    text-align: left;
}
.media-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.meta-badge {
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}
.meta-badge-sm {
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}
.meta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1;
}
.meta-text-bold {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
}
.media-overview {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
    word-break: break-word;
}
.media-description {
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}
.button-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.button-sm {
    padding: 2px 10px;
    font-size: 11px;
    min-width: 55px;
    width: auto;
}
.link-simple {
    color: #666;
    text-decoration: none;
}
.modal-dialog-wide {
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-scroll {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    text-align: left;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: calc(100% - 10px);
    margin-left: auto;
    margin-right: auto;
}
.modal-scroll::-webkit-scrollbar {
    display: none;
}
.modal-scroll-sm {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 10px;
    width: 100%;
    max-width: calc(100% - 10px);
    margin-left: auto;
    margin-right: auto;
}
.modal-scroll-sm::-webkit-scrollbar {
    display: none;
}
.reply-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}
.reply-item-admin {
    background: rgba(74, 144, 226, 0.15);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}
.reply-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
    gap: 6px;
}
.reply-content {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}
.reply-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
}
.reply-label-admin {
    color: #4a90e2;
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
}
.reply-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    line-height: 1;
}
.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 144, 226, 0.5);
}
.selected-media-card {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    position: relative;
}
.close-button {
    padding: 6px 10px !important;
    font-size: 16px !important;
    min-width: auto !important;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: absolute;
    top: 12px;
    right: 12px;
}
.close-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: none;
}
.input-large {
    width: 100%;
    padding: 16px 20px;
    font-size: 17px;
}
.textarea-large {
    resize: vertical;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    line-height: 1.7;
    font-family: inherit;
}
.textarea-reply {
    width: 100%;
    resize: vertical;
    min-height: 100px;
    font-size: 14px !important;
    text-align: left !important;
}
.event-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 10px);
    margin-left: 5px;
    margin-right: 5px;
}
.event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.event-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(64, 158, 255, 0.5);
}
.event-item .event-info {
    flex: 1;
    text-align: left;
}
.event-item .event-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}
.event-switch {
    flex-shrink: 0;
    margin-left: 12px;
}
.switch-track {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}
.switch-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.event-item.selected .switch-track {
    background: #34c759;
    border-color: #34c759;
}
.event-item.selected .switch-thumb {
    transform: translateX(20px);
}
.event-item:hover .switch-track {
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.2);
}
.event-item.selected:hover .switch-track {
    background: #30d158;
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.3);
}
.button-large {
    flex: 1;
    padding: 16px 20px;
    font-size: 17px;
}
.button-full {
    padding: 16px 60px;
    font-size: 17px;
    width: 100%;
}
.button-back {
    padding: 10px 20px;
}
.status-pending {
    background: rgba(255, 169, 77, 0.2);
    color: #ffa94d;
}
.status-processing {
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
}
.status-completed {
    background: rgba(79, 209, 199, 0.2);
    color: #4fd1c7;
}
.status-subscribing {
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
}
.status-rejected {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}
.status-default {
    color: rgba(255, 255, 255, 0.5);
}
.icon-large {
    font-size: 3rem;
    margin-bottom: 20px;
}
.label-text {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}
.input-readonly {
    background: rgba(255,255,255,0.1) !important;
    cursor: not-allowed !important;
}
.section-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}
.seasons-container {
    height: 184px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    width: calc(100% - 10px);
    margin-left: 5px;
    margin-right: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scroll-padding: 10px 0 10px 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
}
.seasons-container::-webkit-scrollbar {
    display: none;
}
.season-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    touch-action: pan-y;
}
.season-item:last-child {
    margin-bottom: 0;
}
.season-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(64, 158, 255, 0.5);
}
.season-item.selected {
    background: rgba(64, 158, 255, 0.15);
    border-color: rgba(64, 158, 255, 0.8);
}
.season-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}
.season-episodes {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    white-space: nowrap;
    position: absolute;
    right: 16px;
}
.config-section {
    transition: opacity 0.3s ease;
}
.config-section[style*="display: none"] {
    opacity: 0;
}
.user-card,
.media-request-card,
.playing-card {
    animation: fadeIn 0.3s ease-out;
}
.user-card.no-animate,
.media-request-card.no-animate,
.playing-card.no-animate {
    animation: none;
}
.ranking-dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.ranking-column-header {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-column-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (max-width: 768px) {
    .ranking-dual-layout {
        grid-template-columns: 1fr;
    }
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 144, 226, 0.3);
}

.ranking-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}
.ranking-item:nth-child(1) .ranking-number {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.ranking-item:nth-child(2) .ranking-number {
    background: linear-gradient(135deg, #10b981, #059669);
}

.ranking-item:nth-child(3) .ranking-number {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.ranking-poster {
    width: 45px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

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

.ranking-title {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.ranking-stats > span {
    display: inline-block;
    min-width: 120px;
}

.stat-value {
    color: #4a90e2;
    font-weight: 500;
}

.my-playing-dialog {
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    padding: 30px 20px 20px 20px;
    position: relative;
}
.my-playing-container .playing-card-horizontal {
    max-width: 380px;
    margin: 0 auto;
}
.my-playing-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.my-playing-container::-webkit-scrollbar {
    display: none;
}
.my-playing-container:has(.my-playing-empty) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}
.my-playing-container .playing-card-horizontal {
    width: 100%;
    min-height: auto;
}
.latest-movies-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.latest-movies-container::-webkit-scrollbar {
    display: none;
}
.latest-movies-container:has(.my-playing-empty) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}
.latest-movies-container .playing-card {
    width: 100%;
    height: auto;
    min-height: auto;
    min-width: 0;
}
.latest-movie-card {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}
.latest-movie-card:hover {
    background: rgba(255, 255, 255, 0.12);
}
.latest-movie-card .playing-card-poster {
    width: 100%;
    height: 0;
    padding-bottom: 150%;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}
.latest-movie-card .playing-card-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.latest-movie-card:hover .playing-card-poster img {
    transform: scale(1.05);
}
.latest-movie-card .playing-card-poster.no-poster-empty {
    background: rgba(255, 255, 255, 0.03);
}
.playing-card-type {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.playing-card-info {
    padding: 8px 0 0 0;
}
.playing-card-title {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}
.playing-card-year {
    font-size: 11px;
    color: #999;
}
.playing-card-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #999;
}
.playing-card-meta span {
    display: flex;
    align-items: center;
}
.my-playing-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: #b0b0b0;
    width: 100%;
}
.my-playing-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}
.my-playing-empty-text {
    font-size: 16px;
    line-height: 1.5;
}
@media (max-width: 1400px) {
    .latest-movies-container {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 1200px) {
    .latest-movies-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .latest-movies-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .my-playing-dialog {
        width: 95%;
        max-width: 100%;
    }
    .my-playing-container {
        gap: 10px;
    }
    .latest-movies-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .latest-movie-card {
        padding: 6px;
        min-width: 0;
    }
    .latest-movie-card .playing-card-poster {
        padding-bottom: 140%;
        border-radius: 4px;
    }
    .playing-card-title {
        font-size: 10px;
    }
    .playing-card-year {
        font-size: 9px;
    }
    .playing-card-type {
        font-size: 9px;
        padding: 2px 6px;
    }
    .playing-card-info {
        padding: 5px 0 0 0;
    }
}

.stat-count {
    color: rgba(255, 255, 255, 0.6);
}

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

.cards-list-view {
    width: 100%;
}
.cards-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
    transition: background 0.2s;
}
.cards-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.cards-list-item .list-item-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
.cards-list-item .list-item-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.cards-list-item .list-item-type {
    font-weight: 500;
    color: #fff;
    min-width: 50px;
}
.cards-list-item .list-item-code {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: background 0.2s;
}
.cards-list-item .list-item-code:hover {
    background: rgba(255, 255, 255, 0.1);
}
.cards-list-item .list-item-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.cards-list-item .list-item-status.status-unused {
    background: rgba(79, 209, 199, 0.2);
    color: #4fd1c7;
}
.cards-list-item .list-item-status.status-used {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}
.cards-list-item .list-item-user {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    min-width: 80px;
}
.cards-list-item .list-item-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    min-width: 140px;
}
.cards-list-item .list-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cards-list-item .list-item-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}
@media (max-width: 768px) {
    .cards-list-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    .cards-list-item .list-item-info {
        flex-wrap: wrap;
    }
    .cards-list-item .list-item-date {
        display: none;
    }
}
.preview-header {
    margin-bottom: 15px;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}
.preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}
.preview-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.preview-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}
.preview-user-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.preview-user-toggle {
    flex-shrink: 0;
    cursor: pointer;
}
.preview-user-toggle .switch-track {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.preview-user-toggle .switch-thumb {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.preview-user-toggle.selected .switch-track {
    background: #34c759;
    border-color: #34c759;
}
.preview-user-toggle.selected .switch-thumb {
    transform: translateX(20px);
}
